From b3a7d421b4092cae757a2c61623bec1bce602513 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 1 Jun 2026 18:46:21 -0700 Subject: [PATCH] chore: regenerate compute client --- .../alpha/2.0.0/README.md | 4 +- .../google/api/services/compute/Compute.java | 97762 +++++++++------- .../model/BackendServiceLogConfig.java | 48 + ...kendServiceLogConfigLoggingHttpHeader.java | 66 + .../model/HaControllersFailoverRequest.java | 24 - .../InstanceGroupManagerUpdatePolicy.java | 24 + ...tanceGroupManagersApplyUpdatesRequest.java | 24 + .../model/InstanceManagedByIgmError.java | 27 +- ...anagedByIgmErrorInstanceActionDetails.java | 42 +- ...ManagedByIgmErrorManagedInstanceError.java | 12 +- .../OrganizationRolloutsListResponse.java | 401 + ...tanceGroupManagersApplyUpdatesRequest.java | 24 + .../ResourceStatusPhysicalHostTopology.java | 24 + ...sicalHostTopologyAdditionalAttributes.java | 69 + .../api/services/compute/model/RouterNat.java | 30 + .../model/SnapshotRecycleBinPolicy.java | 27 + .../alpha/2.0.0/pom.xml | 4 +- .../alpha/README.md | 4 +- .../beta/2.0.0/README.md | 4 +- .../google/api/services/compute/Compute.java | 2767 + .../model/BackendServiceLogConfig.java | 48 + ...kendServiceLogConfigLoggingHttpHeader.java | 66 + .../api/services/compute/model/DateTime.java | 290 + .../compute/model/HttpRouteAction.java | 30 + .../model/ImageOptimizationPolicy.java | 69 + .../InstanceGroupManagerActionsSummary.java | 27 + .../InstanceGroupManagerUpdatePolicy.java | 24 + ...tanceGroupManagersApplyUpdatesRequest.java | 24 + .../model/InstanceManagedByIgmError.java | 27 +- ...anagedByIgmErrorInstanceActionDetails.java | 42 +- ...ManagedByIgmErrorManagedInstanceError.java | 12 +- .../OrganizationRolloutsListResponse.java | 401 + .../PeriodicPartialMaintenanceSchedule.java | 163 + ...tanceGroupManagersApplyUpdatesRequest.java | 24 + .../ResourceStatusPhysicalHostTopology.java | 24 + ...sicalHostTopologyAdditionalAttributes.java | 69 + ...ourceStatusReservationConsumptionInfo.java | 54 + .../api/services/compute/model/Rollout.java | 48 + .../api/services/compute/model/RouterNat.java | 30 + .../api/services/compute/model/TimeZone.java | 90 + .../api/services/compute/model/Zone.java | 21 + .../compute/model/ZoneResourceStatus.java | 72 + .../beta/2.0.0/pom.xml | 4 +- .../beta/README.md | 4 +- 44 files changed, 57442 insertions(+), 45608 deletions(-) create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfigLoggingHttpHeader.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OrganizationRolloutsListResponse.java create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopologyAdditionalAttributes.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfigLoggingHttpHeader.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DateTime.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageOptimizationPolicy.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OrganizationRolloutsListResponse.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PeriodicPartialMaintenanceSchedule.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopologyAdditionalAttributes.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TimeZone.java create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ZoneResourceStatus.java diff --git a/clients/google-api-services-compute/alpha/2.0.0/README.md b/clients/google-api-services-compute/alpha/2.0.0/README.md index 42c68d99f60..5ef25cf0443 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/README.md +++ b/clients/google-api-services-compute/alpha/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-compute - alpha-rev20260501-2.0.0 + alpha-rev20260520-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:alpha-rev20260501-2.0.0' + implementation 'com.google.apis:google-api-services-compute:alpha-rev20260520-2.0.0' } ``` diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java index 1c618ca1217..dfe92495c01 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java @@ -30011,807 +30011,531 @@ public Update set(String parameterName, Object value) { } /** - * An accessor for creating requests from the ForwardingRules collection. + * An accessor for creating requests from the FolderZoneVmExtensionPolicies collection. * *

The typical use is:

*
    *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.ForwardingRules.List request = compute.forwardingRules().list(parameters ...)}
+   *   {@code Compute.FolderZoneVmExtensionPolicies.List request = compute.folderZoneVmExtensionPolicies().list(parameters ...)}
    * 
* * @return the resource collection */ - public ForwardingRules forwardingRules() { - return new ForwardingRules(); + public FolderZoneVmExtensionPolicies folderZoneVmExtensionPolicies() { + return new FolderZoneVmExtensionPolicies(); } /** - * The "forwardingRules" collection of methods. + * The "folderZoneVmExtensionPolicies" collection of methods. */ - public class ForwardingRules { + public class FolderZoneVmExtensionPolicies { /** - * Retrieves an aggregated list of forwarding rules. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. + * Deletes a specified zone VM extension policy within a folder. * - * Create a request for the method "forwardingRules.aggregatedList". + * Create a request for the method "folderZoneVmExtensionPolicies.delete". * * 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 Delete#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. + * @param folder Folder ID for this request. + * @param zone Name of the zone for this request. + * @param vmExtensionPolicy Name of the zone VM extension policy to delete. * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + public Delete delete(java.lang.String folder, java.lang.String zone, java.lang.String vmExtensionPolicy) throws java.io.IOException { + Delete result = new Delete(folder, zone, vmExtensionPolicy); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/forwardingRules"; + private static final String REST_PATH = "{+folder}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}"; - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern FOLDER_PATTERN = + java.util.regex.Pattern.compile("folders/[0-9]{0,20}"); + + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Retrieves an aggregated list of forwarding rules. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. + * Deletes a specified zone VM extension policy within a folder. * - * Create a request for the method "forwardingRules.aggregatedList". + * Create a request for the method "folderZoneVmExtensionPolicies.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

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

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

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

* - * @param project Project ID for this request. + * @param folder Folder ID for this request. + * @param zone Name of the zone for this request. + * @param vmExtensionPolicy Name of the zone VM extension policy to delete. * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ForwardingRuleAggregatedList.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + protected Delete(java.lang.String folder, java.lang.String zone, java.lang.String vmExtensionPolicy) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.folder = com.google.api.client.util.Preconditions.checkNotNull(folder, "Required parameter folder 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(FOLDER_PATTERN.matcher(folder).matches(), + "Parameter folder must conform to the pattern " + + "folders/[0-9]{0,20}"); } + 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.vmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(vmExtensionPolicy, "Required parameter vmExtensionPolicy 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 AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Folder ID for this request. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String folder; - /** Project ID for this request. + /** Folder ID for this request. */ - public java.lang.String getProject() { - return project; + public java.lang.String getFolder() { + return folder; } - /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + /** Folder ID for this request. */ + public Delete setFolder(java.lang.String folder) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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(FOLDER_PATTERN.matcher(folder).matches(), + "Parameter folder must conform to the pattern " + + "folders/[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; + this.folder = folder; return this; } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; + private java.lang.String zone; - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. + /** Name of the zone for this request. */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; + public java.lang.String getZone() { + return zone; } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; + /** Name of the 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; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ + /** Name of the zone VM extension policy to delete. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String vmExtensionPolicy; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Name of the zone VM extension policy to delete. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getVmExtensionPolicy() { + return vmExtensionPolicy; } - /** - * 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; + /** Name of the zone VM extension policy to delete. */ + public Delete setVmExtensionPolicy(java.lang.String vmExtensionPolicy) { + this.vmExtensionPolicy = vmExtensionPolicy; return this; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public AggregatedList setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } + private java.lang.String requestId; - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Deletes the specified ForwardingRule resource. + * Retrieves details of a specific zone VM extension policy within a folder. * - * Create a request for the method "forwardingRules.delete". + * Create a request for the method "folderZoneVmExtensionPolicies.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param forwardingRule Name of the ForwardingRule resource to delete. + * @param folder Folder ID for this request. + * @param zone Name of the zone for this request. + * @param vmExtensionPolicy Name of the VM extension policy resource to return. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String forwardingRule) throws java.io.IOException { - Delete result = new Delete(project, region, forwardingRule); + public Get get(java.lang.String folder, java.lang.String zone, java.lang.String vmExtensionPolicy) throws java.io.IOException { + Get result = new Get(folder, zone, vmExtensionPolicy); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{forwardingRule}"; + private static final String REST_PATH = "{+folder}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}"; - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern FOLDER_PATTERN = + java.util.regex.Pattern.compile("folders/[0-9]{0,20}"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern FORWARDING_RULE_PATTERN = + private final java.util.regex.Pattern VM_EXTENSION_POLICY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified ForwardingRule resource. + * Retrieves details of a specific zone VM extension policy within a folder. * - * Create a request for the method "forwardingRules.delete". + * Create a request for the method "folderZoneVmExtensionPolicies.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

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

* - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param forwardingRule Name of the ForwardingRule resource to delete. + * @param folder Folder ID for this request. + * @param zone Name of the zone for this request. + * @param vmExtensionPolicy Name of the VM extension policy resource to return. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String forwardingRule) { - 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."); + protected Get(java.lang.String folder, java.lang.String zone, java.lang.String vmExtensionPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VmExtensionPolicy.class); + this.folder = com.google.api.client.util.Preconditions.checkNotNull(folder, "Required parameter folder 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(FOLDER_PATTERN.matcher(folder).matches(), + "Parameter folder must conform to the pattern " + + "folders/[0-9]{0,20}"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); + this.vmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(vmExtensionPolicy, "Required parameter vmExtensionPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(VM_EXTENSION_POLICY_PATTERN.matcher(vmExtensionPolicy).matches(), + "Parameter vmExtensionPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public 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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - /** 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; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } - /** 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; + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } - /** Name of the region scoping this request. */ + /** Folder ID for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String folder; - /** Name of the region scoping this request. + /** Folder ID for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getFolder() { + return folder; } - /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String region) { + /** Folder ID for this request. */ + public Get setFolder(java.lang.String folder) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(FOLDER_PATTERN.matcher(folder).matches(), + "Parameter folder must conform to the pattern " + + "folders/[0-9]{0,20}"); } - this.region = region; + this.folder = folder; return this; } - /** Name of the ForwardingRule resource to delete. */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String forwardingRule; + private java.lang.String zone; - /** Name of the ForwardingRule resource to delete. + /** Name of the zone for this request. */ - public java.lang.String getForwardingRule() { - return forwardingRule; + public java.lang.String getZone() { + return zone; } - /** Name of the ForwardingRule resource to delete. */ - public Delete setForwardingRule(java.lang.String forwardingRule) { + /** Name of the zone for this request. */ + public Get setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.forwardingRule = forwardingRule; + this.zone = zone; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Name of the VM extension policy resource to return. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String vmExtensionPolicy; - 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 VM extension policy resource to return. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getVmExtensionPolicy() { + return vmExtensionPolicy; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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; + /** Name of the VM extension policy resource to return. */ + public Get setVmExtensionPolicy(java.lang.String vmExtensionPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(VM_EXTENSION_POLICY_PATTERN.matcher(vmExtensionPolicy).matches(), + "Parameter vmExtensionPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.vmExtensionPolicy = vmExtensionPolicy; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Returns the specified ForwardingRule resource. + * Retrieves details of a specific VM extension within a folder. * - * Create a request for the method "forwardingRules.get". + * Create a request for the method "folderZoneVmExtensionPolicies.getVmExtension". * * 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 GetVmExtension#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param forwardingRule Name of the ForwardingRule resource to return. + * @param folder Folder ID for this request. + * @param zone Name of the zone for this request. + * @param extensionName * @return the request */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String forwardingRule) throws java.io.IOException { - Get result = new Get(project, region, forwardingRule); + public GetVmExtension getVmExtension(java.lang.String folder, java.lang.String zone, java.lang.String extensionName) throws java.io.IOException { + GetVmExtension result = new GetVmExtension(folder, zone, extensionName); initialize(result); return result; } - public class Get extends ComputeRequest { + public class GetVmExtension extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{forwardingRule}"; + private static final String REST_PATH = "{+folder}/zones/{zone}/vmExtensions/{extensionName}"; - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern FOLDER_PATTERN = + java.util.regex.Pattern.compile("folders/[0-9]{0,20}"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern FORWARDING_RULE_PATTERN = + private final java.util.regex.Pattern EXTENSION_NAME_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the specified ForwardingRule resource. + * Retrieves details of a specific VM extension within a folder. * - * Create a request for the method "forwardingRules.get". + * Create a request for the method "folderZoneVmExtensionPolicies.getVmExtension". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

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

* - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param forwardingRule Name of the ForwardingRule resource to return. + * @param folder Folder ID for this request. + * @param zone Name of the zone for this request. + * @param extensionName * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String forwardingRule) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ForwardingRule.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + protected GetVmExtension(java.lang.String folder, java.lang.String zone, java.lang.String extensionName) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VmExtension.class); + this.folder = com.google.api.client.util.Preconditions.checkNotNull(folder, "Required parameter folder 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(FOLDER_PATTERN.matcher(folder).matches(), + "Parameter folder must conform to the pattern " + + "folders/[0-9]{0,20}"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); + 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(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + + 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}"); } } @@ -30827,206 +30551,188 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public GetVmExtension set$Xgafv(java.lang.String $Xgafv) { + return (GetVmExtension) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public GetVmExtension setAccessToken(java.lang.String accessToken) { + return (GetVmExtension) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public GetVmExtension setAlt(java.lang.String alt) { + return (GetVmExtension) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public GetVmExtension setCallback(java.lang.String callback) { + return (GetVmExtension) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public GetVmExtension setFields(java.lang.String fields) { + return (GetVmExtension) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public GetVmExtension setKey(java.lang.String key) { + return (GetVmExtension) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public GetVmExtension setOauthToken(java.lang.String oauthToken) { + return (GetVmExtension) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public GetVmExtension setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetVmExtension) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public GetVmExtension setQuotaUser(java.lang.String quotaUser) { + return (GetVmExtension) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public GetVmExtension setUploadType(java.lang.String uploadType) { + return (GetVmExtension) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public GetVmExtension setUploadProtocol(java.lang.String uploadProtocol) { + return (GetVmExtension) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public GetVmExtension setUserIp(java.lang.String userIp) { + return (GetVmExtension) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Folder ID for this request. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String folder; - /** Project ID for this request. + /** Folder ID for this request. */ - public java.lang.String getProject() { - return project; + public java.lang.String getFolder() { + return folder; } - /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + /** Folder ID for this request. */ + public GetVmExtension setFolder(java.lang.String folder) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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(FOLDER_PATTERN.matcher(folder).matches(), + "Parameter folder must conform to the pattern " + + "folders/[0-9]{0,20}"); } - this.project = project; + this.folder = folder; return this; } - /** Name of the region scoping this request. */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** Name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** Name of the region scoping this request. */ - public Get setRegion(java.lang.String region) { + /** Name of the zone for this request. */ + public GetVmExtension setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } - /** Name of the ForwardingRule resource to return. */ @com.google.api.client.util.Key - private java.lang.String forwardingRule; + private java.lang.String extensionName; + + /** - /** Name of the ForwardingRule resource to return. */ - public java.lang.String getForwardingRule() { - return forwardingRule; + public java.lang.String getExtensionName() { + return extensionName; } - /** Name of the ForwardingRule resource to return. */ - public Get setForwardingRule(java.lang.String forwardingRule) { + public GetVmExtension setExtensionName(java.lang.String extensionName) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + + 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.forwardingRule = forwardingRule; - return this; - } - - @com.google.api.client.util.Key - private java.lang.String view; - - /** - - */ - public java.lang.String getView() { - return view; - } - - public Get setView(java.lang.String view) { - this.view = view; + this.extensionName = extensionName; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public GetVmExtension set(String parameterName, Object value) { + return (GetVmExtension) super.set(parameterName, value); } } /** - * Creates a ForwardingRule resource in the specified project and region using the data included in - * the request. + * Creates a new zone-level VM extension policy within a folder. * - * Create a request for the method "forwardingRules.insert". + * Create a request for the method "folderZoneVmExtensionPolicies.insert". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.ForwardingRule} + * @param folder Folder ID for this request. + * @param zone Name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.VmExtensionPolicy} * @return the request */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.ForwardingRule content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + public Insert insert(java.lang.String folder, java.lang.String zone, com.google.api.services.compute.model.VmExtensionPolicy content) throws java.io.IOException { + Insert result = new Insert(folder, zone, content); initialize(result); return result; } public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules"; + private static final String REST_PATH = "{+folder}/zones/{zone}/vmExtensionPolicies"; - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern FOLDER_PATTERN = + java.util.regex.Pattern.compile("folders/[0-9]{0,20}"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Creates a ForwardingRule resource in the specified project and region using the data included - * in the request. + * Creates a new zone-level VM extension policy within a folder. * - * Create a request for the method "forwardingRules.insert". + * Create a request for the method "folderZoneVmExtensionPolicies.insert". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

* - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.ForwardingRule} + * @param folder Folder ID for this request. + * @param zone Name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.VmExtensionPolicy} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.ForwardingRule content) { + protected Insert(java.lang.String folder, java.lang.String zone, com.google.api.services.compute.model.VmExtensionPolicy content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + this.folder = com.google.api.client.util.Preconditions.checkNotNull(folder, "Required parameter folder 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(FOLDER_PATTERN.matcher(folder).matches(), + "Parameter folder must conform to the pattern " + + "folders/[0-9]{0,20}"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @@ -31091,45 +30797,45 @@ public Insert setUserIp(java.lang.String userIp) { return (Insert) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Folder ID for this request. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String folder; - /** Project ID for this request. + /** Folder ID for this request. */ - public java.lang.String getProject() { - return project; + public java.lang.String getFolder() { + return folder; } - /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + /** Folder ID for this request. */ + public Insert setFolder(java.lang.String folder) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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(FOLDER_PATTERN.matcher(folder).matches(), + "Parameter folder must conform to the pattern " + + "folders/[0-9]{0,20}"); } - this.project = project; + this.folder = folder; return this; } - /** Name of the region scoping this request. */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** Name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** Name of the region scoping this request. */ - public Insert setRegion(java.lang.String region) { + /** Name of the zone for this request. */ + public Insert setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } @@ -31188,59 +30894,59 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves a list of ForwardingRule resources available to the specified project and region. + * Lists all VM extension policies within a specific zone for a folder. * - * Create a request for the method "forwardingRules.list". + * Create a request for the method "folderZoneVmExtensionPolicies.list". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. + * @param folder Folder ID for this request. + * @param zone Name of the zone for this request. * @return the request */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + public List list(java.lang.String folder, java.lang.String zone) throws java.io.IOException { + List result = new List(folder, zone); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules"; + private static final String REST_PATH = "{+folder}/zones/{zone}/vmExtensionPolicies"; - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern FOLDER_PATTERN = + java.util.regex.Pattern.compile("folders/[0-9]{0,20}"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Retrieves a list of ForwardingRule resources available to the specified project and region. + * Lists all VM extension policies within a specific zone for a folder. * - * Create a request for the method "forwardingRules.list". + * Create a request for the method "folderZoneVmExtensionPolicies.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* - * @param project Project ID for this request. - * @param region Name of the region scoping this request. + * @param folder Folder ID for this request. + * @param zone Name of the zone for this request. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ForwardingRuleList.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + protected List(java.lang.String folder, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VmExtensionPolicyList.class); + this.folder = com.google.api.client.util.Preconditions.checkNotNull(folder, "Required parameter folder 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."); + com.google.api.client.util.Preconditions.checkArgument(FOLDER_PATTERN.matcher(folder).matches(), + "Parameter folder must conform to the pattern " + + "folders/[0-9]{0,20}"); + } + 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(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @@ -31315,45 +31021,45 @@ public List setUserIp(java.lang.String userIp) { return (List) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Folder ID for this request. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String folder; - /** Project ID for this request. + /** Folder ID for this request. */ - public java.lang.String getProject() { - return project; + public java.lang.String getFolder() { + return folder; } - /** Project ID for this request. */ - public List setProject(java.lang.String project) { + /** Folder ID for this request. */ + public List setFolder(java.lang.String folder) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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(FOLDER_PATTERN.matcher(folder).matches(), + "Parameter folder must conform to the pattern " + + "folders/[0-9]{0,20}"); } - this.project = project; + this.folder = folder; return this; } - /** Name of the region scoping this request. */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** Name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** Name of the region scoping this request. */ - public List setRegion(java.lang.String region) { + /** Name of the zone for this request. */ + public List setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } @@ -31627,702 +31333,623 @@ public List set(String parameterName, Object value) { } } /** - * Updates the specified forwarding rule with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. Currently, you - * can only patch the network_tier field. + * Lists all VM extensions within a specific zone for a folder. This is a read-only API. * - * Create a request for the method "forwardingRules.patch". + * Create a request for the method "folderZoneVmExtensionPolicies.listVmExtensions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link ListVmExtensions#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param forwardingRule Name of the ForwardingRule resource to patch. - * @param content the {@link com.google.api.services.compute.model.ForwardingRule} + * @param folder Folder ID for this request. + * @param zone Name of the zone for this request. * @return the request */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String forwardingRule, com.google.api.services.compute.model.ForwardingRule content) throws java.io.IOException { - Patch result = new Patch(project, region, forwardingRule, content); + public ListVmExtensions listVmExtensions(java.lang.String folder, java.lang.String zone) throws java.io.IOException { + ListVmExtensions result = new ListVmExtensions(folder, zone); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class ListVmExtensions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{forwardingRule}"; + private static final String REST_PATH = "{+folder}/zones/{zone}/vmExtensions"; - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern FOLDER_PATTERN = + java.util.regex.Pattern.compile("folders/[0-9]{0,20}"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern FORWARDING_RULE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Updates the specified forwarding rule with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. Currently, - * you can only patch the network_tier field. + * Lists all VM extensions within a specific zone for a folder. This is a read-only API. * - * Create a request for the method "forwardingRules.patch". + * Create a request for the method "folderZoneVmExtensionPolicies.listVmExtensions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

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

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

* - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param forwardingRule Name of the ForwardingRule resource to patch. - * @param content the {@link com.google.api.services.compute.model.ForwardingRule} + * @param folder Folder ID for this request. + * @param zone Name of the zone for this request. * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String forwardingRule, com.google.api.services.compute.model.ForwardingRule 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."); + protected ListVmExtensions(java.lang.String folder, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ListVmExtensionsResponse.class); + this.folder = com.google.api.client.util.Preconditions.checkNotNull(folder, "Required parameter folder 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(FOLDER_PATTERN.matcher(folder).matches(), + "Parameter folder must conform to the pattern " + + "folders/[0-9]{0,20}"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public ListVmExtensions set$Xgafv(java.lang.String $Xgafv) { + return (ListVmExtensions) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public ListVmExtensions setAccessToken(java.lang.String accessToken) { + return (ListVmExtensions) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public ListVmExtensions setAlt(java.lang.String alt) { + return (ListVmExtensions) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public ListVmExtensions setCallback(java.lang.String callback) { + return (ListVmExtensions) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public ListVmExtensions setFields(java.lang.String fields) { + return (ListVmExtensions) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public ListVmExtensions setKey(java.lang.String key) { + return (ListVmExtensions) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public ListVmExtensions setOauthToken(java.lang.String oauthToken) { + return (ListVmExtensions) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public ListVmExtensions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListVmExtensions) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public ListVmExtensions setQuotaUser(java.lang.String quotaUser) { + return (ListVmExtensions) super.setQuotaUser(quotaUser); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public ListVmExtensions setUploadType(java.lang.String uploadType) { + return (ListVmExtensions) super.setUploadType(uploadType); } - /** 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; + @Override + public ListVmExtensions setUploadProtocol(java.lang.String uploadProtocol) { + return (ListVmExtensions) super.setUploadProtocol(uploadProtocol); } - /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; + @Override + public ListVmExtensions setUserIp(java.lang.String userIp) { + return (ListVmExtensions) super.setUserIp(userIp); } - /** Name of the region scoping this request. */ + /** Folder ID for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String folder; - /** Name of the region scoping this request. + /** Folder ID for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getFolder() { + return folder; } - /** Name of the region scoping this request. */ - public Patch setRegion(java.lang.String region) { + /** Folder ID for this request. */ + public ListVmExtensions setFolder(java.lang.String folder) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(FOLDER_PATTERN.matcher(folder).matches(), + "Parameter folder must conform to the pattern " + + "folders/[0-9]{0,20}"); } - this.region = region; + this.folder = folder; return this; } - /** Name of the ForwardingRule resource to patch. */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String forwardingRule; + private java.lang.String zone; - /** Name of the ForwardingRule resource to patch. + /** Name of the zone for this request. */ - public java.lang.String getForwardingRule() { - return forwardingRule; + public java.lang.String getZone() { + return zone; } - /** Name of the ForwardingRule resource to patch. */ - public Patch setForwardingRule(java.lang.String forwardingRule) { + /** Name of the zone for this request. */ + public ListVmExtensions setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.forwardingRule = forwardingRule; + this.zone = zone; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * 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 Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public ListVmExtensions setFilter(java.lang.String filter) { + this.filter = filter; return this; } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; } - } - /** - * Sets the labels on the specified resource. To learn more about labels, read the Labeling - * Resources documentation. - * - * Create a request for the method "forwardingRules.setLabels". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} - * @return the request - */ - public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, region, resource, content); - initialize(result); - return result; - } - public class SetLabels extends ComputeRequest { + /** + * 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 ListVmExtensions setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } - private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels"; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } /** - * Sets the labels on the specified resource. To learn more about labels, read the Labeling - * Resources documentation. - * - * Create a request for the method "forwardingRules.setLabels". + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

+ * 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. * - * @param project Project ID for this request. - * @param region The region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} - * @since 1.13 + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - protected SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public ListVmExtensions setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; } - @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); - } - - @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); - } - - @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); - } - - @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); - } - - @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); - } - - @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); - } - - @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); - } - - @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); - } - - @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 region for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String pageToken; - /** The region for this request. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getRegion() { - return region; - } - - /** The region for this request. */ - public SetLabels setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; + public java.lang.String getPageToken() { + return pageToken; } - /** 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. + /** + * 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 getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; + public ListVmExtensions setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public SetLabels setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public ListVmExtensions setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public ListVmExtensions set(String parameterName, Object value) { + return (ListVmExtensions) super.set(parameterName, value); } } /** - * Changes target URL for forwarding rule. The new target should be of the same type as the old - * target. + * Modifies an existing zone VM extension policy within a folder. * - * Create a request for the method "forwardingRules.setTarget". + * Create a request for the method "folderZoneVmExtensionPolicies.update". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetTarget#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param forwardingRule Name of the ForwardingRule resource in which target is to be set. - * @param content the {@link com.google.api.services.compute.model.TargetReference} + * @param folder Folder ID for this request. + * @param zone Name of the zone for this request. + * @param vmExtensionPolicy Name of the zone VM extension policy to update. + * @param content the {@link com.google.api.services.compute.model.VmExtensionPolicy} * @return the request */ - public SetTarget setTarget(java.lang.String project, java.lang.String region, java.lang.String forwardingRule, com.google.api.services.compute.model.TargetReference content) throws java.io.IOException { - SetTarget result = new SetTarget(project, region, forwardingRule, content); + public Update update(java.lang.String folder, java.lang.String zone, java.lang.String vmExtensionPolicy, com.google.api.services.compute.model.VmExtensionPolicy content) throws java.io.IOException { + Update result = new Update(folder, zone, vmExtensionPolicy, content); initialize(result); return result; } - public class SetTarget extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget"; + private static final String REST_PATH = "{+folder}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}"; - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern FOLDER_PATTERN = + java.util.regex.Pattern.compile("folders/[0-9]{0,20}"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern FORWARDING_RULE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Changes target URL for forwarding rule. The new target should be of the same type as the old - * target. + * Modifies an existing zone VM extension policy within a folder. * - * Create a request for the method "forwardingRules.setTarget". + * Create a request for the method "folderZoneVmExtensionPolicies.update". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetTarget#execute()} method to invoke the remote operation.

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

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

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

* - * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param forwardingRule Name of the ForwardingRule resource in which target is to be set. - * @param content the {@link com.google.api.services.compute.model.TargetReference} + * @param folder Folder ID for this request. + * @param zone Name of the zone for this request. + * @param vmExtensionPolicy Name of the zone VM extension policy to update. + * @param content the {@link com.google.api.services.compute.model.VmExtensionPolicy} * @since 1.13 */ - protected SetTarget(java.lang.String project, java.lang.String region, java.lang.String forwardingRule, com.google.api.services.compute.model.TargetReference content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + protected Update(java.lang.String folder, java.lang.String zone, java.lang.String vmExtensionPolicy, com.google.api.services.compute.model.VmExtensionPolicy content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.folder = com.google.api.client.util.Preconditions.checkNotNull(folder, "Required parameter folder 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(FOLDER_PATTERN.matcher(folder).matches(), + "Parameter folder must conform to the pattern " + + "folders/[0-9]{0,20}"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.vmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(vmExtensionPolicy, "Required parameter vmExtensionPolicy must be specified."); } @Override - public SetTarget set$Xgafv(java.lang.String $Xgafv) { - return (SetTarget) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public SetTarget setAccessToken(java.lang.String accessToken) { - return (SetTarget) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public SetTarget setAlt(java.lang.String alt) { - return (SetTarget) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public SetTarget setCallback(java.lang.String callback) { - return (SetTarget) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public SetTarget setFields(java.lang.String fields) { - return (SetTarget) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public SetTarget setKey(java.lang.String key) { - return (SetTarget) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public SetTarget setOauthToken(java.lang.String oauthToken) { - return (SetTarget) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public SetTarget setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetTarget) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public SetTarget setQuotaUser(java.lang.String quotaUser) { - return (SetTarget) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public SetTarget setUploadType(java.lang.String uploadType) { - return (SetTarget) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public SetTarget setUploadProtocol(java.lang.String uploadProtocol) { - return (SetTarget) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public SetTarget setUserIp(java.lang.String userIp) { - return (SetTarget) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Folder ID for this request. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String folder; - /** Project ID for this request. + /** Folder ID for this request. */ - public java.lang.String getProject() { - return project; + public java.lang.String getFolder() { + return folder; } - /** Project ID for this request. */ - public SetTarget setProject(java.lang.String project) { + /** Folder ID for this request. */ + public Update setFolder(java.lang.String folder) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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(FOLDER_PATTERN.matcher(folder).matches(), + "Parameter folder must conform to the pattern " + + "folders/[0-9]{0,20}"); } - this.project = project; + this.folder = folder; return this; } - /** Name of the region scoping this request. */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region scoping this request. + /** Name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** Name of the region scoping this request. */ - public SetTarget setRegion(java.lang.String region) { + /** Name of the zone for this request. */ + public Update setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } - /** Name of the ForwardingRule resource in which target is to be set. */ + /** Name of the zone VM extension policy to update. */ @com.google.api.client.util.Key - private java.lang.String forwardingRule; + private java.lang.String vmExtensionPolicy; - /** Name of the ForwardingRule resource in which target is to be set. + /** Name of the zone VM extension policy to update. */ - public java.lang.String getForwardingRule() { - return forwardingRule; + public java.lang.String getVmExtensionPolicy() { + return vmExtensionPolicy; } - /** Name of the ForwardingRule resource in which target is to be set. */ - public SetTarget setForwardingRule(java.lang.String forwardingRule) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.forwardingRule = forwardingRule; + /** Name of the zone VM extension policy to update. */ + public Update setVmExtensionPolicy(java.lang.String vmExtensionPolicy) { + this.vmExtensionPolicy = vmExtensionPolicy; return this; } @@ -32370,146 +31997,161 @@ 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 SetTarget setRequestId(java.lang.String requestId) { + public Update setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetTarget set(String parameterName, Object value) { - return (SetTarget) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the ForwardingRules collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.ForwardingRules.List request = compute.forwardingRules().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public ForwardingRules forwardingRules() { + return new ForwardingRules(); + } + + /** + * The "forwardingRules" collection of methods. + */ + public class ForwardingRules { + /** - * Returns permissions that a caller has on the specified resource. + * Retrieves an aggregated list of forwarding rules. * - * Create a request for the method "forwardingRules.testIamPermissions". + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "forwardingRules.aggregatedList". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/aggregated/forwardingRules"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Returns permissions that a caller has on the specified resource. + * Retrieves an aggregated list of forwarding rules. * - * Create a request for the method "forwardingRules.testIamPermissions". + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "forwardingRules.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ForwardingRuleAggregatedList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) 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. */ @@ -32523,222 +32165,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the FutureReservations collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.FutureReservations.List request = compute.futureReservations().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public FutureReservations futureReservations() { - return new FutureReservations(); - } - - /** - * The "futureReservations" collection of methods. - */ - public class FutureReservations { - - /** - * Retrieves an aggregated list of future reservations. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "futureReservations.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/futureReservations"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - /** - * Retrieves an aggregated list of future reservations. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "futureReservations.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

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

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FutureReservationsAggregatedListResponse.class); - this.project = com.google.api.client.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) { + 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 " + @@ -33075,116 +32502,132 @@ public AggregatedList set(String parameterName, Object value) { } } /** - * Cancel the specified future reservation. + * Deletes the specified ForwardingRule resource. * - * Create a request for the method "futureReservations.cancel". + * Create a request for the method "forwardingRules.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone Name of the zone for this request. Name should conform to RFC1035. - * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. + * @param region Name of the region scoping this request. + * @param forwardingRule Name of the ForwardingRule resource to delete. * @return the request */ - public Cancel cancel(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) throws java.io.IOException { - Cancel result = new Cancel(project, zone, futureReservation); + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String forwardingRule) throws java.io.IOException { + Delete result = new Delete(project, region, forwardingRule); initialize(result); return result; } - public class Cancel extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/futureReservations/{futureReservation}/cancel"; + private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{forwardingRule}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern FORWARDING_RULE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Cancel the specified future reservation. + * Deletes the specified ForwardingRule resource. * - * Create a request for the method "futureReservations.cancel". + * Create a request for the method "forwardingRules.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param zone Name of the zone for this request. Name should conform to RFC1035. - * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. + * @param region Name of the region scoping this request. + * @param forwardingRule Name of the ForwardingRule resource to delete. * @since 1.13 */ - protected Cancel(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Delete(java.lang.String project, java.lang.String region, java.lang.String forwardingRule) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.futureReservation = com.google.api.client.util.Preconditions.checkNotNull(futureReservation, "Required parameter futureReservation must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Cancel setUserIp(java.lang.String userIp) { - return (Cancel) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -33198,7 +32641,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Cancel setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -33208,35 +32651,45 @@ public Cancel setProject(java.lang.String project) { return this; } - /** Name of the zone for this request. Name should conform to RFC1035. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** Name of the zone for this request. Name should conform to RFC1035. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** Name of the zone for this request. Name should conform to RFC1035. */ - public Cancel setZone(java.lang.String zone) { - this.zone = zone; + /** Name of the region scoping this request. */ + public Delete setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } - /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ + /** Name of the ForwardingRule resource to delete. */ @com.google.api.client.util.Key - private java.lang.String futureReservation; + private java.lang.String forwardingRule; - /** Name of the future reservation to retrieve. Name should conform to RFC1035. + /** Name of the ForwardingRule resource to delete. */ - public java.lang.String getFutureReservation() { - return futureReservation; + public java.lang.String getForwardingRule() { + return forwardingRule; } - /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ - public Cancel setFutureReservation(java.lang.String futureReservation) { - this.futureReservation = futureReservation; + /** Name of the ForwardingRule resource to delete. */ + public Delete setForwardingRule(java.lang.String forwardingRule) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.forwardingRule = forwardingRule; return this; } @@ -33284,127 +32737,153 @@ 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 Cancel setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Deletes the specified future reservation. + * Returns the specified ForwardingRule resource. * - * Create a request for the method "futureReservations.delete". + * Create a request for the method "forwardingRules.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone Name of the zone for this request. Name should conform to RFC1035. - * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. + * @param region Name of the region scoping this request. + * @param forwardingRule Name of the ForwardingRule resource to return. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) throws java.io.IOException { - Delete result = new Delete(project, zone, futureReservation); + public Get get(java.lang.String project, java.lang.String region, java.lang.String forwardingRule) throws java.io.IOException { + Get result = new Get(project, region, forwardingRule); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/futureReservations/{futureReservation}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{forwardingRule}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern FORWARDING_RULE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Deletes the specified future reservation. + * Returns the specified ForwardingRule resource. * - * Create a request for the method "futureReservations.delete". + * Create a request for the method "forwardingRules.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param zone Name of the zone for this request. Name should conform to RFC1035. - * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. + * @param region Name of the region scoping this request. + * @param forwardingRule Name of the ForwardingRule resource to return. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Get(java.lang.String project, java.lang.String region, java.lang.String forwardingRule) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ForwardingRule.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.futureReservation = com.google.api.client.util.Preconditions.checkNotNull(futureReservation, "Required parameter futureReservation must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public 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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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. */ @@ -33418,7 +32897,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete 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 " + @@ -33428,265 +32907,60 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the zone for this request. Name should conform to RFC1035. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** Name of the zone for this request. Name should conform to RFC1035. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** Name of the zone for this request. Name should conform to RFC1035. */ - public Delete setZone(java.lang.String zone) { - this.zone = zone; + /** Name of the region scoping this request. */ + public Get setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } - /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ + /** Name of the ForwardingRule resource to return. */ @com.google.api.client.util.Key - private java.lang.String futureReservation; + private java.lang.String forwardingRule; - /** Name of the future reservation to retrieve. Name should conform to RFC1035. + /** Name of the ForwardingRule resource to return. */ - public java.lang.String getFutureReservation() { - return futureReservation; - } - - /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ - public Delete setFutureReservation(java.lang.String futureReservation) { - this.futureReservation = futureReservation; - return this; + public java.lang.String getForwardingRule() { + return forwardingRule; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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); - } - } - /** - * Retrieves information about the specified future reservation. - * - * Create a request for the method "futureReservations.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. Name should conform to RFC1035. - * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) throws java.io.IOException { - Get result = new Get(project, zone, futureReservation); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/futureReservations/{futureReservation}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - /** - * Retrieves information about the specified future reservation. - * - * Create a request for the method "futureReservations.get". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param zone Name of the zone for this request. Name should conform to RFC1035. - * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FutureReservation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.futureReservation = com.google.api.client.util.Preconditions.checkNotNull(futureReservation, "Required parameter futureReservation must be specified."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + /** Name of the ForwardingRule resource to return. */ + public Get setForwardingRule(java.lang.String forwardingRule) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.project = project; + this.forwardingRule = forwardingRule; return this; } - /** Name of the zone for this request. Name should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. Name should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. Name should conform to RFC1035. */ - public Get setZone(java.lang.String zone) { - this.zone = zone; - return this; - } + private java.lang.String view; - /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String futureReservation; + /** - /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ - public java.lang.String getFutureReservation() { - return futureReservation; + public java.lang.String getView() { + return view; } - /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ - public Get setFutureReservation(java.lang.String futureReservation) { - this.futureReservation = futureReservation; + public Get setView(java.lang.String view) { + this.view = view; return this; } @@ -33696,35 +32970,40 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a new Future Reservation. + * Creates a ForwardingRule resource in the specified project and region using the data included in + * the request. * - * Create a request for the method "futureReservations.insert". + * Create a request for the method "forwardingRules.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 zone Name of the zone for this request. Name should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.FutureReservation} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.ForwardingRule} * @return the request */ - public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.FutureReservation content) throws java.io.IOException { - Insert result = new Insert(project, zone, content); + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.ForwardingRule content) throws java.io.IOException { + Insert result = new Insert(project, region, content); initialize(result); return result; } public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/futureReservations"; + private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Creates a new Future Reservation. + * Creates a ForwardingRule resource in the specified project and region using the data included + * in the request. * - * Create a request for the method "futureReservations.insert". + * Create a request for the method "forwardingRules.insert". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link @@ -33732,11 +33011,11 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param zone Name of the zone for this request. Name should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.FutureReservation} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.ForwardingRule} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.FutureReservation content) { + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.ForwardingRule 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()) { @@ -33744,7 +33023,12 @@ protected Insert(java.lang.String project, java.lang.String zone, com.google.api "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override @@ -33828,19 +33112,24 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the zone for this request. Name should conform to RFC1035. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** Name of the zone for this request. Name should conform to RFC1035. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** Name of the zone for this request. Name should conform to RFC1035. */ - public Insert setZone(java.lang.String zone) { - this.zone = zone; + /** Name of the region scoping this request. */ + public Insert setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } @@ -33899,36 +33188,37 @@ public Insert set(String parameterName, Object value) { } } /** - * A list of all the future reservations that have been configured for the specified project in - * specified zone. + * Retrieves a list of ForwardingRule resources available to the specified project and region. * - * Create a request for the method "futureReservations.list". + * Create a request for the method "forwardingRules.list". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone Name of the zone for this request. Name should conform to RFC1035. + * @param region Name of the region scoping this request. * @return the request */ - public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { - List result = new List(project, zone); + public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { + List result = new List(project, region); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/futureReservations"; + private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * A list of all the future reservations that have been configured for the specified project in - * specified zone. + * Retrieves a list of ForwardingRule resources available to the specified project and region. * - * Create a request for the method "futureReservations.list". + * Create a request for the method "forwardingRules.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link @@ -33936,18 +33226,23 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param zone Name of the zone for this request. Name should conform to RFC1035. + * @param region Name of the region scoping this request. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FutureReservationsListResponse.class); + protected List(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ForwardingRuleList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override @@ -34041,19 +33336,24 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the zone for this request. Name should conform to RFC1035. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** Name of the zone for this request. Name should conform to RFC1035. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** Name of the zone for this request. Name should conform to RFC1035. */ - public List setZone(java.lang.String zone) { - this.zone = zone; + /** Name of the region scoping this request. */ + public List setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } @@ -34327,49 +33627,59 @@ public List set(String parameterName, Object value) { } } /** - * Updates the specified future reservation. + * Updates the specified forwarding rule with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. Currently, you + * can only patch the network_tier field. * - * Create a request for the method "futureReservations.update". + * Create a request for the method "forwardingRules.patch". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone Name of the zone for this request. Name should conform to RFC1035. - * @param futureReservation Name of the reservation to update. Name should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.FutureReservation} + * @param region Name of the region scoping this request. + * @param forwardingRule Name of the ForwardingRule resource to patch. + * @param content the {@link com.google.api.services.compute.model.ForwardingRule} * @return the request */ - public Update update(java.lang.String project, java.lang.String zone, java.lang.String futureReservation, com.google.api.services.compute.model.FutureReservation content) throws java.io.IOException { - Update result = new Update(project, zone, futureReservation, content); + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String forwardingRule, com.google.api.services.compute.model.ForwardingRule content) throws java.io.IOException { + Patch result = new Patch(project, region, forwardingRule, content); initialize(result); return result; } - public class Update extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/futureReservations/{futureReservation}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{forwardingRule}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern FORWARDING_RULE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Updates the specified future reservation. + * Updates the specified forwarding rule with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. Currently, + * you can only patch the network_tier field. * - * Create a request for the method "futureReservations.update". + * Create a request for the method "forwardingRules.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param zone Name of the zone for this request. Name should conform to RFC1035. - * @param futureReservation Name of the reservation to update. Name should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.FutureReservation} + * @param region Name of the region scoping this request. + * @param forwardingRule Name of the ForwardingRule resource to patch. + * @param content the {@link com.google.api.services.compute.model.ForwardingRule} * @since 1.13 */ - protected Update(java.lang.String project, java.lang.String zone, java.lang.String futureReservation, com.google.api.services.compute.model.FutureReservation content) { + protected Patch(java.lang.String project, java.lang.String region, java.lang.String forwardingRule, com.google.api.services.compute.model.ForwardingRule 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()) { @@ -34377,68 +33687,78 @@ protected Update(java.lang.String project, java.lang.String zone, java.lang.Stri "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.futureReservation = com.google.api.client.util.Preconditions.checkNotNull(futureReservation, "Required parameter futureReservation must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -34452,7 +33772,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update 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 " + @@ -34462,50 +33782,45 @@ public Update setProject(java.lang.String project) { return this; } - /** Name of the zone for this request. Name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. Name should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. Name should conform to RFC1035. */ - public Update setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** Name of the reservation to update. Name should conform to RFC1035. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String futureReservation; + private java.lang.String region; - /** Name of the reservation to update. Name should conform to RFC1035. + /** Name of the region scoping this request. */ - public java.lang.String getFutureReservation() { - return futureReservation; + public java.lang.String getRegion() { + return region; } - /** Name of the reservation to update. Name should conform to RFC1035. */ - public Update setFutureReservation(java.lang.String futureReservation) { - this.futureReservation = futureReservation; + /** Name of the region scoping this request. */ + public Patch setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } + /** Name of the ForwardingRule resource to patch. */ @com.google.api.client.util.Key - private java.util.List paths; - - /** + private java.lang.String forwardingRule; + /** Name of the ForwardingRule resource to patch. */ - public java.util.List getPaths() { - return paths; + public java.lang.String getForwardingRule() { + return forwardingRule; } - public Update setPaths(java.util.List paths) { - this.paths = paths; + /** Name of the ForwardingRule resource to patch. */ + public Patch setForwardingRule(java.lang.String forwardingRule) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.forwardingRule = forwardingRule; return this; } @@ -34553,171 +33868,148 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Update setRequestId(java.lang.String requestId) { + public 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 Update setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the GlobalAddresses collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.GlobalAddresses.List request = compute.globalAddresses().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public GlobalAddresses globalAddresses() { - return new GlobalAddresses(); - } - - /** - * The "globalAddresses" collection of methods. - */ - public class GlobalAddresses { - /** - * Deletes the specified address resource. + * Sets the labels on the specified resource. To learn more about labels, read the Labeling + * Resources documentation. * - * Create a request for the method "globalAddresses.delete". + * Create a request for the method "forwardingRules.setLabels". * * 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 SetLabels#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param address Name of the address resource to delete. + * @param region The region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String address) throws java.io.IOException { - Delete result = new Delete(project, address); + public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, region, resource, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/addresses/{address}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ADDRESS_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified address resource. + * Sets the labels on the specified resource. To learn more about labels, read the Labeling + * Resources documentation. * - * Create a request for the method "globalAddresses.delete". + * Create a request for the method "forwardingRules.setLabels". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param address Name of the address resource to delete. + * @param region The region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String address) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.address = com.google.api.client.util.Preconditions.checkNotNull(address, "Required parameter address must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), - "Parameter address must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -34731,7 +34023,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public SetLabels setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -34741,24 +34033,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the address resource to delete. */ + /** The region for this request. */ @com.google.api.client.util.Key - private java.lang.String address; + private java.lang.String region; - /** Name of the address resource to delete. + /** The region for this request. */ - public java.lang.String getAddress() { - return address; + public java.lang.String getRegion() { + return region; } - /** Name of the address resource to delete. */ - public Delete setAddress(java.lang.String address) { + /** The region for this request. */ + public SetLabels setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), - "Parameter address must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public SetLabels setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.address = address; + this.resource = resource; return this; } @@ -34806,142 +34119,148 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Delete setRequestId(java.lang.String requestId) { + public SetLabels setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); } } /** - * Returns the specified address resource. + * Changes target URL for forwarding rule. The new target should be of the same type as the old + * target. * - * Create a request for the method "globalAddresses.get". + * Create a request for the method "forwardingRules.setTarget". * * 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 SetTarget#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param address Name of the address resource to return. + * @param region Name of the region scoping this request. + * @param forwardingRule Name of the ForwardingRule resource in which target is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetReference} * @return the request */ - public Get get(java.lang.String project, java.lang.String address) throws java.io.IOException { - Get result = new Get(project, address); + public SetTarget setTarget(java.lang.String project, java.lang.String region, java.lang.String forwardingRule, com.google.api.services.compute.model.TargetReference content) throws java.io.IOException { + SetTarget result = new SetTarget(project, region, forwardingRule, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class SetTarget extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/addresses/{address}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ADDRESS_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern FORWARDING_RULE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the specified address resource. + * Changes target URL for forwarding rule. The new target should be of the same type as the old + * target. * - * Create a request for the method "globalAddresses.get". + * Create a request for the method "forwardingRules.setTarget". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

+ * {@link + * SetTarget#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 address Name of the address resource to return. + * @param region Name of the region scoping this request. + * @param forwardingRule Name of the ForwardingRule resource in which target is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetReference} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String address) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Address.class); + protected SetTarget(java.lang.String project, java.lang.String region, java.lang.String forwardingRule, com.google.api.services.compute.model.TargetReference content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.address = com.google.api.client.util.Preconditions.checkNotNull(address, "Required parameter address must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), - "Parameter address must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule 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 SetTarget set$Xgafv(java.lang.String $Xgafv) { + return (SetTarget) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public SetTarget setAccessToken(java.lang.String accessToken) { + return (SetTarget) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public SetTarget setAlt(java.lang.String alt) { + return (SetTarget) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public SetTarget setCallback(java.lang.String callback) { + return (SetTarget) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public SetTarget setFields(java.lang.String fields) { + return (SetTarget) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public SetTarget setKey(java.lang.String key) { + return (SetTarget) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public SetTarget setOauthToken(java.lang.String oauthToken) { + return (SetTarget) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public SetTarget setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetTarget) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public SetTarget setQuotaUser(java.lang.String quotaUser) { + return (SetTarget) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public SetTarget setUploadType(java.lang.String uploadType) { + return (SetTarget) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public SetTarget setUploadProtocol(java.lang.String uploadProtocol) { + return (SetTarget) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public SetTarget setUserIp(java.lang.String userIp) { + return (SetTarget) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -34955,7 +34274,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public SetTarget setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -34965,299 +34284,232 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the address resource to return. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String address; + private java.lang.String region; - /** Name of the address resource to return. + /** Name of the region scoping this request. */ - public java.lang.String getAddress() { - return address; + public java.lang.String getRegion() { + return region; } - /** Name of the address resource to return. */ - public Get setAddress(java.lang.String address) { + /** Name of the region scoping this request. */ + public SetTarget setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), - "Parameter address must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.address = address; + this.region = region; return this; } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Find owner instance from given ip address - * - * Create a request for the method "globalAddresses.getOwnerInstance". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetOwnerInstance#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public GetOwnerInstance getOwnerInstance(java.lang.String project) throws java.io.IOException { - GetOwnerInstance result = new GetOwnerInstance(project); - initialize(result); - return result; - } - - public class GetOwnerInstance extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/addresses/getOwnerInstance"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - /** - * Find owner instance from given ip address - * - * Create a request for the method "globalAddresses.getOwnerInstance". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetOwnerInstance#execute()} method to invoke the remote operation. - *

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

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected GetOwnerInstance(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GetOwnerInstanceResponse.class); - this.project = com.google.api.client.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 GetOwnerInstance set$Xgafv(java.lang.String $Xgafv) { - return (GetOwnerInstance) super.set$Xgafv($Xgafv); - } - - @Override - public GetOwnerInstance setAccessToken(java.lang.String accessToken) { - return (GetOwnerInstance) super.setAccessToken(accessToken); - } - - @Override - public GetOwnerInstance setAlt(java.lang.String alt) { - return (GetOwnerInstance) super.setAlt(alt); - } - - @Override - public GetOwnerInstance setCallback(java.lang.String callback) { - return (GetOwnerInstance) super.setCallback(callback); - } - - @Override - public GetOwnerInstance setFields(java.lang.String fields) { - return (GetOwnerInstance) super.setFields(fields); - } - - @Override - public GetOwnerInstance setKey(java.lang.String key) { - return (GetOwnerInstance) super.setKey(key); - } - - @Override - public GetOwnerInstance setOauthToken(java.lang.String oauthToken) { - return (GetOwnerInstance) super.setOauthToken(oauthToken); - } - - @Override - public GetOwnerInstance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetOwnerInstance) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetOwnerInstance setQuotaUser(java.lang.String quotaUser) { - return (GetOwnerInstance) super.setQuotaUser(quotaUser); - } - - @Override - public GetOwnerInstance setUploadType(java.lang.String uploadType) { - return (GetOwnerInstance) super.setUploadType(uploadType); - } - - @Override - public GetOwnerInstance setUploadProtocol(java.lang.String uploadProtocol) { - return (GetOwnerInstance) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetOwnerInstance setUserIp(java.lang.String userIp) { - return (GetOwnerInstance) super.setUserIp(userIp); - } - - /** Project ID for this request. */ + /** Name of the ForwardingRule resource in which target is to be set. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String forwardingRule; - /** Project ID for this request. + /** Name of the ForwardingRule resource in which target is to be set. */ - public java.lang.String getProject() { - return project; + public java.lang.String getForwardingRule() { + return forwardingRule; } - /** Project ID for this request. */ - public GetOwnerInstance setProject(java.lang.String project) { + /** Name of the ForwardingRule resource in which target is to be set. */ + public SetTarget setForwardingRule(java.lang.String forwardingRule) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.project = project; + this.forwardingRule = forwardingRule; return this; } - /** The VM IP address. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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 ipAddress; + private java.lang.String requestId; - /** The VM IP address. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating 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 getIpAddress() { - return ipAddress; + public java.lang.String getRequestId() { + return requestId; } - /** The VM IP address. */ - public GetOwnerInstance setIpAddress(java.lang.String ipAddress) { - this.ipAddress = ipAddress; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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 SetTarget setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetOwnerInstance set(String parameterName, Object value) { - return (GetOwnerInstance) super.set(parameterName, value); + public SetTarget set(String parameterName, Object value) { + return (SetTarget) super.set(parameterName, value); } } /** - * Creates an address resource in the specified project by using the data included in the request. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "globalAddresses.insert". + * Create a request for the method "forwardingRules.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.Address} + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.Address content) throws java.io.IOException { - Insert result = new Insert(project, content); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, region, resource, content); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/addresses"; + private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Creates an address resource in the specified project by using the data included in the request. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "globalAddresses.insert". + * Create a request for the method "forwardingRules.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.Address} + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.Address content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -35271,7 +34523,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -35281,99 +34533,122 @@ public Insert setProject(java.lang.String project) { return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String region; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the FutureReservations collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.FutureReservations.List request = compute.futureReservations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public FutureReservations futureReservations() { + return new FutureReservations(); + } + + /** + * The "futureReservations" collection of methods. + */ + public class FutureReservations { + /** - * Retrieves a list of global addresses. + * Retrieves an aggregated list of future reservations. * - * Create a request for the method "globalAddresses.list". + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "futureReservations.aggregatedList". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/addresses"; + private static final String REST_PATH = "projects/{project}/aggregated/futureReservations"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves a list of global addresses. + * Retrieves an aggregated list of future reservations. * - * Create a request for the method "globalAddresses.list". + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "futureReservations.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.AddressList.class); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FutureReservationsAggregatedListResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -35393,63 +34668,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -35463,7 +34738,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public AggregatedList setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -35604,38 +34879,72 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public AggregatedList setFilter(java.lang.String filter) { this.filter = filter; return this; } /** - * 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`) + * 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.Long maxResults; + private java.lang.Boolean includeAllScopes; - /** 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] + /** 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.Long getMaxResults() { - return maxResults; + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; } /** - * 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; + * 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; } /** @@ -35677,7 +34986,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -35700,7 +35009,7 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public List setPageToken(java.lang.String pageToken) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -35732,148 +35041,164 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Moves the specified address resource from one project to another project. + * Cancel the specified future reservation. * - * Create a request for the method "globalAddresses.move". + * Create a request for the method "futureReservations.cancel". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Move#execute()} method to invoke the remote operation. + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. * - * @param project Source project ID which the Address is moved from. - * @param address Name of the address resource to move. - * @param content the {@link com.google.api.services.compute.model.GlobalAddressesMoveRequest} + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Name should conform to RFC1035. + * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. * @return the request */ - public Move move(java.lang.String project, java.lang.String address, com.google.api.services.compute.model.GlobalAddressesMoveRequest content) throws java.io.IOException { - Move result = new Move(project, address, content); + public Cancel cancel(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) throws java.io.IOException { + Cancel result = new Cancel(project, zone, futureReservation); initialize(result); return result; } - public class Move extends ComputeRequest { + public class Cancel extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/addresses/{address}/move"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/futureReservations/{futureReservation}/cancel"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ADDRESS_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Moves the specified address resource from one project to another project. + * Cancel the specified future reservation. * - * Create a request for the method "globalAddresses.move". + * Create a request for the method "futureReservations.cancel". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Move#execute()} method to invoke the remote operation.

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

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

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

* - * @param project Source project ID which the Address is moved from. - * @param address Name of the address resource to move. - * @param content the {@link com.google.api.services.compute.model.GlobalAddressesMoveRequest} + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Name should conform to RFC1035. + * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. * @since 1.13 */ - protected Move(java.lang.String project, java.lang.String address, com.google.api.services.compute.model.GlobalAddressesMoveRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Cancel(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) { + 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.address = com.google.api.client.util.Preconditions.checkNotNull(address, "Required parameter address must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), - "Parameter address must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.futureReservation = com.google.api.client.util.Preconditions.checkNotNull(futureReservation, "Required parameter futureReservation must be specified."); } @Override - public Move set$Xgafv(java.lang.String $Xgafv) { - return (Move) super.set$Xgafv($Xgafv); + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public Move setAccessToken(java.lang.String accessToken) { - return (Move) super.setAccessToken(accessToken); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public Move setAlt(java.lang.String alt) { - return (Move) super.setAlt(alt); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } @Override - public Move setCallback(java.lang.String callback) { - return (Move) super.setCallback(callback); + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } @Override - public Move setFields(java.lang.String fields) { - return (Move) super.setFields(fields); + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } @Override - public Move setKey(java.lang.String key) { - return (Move) super.setKey(key); + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } @Override - public Move setOauthToken(java.lang.String oauthToken) { - return (Move) super.setOauthToken(oauthToken); + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); } @Override - public Move setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Move) super.setPrettyPrint(prettyPrint); + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); } @Override - public Move setQuotaUser(java.lang.String quotaUser) { - return (Move) super.setQuotaUser(quotaUser); + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } @Override - public Move setUploadType(java.lang.String uploadType) { - return (Move) super.setUploadType(uploadType); + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } @Override - public Move setUploadProtocol(java.lang.String uploadProtocol) { - return (Move) super.setUploadProtocol(uploadProtocol); + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); } @Override - public Move setUserIp(java.lang.String userIp) { - return (Move) super.setUserIp(userIp); + public Cancel setUserIp(java.lang.String userIp) { + return (Cancel) super.setUserIp(userIp); } - /** Source project ID which the Address is moved from. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Source project ID which the Address is moved from. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Source project ID which the Address is moved from. */ - public Move setProject(java.lang.String project) { + /** Project ID for this request. */ + public Cancel setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -35883,24 +35208,35 @@ public Move setProject(java.lang.String project) { return this; } - /** Name of the address resource to move. */ + /** Name of the zone for this request. Name should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String address; + private java.lang.String zone; - /** Name of the address resource to move. + /** Name of the zone for this request. Name should conform to RFC1035. */ - public java.lang.String getAddress() { - return address; + public java.lang.String getZone() { + return zone; } - /** Name of the address resource to move. */ - public Move setAddress(java.lang.String address) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), - "Parameter address must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.address = address; + /** Name of the zone for this request. Name should conform to RFC1035. */ + public Cancel setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String futureReservation; + + /** Name of the future reservation to retrieve. Name should conform to RFC1035. + */ + public java.lang.String getFutureReservation() { + return futureReservation; + } + + /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ + public Cancel setFutureReservation(java.lang.String futureReservation) { + this.futureReservation = futureReservation; return this; } @@ -35948,137 +35284,127 @@ 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 Move setRequestId(java.lang.String requestId) { + public Cancel setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Move set(String parameterName, Object value) { - return (Move) super.set(parameterName, value); + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); } } /** - * Sets the labels on a GlobalAddress. To learn more about labels, read theLabeling Resources - * documentation. + * Deletes the specified future reservation. * - * Create a request for the method "globalAddresses.setLabels". + * Create a request for the method "futureReservations.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @param zone Name of the zone for this request. Name should conform to RFC1035. + * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. * @return the request */ - public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, resource, content); + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) throws java.io.IOException { + Delete result = new Delete(project, zone, futureReservation); initialize(result); return result; } - public class SetLabels extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/addresses/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/futureReservations/{futureReservation}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Sets the labels on a GlobalAddress. To learn more about labels, read theLabeling Resources - * documentation. + * Deletes the specified future reservation. * - * Create a request for the method "globalAddresses.setLabels". + * Create a request for the method "futureReservations.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @param zone Name of the zone for this request. Name should conform to RFC1035. + * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. * @since 1.13 */ - protected SetLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.futureReservation = com.google.api.client.util.Preconditions.checkNotNull(futureReservation, "Required parameter futureReservation must be specified."); } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -36092,7 +35418,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -36102,157 +35428,219 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the zone for this request. Name should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String zone; - /** Name or id of the resource for this request. + /** Name of the zone for this request. Name should conform to RFC1035. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getZone() { + return zone; } - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; + /** Name of the zone for this request. Name should conform to RFC1035. */ + public Delete setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String futureReservation; + + /** Name of the future reservation to retrieve. Name should conform to RFC1035. + */ + public java.lang.String getFutureReservation() { + return futureReservation; + } + + /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ + public Delete setFutureReservation(java.lang.String futureReservation) { + this.futureReservation = futureReservation; + 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 SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Retrieves information about the specified future reservation. * - * Create a request for the method "globalAddresses.testIamPermissions". + * Create a request for the method "futureReservations.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param zone Name of the zone for this request. Name should conform to RFC1035. + * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); + public Get get(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) throws java.io.IOException { + Get result = new Get(project, zone, futureReservation); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/addresses/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/futureReservations/{futureReservation}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Returns permissions that a caller has on the specified resource. + * Retrieves information about the specified future reservation. * - * Create a request for the method "globalAddresses.testIamPermissions". + * Create a request for the method "futureReservations.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param zone Name of the zone for this request. Name should conform to RFC1035. + * @param futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected Get(java.lang.String project, java.lang.String zone, java.lang.String futureReservation) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FutureReservation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.futureReservation = com.google.api.client.util.Preconditions.checkNotNull(futureReservation, "Required parameter futureReservation must be specified."); } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - + @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() { @@ -36260,7 +35648,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions 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 " + @@ -36270,275 +35658,296 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the zone for this request. Name should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String zone; - /** Name or id of the resource for this request. + /** Name of the zone for this request. Name should conform to RFC1035. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getZone() { + return zone; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; + /** Name of the zone for this request. Name should conform to RFC1035. */ + public Get setZone(java.lang.String zone) { + this.zone = zone; return this; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } + /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String futureReservation; - /** - * An accessor for creating requests from the GlobalFolderOperations collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.GlobalFolderOperations.List request = compute.globalFolderOperations().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public GlobalFolderOperations globalFolderOperations() { - return new GlobalFolderOperations(); - } + /** Name of the future reservation to retrieve. Name should conform to RFC1035. + */ + public java.lang.String getFutureReservation() { + return futureReservation; + } - /** - * The "globalFolderOperations" collection of methods. - */ - public class GlobalFolderOperations { + /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ + public Get setFutureReservation(java.lang.String futureReservation) { + this.futureReservation = futureReservation; + return this; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * Retrieves the specified Operations resource. + * Creates a new Future Reservation. * - * Create a request for the method "globalFolderOperations.get". + * Create a request for the method "futureReservations.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * - * @param folder Folder ID for this request. - * @param operation Name of the Operations resource to return. + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Name should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.FutureReservation} * @return the request */ - public Get get(java.lang.String folder, java.lang.String operation) throws java.io.IOException { - Get result = new Get(folder, operation); + public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.FutureReservation content) throws java.io.IOException { + Insert result = new Insert(project, zone, content); initialize(result); return result; } - public class Get extends ComputeRequest { - - private static final String REST_PATH = "{+folder}/global/operations/{operation}"; + public class Insert extends ComputeRequest { - private final java.util.regex.Pattern FOLDER_PATTERN = - java.util.regex.Pattern.compile("folders/[0-9]{0,20}"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/futureReservations"; - private final java.util.regex.Pattern OPERATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves the specified Operations resource. + * Creates a new Future Reservation. * - * Create a request for the method "globalFolderOperations.get". + * Create a request for the method "futureReservations.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

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

* - * @param folder Folder ID for this request. - * @param operation Name of the Operations resource to return. + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Name should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.FutureReservation} * @since 1.13 */ - protected Get(java.lang.String folder, java.lang.String operation) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Operation.class); - this.folder = com.google.api.client.util.Preconditions.checkNotNull(folder, "Required parameter folder must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FOLDER_PATTERN.matcher(folder).matches(), - "Parameter folder must conform to the pattern " + - "folders/[0-9]{0,20}"); - } - this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.FutureReservation 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(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + /** 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; } - @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + /** 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; } - /** Folder ID for this request. */ + /** Name of the zone for this request. Name should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String folder; + private java.lang.String zone; - /** Folder ID for this request. + /** Name of the zone for this request. Name should conform to RFC1035. */ - public java.lang.String getFolder() { - return folder; + public java.lang.String getZone() { + return zone; } - /** Folder ID for this request. */ - public Get setFolder(java.lang.String folder) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FOLDER_PATTERN.matcher(folder).matches(), - "Parameter folder must conform to the pattern " + - "folders/[0-9]{0,20}"); - } - this.folder = folder; + /** Name of the zone for this request. Name should conform to RFC1035. */ + public Insert setZone(java.lang.String zone) { + this.zone = zone; return this; } - /** Name of the Operations resource 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 operation; + private java.lang.String requestId; - /** Name of the Operations resource 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 getOperation() { - return operation; + public java.lang.String getRequestId() { + return requestId; } - /** Name of the Operations resource to return. */ - public Get setOperation(java.lang.String operation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.operation = operation; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Retrieves a list of Operation resources contained within the specified folder. + * A list of all the future reservations that have been configured for the specified project in + * specified zone. * - * Create a request for the method "globalFolderOperations.list". + * Create a request for the method "futureReservations.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 folder Folder ID for this request. + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Name should conform to RFC1035. * @return the request */ - public List list(java.lang.String folder) throws java.io.IOException { - List result = new List(folder); + public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { + List result = new List(project, zone); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "{+folder}/global/operations"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/futureReservations"; - private final java.util.regex.Pattern FOLDER_PATTERN = - java.util.regex.Pattern.compile("folders/[0-9]{0,20}"); + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves a list of Operation resources contained within the specified folder. + * A list of all the future reservations that have been configured for the specified project in + * specified zone. * - * Create a request for the method "globalFolderOperations.list". + * Create a request for the method "futureReservations.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* - * @param folder Folder ID for this request. + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Name should conform to RFC1035. * @since 1.13 */ - protected List(java.lang.String folder) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OperationList.class); - this.folder = com.google.api.client.util.Preconditions.checkNotNull(folder, "Required parameter folder must be specified."); + protected List(java.lang.String project, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FutureReservationsListResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FOLDER_PATTERN.matcher(folder).matches(), - "Parameter folder must conform to the pattern " + - "folders/[0-9]{0,20}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); } @Override @@ -36611,24 +36020,40 @@ public List setUserIp(java.lang.String userIp) { return (List) super.setUserIp(userIp); } - /** Folder ID for this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String folder; + private java.lang.String project; - /** Folder ID for this request. + /** Project ID for this request. */ - public java.lang.String getFolder() { - return folder; + public java.lang.String getProject() { + return project; } - /** Folder ID for this request. */ - public List setFolder(java.lang.String folder) { + /** Project ID for this request. */ + public List setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FOLDER_PATTERN.matcher(folder).matches(), - "Parameter folder must conform to the pattern " + - "folders/[0-9]{0,20}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.folder = folder; + this.project = project; + return this; + } + + /** Name of the zone for this request. Name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. Name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. Name should conform to RFC1035. */ + public List setZone(java.lang.String zone) { + this.zone = zone; return this; } @@ -36901,145 +36326,119 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the GlobalForwardingRules collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.GlobalForwardingRules.List request = compute.globalForwardingRules().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public GlobalForwardingRules globalForwardingRules() { - return new GlobalForwardingRules(); - } - - /** - * The "globalForwardingRules" collection of methods. - */ - public class GlobalForwardingRules { - /** - * Deletes the specified GlobalForwardingRule resource. + * Updates the specified future reservation. * - * Create a request for the method "globalForwardingRules.delete". + * Create a request for the method "futureReservations.update". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param forwardingRule Name of the ForwardingRule resource to delete. + * @param zone Name of the zone for this request. Name should conform to RFC1035. + * @param futureReservation Name of the reservation to update. Name should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.FutureReservation} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String forwardingRule) throws java.io.IOException { - Delete result = new Delete(project, forwardingRule); + public Update update(java.lang.String project, java.lang.String zone, java.lang.String futureReservation, com.google.api.services.compute.model.FutureReservation content) throws java.io.IOException { + Update result = new Update(project, zone, futureReservation, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/forwardingRules/{forwardingRule}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/futureReservations/{futureReservation}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern FORWARDING_RULE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Deletes the specified GlobalForwardingRule resource. + * Updates the specified future reservation. * - * Create a request for the method "globalForwardingRules.delete". + * Create a request for the method "futureReservations.update". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param forwardingRule Name of the ForwardingRule resource to delete. + * @param zone Name of the zone for this request. Name should conform to RFC1035. + * @param futureReservation Name of the reservation to update. Name should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.FutureReservation} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String forwardingRule) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Update(java.lang.String project, java.lang.String zone, java.lang.String futureReservation, com.google.api.services.compute.model.FutureReservation 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.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.futureReservation = com.google.api.client.util.Preconditions.checkNotNull(futureReservation, "Required parameter futureReservation must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -37053,7 +36452,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public Update setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -37063,31 +36462,57 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the ForwardingRule resource to delete. */ + /** Name of the zone for this request. Name should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String forwardingRule; + private java.lang.String zone; - /** Name of the ForwardingRule resource to delete. + /** Name of the zone for this request. Name should conform to RFC1035. */ - public java.lang.String getForwardingRule() { - return forwardingRule; + public java.lang.String getZone() { + return zone; } - /** Name of the ForwardingRule resource to delete. */ - public Delete setForwardingRule(java.lang.String forwardingRule) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.forwardingRule = forwardingRule; + /** Name of the zone for this request. Name should conform to RFC1035. */ + public Update setZone(java.lang.String zone) { + this.zone = zone; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + /** Name of the reservation to update. Name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String futureReservation; + + /** Name of the reservation to update. Name should conform to RFC1035. + */ + public java.lang.String getFutureReservation() { + return futureReservation; + } + + /** Name of the reservation to update. Name should conform to RFC1035. */ + public Update setFutureReservation(java.lang.String futureReservation) { + this.futureReservation = futureReservation; + return this; + } + + @com.google.api.client.util.Key + private java.util.List paths; + + /** + + */ + public java.util.List getPaths() { + return paths; + } + + public Update setPaths(java.util.List paths) { + this.paths = paths; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * * For example, consider a situation where you make an initial request and the request times * out. If you make the request again with the same request ID, the server can check if @@ -37128,144 +36553,171 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Delete setRequestId(java.lang.String requestId) { + public Update setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } + /** update_mask indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Update setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the GlobalAddresses collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.GlobalAddresses.List request = compute.globalAddresses().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public GlobalAddresses globalAddresses() { + return new GlobalAddresses(); + } + + /** + * The "globalAddresses" collection of methods. + */ + public class GlobalAddresses { + /** - * Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by - * making a list() request. + * Deletes the specified address resource. * - * Create a request for the method "globalForwardingRules.get". + * Create a request for the method "globalAddresses.delete". * * 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 Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param forwardingRule Name of the ForwardingRule resource to return. + * @param address Name of the address resource to delete. * @return the request */ - public Get get(java.lang.String project, java.lang.String forwardingRule) throws java.io.IOException { - Get result = new Get(project, forwardingRule); + public Delete delete(java.lang.String project, java.lang.String address) throws java.io.IOException { + Delete result = new Delete(project, address); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/forwardingRules/{forwardingRule}"; + private static final String REST_PATH = "projects/{project}/global/addresses/{address}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern FORWARDING_RULE_PATTERN = + private final java.util.regex.Pattern ADDRESS_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules - * by making a list() request. + * Deletes the specified address resource. * - * Create a request for the method "globalForwardingRules.get". + * Create a request for the method "globalAddresses.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param forwardingRule Name of the ForwardingRule resource to return. + * @param address Name of the address resource to delete. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String forwardingRule) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ForwardingRule.class); + protected Delete(java.lang.String project, java.lang.String address) { + 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.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); + this.address = com.google.api.client.util.Preconditions.checkNotNull(address, "Required parameter address must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), + "Parameter address must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -37279,7 +36731,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -37289,156 +36741,207 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the ForwardingRule resource to return. */ + /** Name of the address resource to delete. */ @com.google.api.client.util.Key - private java.lang.String forwardingRule; + private java.lang.String address; - /** Name of the ForwardingRule resource to return. + /** Name of the address resource to delete. */ - public java.lang.String getForwardingRule() { - return forwardingRule; + public java.lang.String getAddress() { + return address; } - /** Name of the ForwardingRule resource to return. */ - public Get setForwardingRule(java.lang.String forwardingRule) { + /** Name of the address resource to delete. */ + public Delete setAddress(java.lang.String address) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), + "Parameter address must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.forwardingRule = forwardingRule; + this.address = address; 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 view; + 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 getView() { - return view; + public java.lang.String getRequestId() { + return requestId; } - public Get setView(java.lang.String view) { - this.view = view; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Creates a GlobalForwardingRule resource in the specified project using the data included in the - * request. + * Returns the specified address resource. * - * Create a request for the method "globalForwardingRules.insert". + * Create a request for the method "globalAddresses.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.ForwardingRule} + * @param address Name of the address resource to return. * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.ForwardingRule content) throws java.io.IOException { - Insert result = new Insert(project, content); + public Get get(java.lang.String project, java.lang.String address) throws java.io.IOException { + Get result = new Get(project, address); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/forwardingRules"; + private static final String REST_PATH = "projects/{project}/global/addresses/{address}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern ADDRESS_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Creates a GlobalForwardingRule resource in the specified project using the data included in the - * request. + * Returns the specified address resource. * - * Create a request for the method "globalForwardingRules.insert". + * Create a request for the method "globalAddresses.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * parameters, call the {@link 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 content the {@link com.google.api.services.compute.model.ForwardingRule} + * @param address Name of the address resource to return. * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.ForwardingRule 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 address) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Address.class); this.project = com.google.api.client.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.address = com.google.api.client.util.Preconditions.checkNotNull(address, "Required parameter address must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), + "Parameter address must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -37452,7 +36955,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -37462,99 +36965,72 @@ public Insert setProject(java.lang.String project) { return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Name of the address resource to return. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String address; - 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 address resource to return. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getAddress() { + return address; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Name of the address resource to return. */ + public Get setAddress(java.lang.String address) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), + "Parameter address must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.address = address; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Retrieves a list of GlobalForwardingRule resources available to the specified project. + * Find owner instance from given ip address * - * Create a request for the method "globalForwardingRules.list". + * Create a request for the method "globalAddresses.getOwnerInstance". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link GetOwnerInstance#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); + public GetOwnerInstance getOwnerInstance(java.lang.String project) throws java.io.IOException { + GetOwnerInstance result = new GetOwnerInstance(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class GetOwnerInstance extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/forwardingRules"; + private static final String REST_PATH = "projects/{project}/global/addresses/getOwnerInstance"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves a list of GlobalForwardingRule resources available to the specified project. + * Find owner instance from given ip address * - * Create a request for the method "globalForwardingRules.list". + * Create a request for the method "globalAddresses.getOwnerInstance". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ForwardingRuleList.class); + protected GetOwnerInstance(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GetOwnerInstanceResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -37574,63 +37050,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public GetOwnerInstance set$Xgafv(java.lang.String $Xgafv) { + return (GetOwnerInstance) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public GetOwnerInstance setAccessToken(java.lang.String accessToken) { + return (GetOwnerInstance) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public GetOwnerInstance setAlt(java.lang.String alt) { + return (GetOwnerInstance) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public GetOwnerInstance setCallback(java.lang.String callback) { + return (GetOwnerInstance) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public GetOwnerInstance setFields(java.lang.String fields) { + return (GetOwnerInstance) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public GetOwnerInstance setKey(java.lang.String key) { + return (GetOwnerInstance) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public GetOwnerInstance setOauthToken(java.lang.String oauthToken) { + return (GetOwnerInstance) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public GetOwnerInstance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetOwnerInstance) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public GetOwnerInstance setQuotaUser(java.lang.String quotaUser) { + return (GetOwnerInstance) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public GetOwnerInstance setUploadType(java.lang.String uploadType) { + return (GetOwnerInstance) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public GetOwnerInstance setUploadProtocol(java.lang.String uploadProtocol) { + return (GetOwnerInstance) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public GetOwnerInstance setUserIp(java.lang.String userIp) { + return (GetOwnerInstance) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -37644,7 +37120,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public GetOwnerInstance setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -37654,26 +37130,369 @@ public List setProject(java.lang.String project) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. + /** The VM IP address. */ + @com.google.api.client.util.Key + private java.lang.String ipAddress; + + /** The VM IP address. + */ + public java.lang.String getIpAddress() { + return ipAddress; + } + + /** The VM IP address. */ + public GetOwnerInstance setIpAddress(java.lang.String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + @Override + public GetOwnerInstance set(String parameterName, Object value) { + return (GetOwnerInstance) super.set(parameterName, value); + } + } + /** + * Creates an address resource in the specified project by using the data included in the request. + * + * Create a request for the method "globalAddresses.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.Address} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.Address content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/addresses"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + /** + * Creates an address resource in the specified project by using the data included in the request. + * + * Create a request for the method "globalAddresses.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.Address} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.Address content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Insert setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of global addresses. + * + * Create a request for the method "globalAddresses.list". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/addresses"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + /** + * Retrieves a list of global addresses. + * + * Create a request for the method "globalAddresses.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.AddressList.class); + this.project = com.google.api.client.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 @@ -37924,141 +37743,137 @@ public List set(String parameterName, Object value) { } } /** - * Updates the specified forwarding rule with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. Currently, you - * can only patch the network_tier field. + * Moves the specified address resource from one project to another project. * - * Create a request for the method "globalForwardingRules.patch". + * Create a request for the method "globalAddresses.move". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Move#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param forwardingRule Name of the ForwardingRule resource to patch. - * @param content the {@link com.google.api.services.compute.model.ForwardingRule} + * @param project Source project ID which the Address is moved from. + * @param address Name of the address resource to move. + * @param content the {@link com.google.api.services.compute.model.GlobalAddressesMoveRequest} * @return the request */ - public Patch patch(java.lang.String project, java.lang.String forwardingRule, com.google.api.services.compute.model.ForwardingRule content) throws java.io.IOException { - Patch result = new Patch(project, forwardingRule, content); + public Move move(java.lang.String project, java.lang.String address, com.google.api.services.compute.model.GlobalAddressesMoveRequest content) throws java.io.IOException { + Move result = new Move(project, address, content); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class Move extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/forwardingRules/{forwardingRule}"; + private static final String REST_PATH = "projects/{project}/global/addresses/{address}/move"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern FORWARDING_RULE_PATTERN = + private final java.util.regex.Pattern ADDRESS_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Updates the specified forwarding rule with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. Currently, - * you can only patch the network_tier field. + * Moves the specified address resource from one project to another project. * - * Create a request for the method "globalForwardingRules.patch". + * Create a request for the method "globalAddresses.move". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

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

{@link + * Move#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 forwardingRule Name of the ForwardingRule resource to patch. - * @param content the {@link com.google.api.services.compute.model.ForwardingRule} + * @param project Source project ID which the Address is moved from. + * @param address Name of the address resource to move. + * @param content the {@link com.google.api.services.compute.model.GlobalAddressesMoveRequest} * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String forwardingRule, com.google.api.services.compute.model.ForwardingRule content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Move(java.lang.String project, java.lang.String address, com.google.api.services.compute.model.GlobalAddressesMoveRequest 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.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); + this.address = com.google.api.client.util.Preconditions.checkNotNull(address, "Required parameter address must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), + "Parameter address must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Move set$Xgafv(java.lang.String $Xgafv) { + return (Move) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Move setAccessToken(java.lang.String accessToken) { + return (Move) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Move setAlt(java.lang.String alt) { + return (Move) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Move setCallback(java.lang.String callback) { + return (Move) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Move setFields(java.lang.String fields) { + return (Move) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Move setKey(java.lang.String key) { + return (Move) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Move setOauthToken(java.lang.String oauthToken) { + return (Move) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Move setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Move) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Move setQuotaUser(java.lang.String quotaUser) { + return (Move) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Move setUploadType(java.lang.String uploadType) { + return (Move) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Move setUploadProtocol(java.lang.String uploadProtocol) { + return (Move) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Move setUserIp(java.lang.String userIp) { + return (Move) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Source project ID which the Address is moved from. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Source project ID which the Address is moved from. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + /** Source project ID which the Address is moved from. */ + public Move setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -38068,24 +37883,24 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the ForwardingRule resource to patch. */ + /** Name of the address resource to move. */ @com.google.api.client.util.Key - private java.lang.String forwardingRule; + private java.lang.String address; - /** Name of the ForwardingRule resource to patch. + /** Name of the address resource to move. */ - public java.lang.String getForwardingRule() { - return forwardingRule; + public java.lang.String getAddress() { + return address; } - /** Name of the ForwardingRule resource to patch. */ - public Patch setForwardingRule(java.lang.String forwardingRule) { + /** Name of the address resource to move. */ + public Move setAddress(java.lang.String address) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ADDRESS_PATTERN.matcher(address).matches(), + "Parameter address must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.forwardingRule = forwardingRule; + this.address = address; return this; } @@ -38133,21 +37948,21 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Patch setRequestId(java.lang.String requestId) { + public Move setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Move set(String parameterName, Object value) { + return (Move) super.set(parameterName, value); } } /** - * Sets the labels on the specified resource. To learn more about labels, read the Labeling - * resources documentation. + * Sets the labels on a GlobalAddress. To learn more about labels, read theLabeling Resources + * documentation. * - * Create a request for the method "globalForwardingRules.setLabels". + * Create a request for the method "globalAddresses.setLabels". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. @@ -38165,7 +37980,7 @@ public SetLabels setLabels(java.lang.String project, java.lang.String resource, public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/forwardingRules/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/global/addresses/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -38174,10 +37989,10 @@ public class SetLabels extends ComputeRequest @@ -38313,229 +38128,10 @@ public SetLabels set(String parameterName, Object value) { return (SetLabels) super.set(parameterName, value); } } - /** - * Changes target URL for the GlobalForwardingRule resource. The new target should be of the same - * type as the old target. - * - * Create a request for the method "globalForwardingRules.setTarget". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetTarget#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param forwardingRule Name of the ForwardingRule resource in which target is to be set. - * @param content the {@link com.google.api.services.compute.model.TargetReference} - * @return the request - */ - public SetTarget setTarget(java.lang.String project, java.lang.String forwardingRule, com.google.api.services.compute.model.TargetReference content) throws java.io.IOException { - SetTarget result = new SetTarget(project, forwardingRule, content); - initialize(result); - return result; - } - - public class SetTarget extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/forwardingRules/{forwardingRule}/setTarget"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern FORWARDING_RULE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Changes target URL for the GlobalForwardingRule resource. The new target should be of the same - * type as the old target. - * - * Create a request for the method "globalForwardingRules.setTarget". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetTarget#execute()} method to invoke the remote operation.

- * {@link - * SetTarget#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 forwardingRule Name of the ForwardingRule resource in which target is to be set. - * @param content the {@link com.google.api.services.compute.model.TargetReference} - * @since 1.13 - */ - protected SetTarget(java.lang.String project, java.lang.String forwardingRule, com.google.api.services.compute.model.TargetReference content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public SetTarget set$Xgafv(java.lang.String $Xgafv) { - return (SetTarget) super.set$Xgafv($Xgafv); - } - - @Override - public SetTarget setAccessToken(java.lang.String accessToken) { - return (SetTarget) super.setAccessToken(accessToken); - } - - @Override - public SetTarget setAlt(java.lang.String alt) { - return (SetTarget) super.setAlt(alt); - } - - @Override - public SetTarget setCallback(java.lang.String callback) { - return (SetTarget) super.setCallback(callback); - } - - @Override - public SetTarget setFields(java.lang.String fields) { - return (SetTarget) super.setFields(fields); - } - - @Override - public SetTarget setKey(java.lang.String key) { - return (SetTarget) super.setKey(key); - } - - @Override - public SetTarget setOauthToken(java.lang.String oauthToken) { - return (SetTarget) super.setOauthToken(oauthToken); - } - - @Override - public SetTarget setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetTarget) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetTarget setQuotaUser(java.lang.String quotaUser) { - return (SetTarget) super.setQuotaUser(quotaUser); - } - - @Override - public SetTarget setUploadType(java.lang.String uploadType) { - return (SetTarget) super.setUploadType(uploadType); - } - - @Override - public SetTarget setUploadProtocol(java.lang.String uploadProtocol) { - return (SetTarget) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetTarget setUserIp(java.lang.String userIp) { - return (SetTarget) 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 SetTarget setProject(java.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 ForwardingRule resource in which target is to be set. */ - @com.google.api.client.util.Key - private java.lang.String forwardingRule; - - /** Name of the ForwardingRule resource in which target is to be set. - */ - public java.lang.String getForwardingRule() { - return forwardingRule; - } - - /** Name of the ForwardingRule resource in which target is to be set. */ - public SetTarget setForwardingRule(java.lang.String forwardingRule) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), - "Parameter forwardingRule must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.forwardingRule = forwardingRule; - 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 SetTarget setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public SetTarget set(String parameterName, Object value) { - return (SetTarget) super.set(parameterName, value); - } - } /** * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "globalForwardingRules.testIamPermissions". + * Create a request for the method "globalAddresses.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. @@ -38553,7 +38149,7 @@ public TestIamPermissions testIamPermissions(java.lang.String project, java.lang public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/forwardingRules/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/addresses/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -38564,7 +38160,7 @@ public class TestIamPermissions extends ComputeRequestThe typical use is:

*
    *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.GlobalNetworkEndpointGroups.List request = compute.globalNetworkEndpointGroups().list(parameters ...)}
+   *   {@code Compute.GlobalFolderOperations.List request = compute.globalFolderOperations().list(parameters ...)}
    * 
* * @return the resource collection */ - public GlobalNetworkEndpointGroups globalNetworkEndpointGroups() { - return new GlobalNetworkEndpointGroups(); + public GlobalFolderOperations globalFolderOperations() { + return new GlobalFolderOperations(); } /** - * The "globalNetworkEndpointGroups" collection of methods. + * The "globalFolderOperations" collection of methods. */ - public class GlobalNetworkEndpointGroups { + public class GlobalFolderOperations { /** - * Attach a network endpoint to the specified network endpoint group. + * Retrieves the specified Operations resource. * - * Create a request for the method "globalNetworkEndpointGroups.attachNetworkEndpoints". + * Create a request for the method "globalFolderOperations.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AttachNetworkEndpoints#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 networkEndpointGroup The name of the network endpoint group where you are attaching network - endpoints to. It should - * comply with RFC1035. - * @param content the {@link com.google.api.services.compute.model.GlobalNetworkEndpointGroupsAttachEndpointsRequest} + * @param folder Folder ID for this request. + * @param operation Name of the Operations resource to return. * @return the request */ - public AttachNetworkEndpoints attachNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.GlobalNetworkEndpointGroupsAttachEndpointsRequest content) throws java.io.IOException { - AttachNetworkEndpoints result = new AttachNetworkEndpoints(project, networkEndpointGroup, content); + public Get get(java.lang.String folder, java.lang.String operation) throws java.io.IOException { + Get result = new Get(folder, operation); initialize(result); return result; } - public class AttachNetworkEndpoints extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints"; + private static final String REST_PATH = "{+folder}/global/operations/{operation}"; - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern FOLDER_PATTERN = + java.util.regex.Pattern.compile("folders/[0-9]{0,20}"); + + private final java.util.regex.Pattern OPERATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Attach a network endpoint to the specified network endpoint group. + * Retrieves the specified Operations resource. * - * Create a request for the method "globalNetworkEndpointGroups.attachNetworkEndpoints". + * Create a request for the method "globalFolderOperations.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AttachNetworkEndpoints#execute()} method to invoke the remote - * operation.

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

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

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

* - * @param project Project ID for this request. - * @param networkEndpointGroup The name of the network endpoint group where you are attaching network - endpoints to. It should - * comply with RFC1035. - * @param content the {@link com.google.api.services.compute.model.GlobalNetworkEndpointGroupsAttachEndpointsRequest} + * @param folder Folder ID for this request. + * @param operation Name of the Operations resource to return. * @since 1.13 */ - protected AttachNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.GlobalNetworkEndpointGroupsAttachEndpointsRequest 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."); + protected Get(java.lang.String folder, java.lang.String operation) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.folder = com.google.api.client.util.Preconditions.checkNotNull(folder, "Required parameter folder 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(FOLDER_PATTERN.matcher(folder).matches(), + "Parameter folder must conform to the pattern " + + "folders/[0-9]{0,20}"); + } + this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @Override - public AttachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (AttachNetworkEndpoints) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public AttachNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (AttachNetworkEndpoints) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public AttachNetworkEndpoints setAlt(java.lang.String alt) { - return (AttachNetworkEndpoints) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public AttachNetworkEndpoints setCallback(java.lang.String callback) { - return (AttachNetworkEndpoints) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public AttachNetworkEndpoints setFields(java.lang.String fields) { - return (AttachNetworkEndpoints) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public AttachNetworkEndpoints setKey(java.lang.String key) { - return (AttachNetworkEndpoints) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public AttachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (AttachNetworkEndpoints) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public AttachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AttachNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public AttachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (AttachNetworkEndpoints) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public AttachNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (AttachNetworkEndpoints) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public AttachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (AttachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public AttachNetworkEndpoints setUserIp(java.lang.String userIp) { - return (AttachNetworkEndpoints) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - /** 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; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } - /** Project ID for this request. */ - public AttachNetworkEndpoints setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } - /** - * The name of the network endpoint group where you are attaching network endpoints to. It - * should comply with RFC1035. - */ + /** Folder ID for this request. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String folder; - /** The name of the network endpoint group where you are attaching network endpoints to. It should - comply with RFC1035. + /** Folder ID for this request. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getFolder() { + return folder; } - /** - * The name of the network endpoint group where you are attaching network endpoints to. It - * should comply with RFC1035. - */ - public AttachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; + /** Folder ID for this request. */ + public Get setFolder(java.lang.String folder) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FOLDER_PATTERN.matcher(folder).matches(), + "Parameter folder must conform to the pattern " + + "folders/[0-9]{0,20}"); + } + this.folder = folder; 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 Operations resource to return. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String operation; - 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 Operations resource to return. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOperation() { + return operation; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public AttachNetworkEndpoints setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Name of the Operations resource to return. */ + public Get setOperation(java.lang.String operation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.operation = operation; return this; } @Override - public AttachNetworkEndpoints set(String parameterName, Object value) { - return (AttachNetworkEndpoints) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are - * backend services referencing it. + * Retrieves a list of Operation resources contained within the specified folder. * - * Create a request for the method "globalNetworkEndpointGroups.delete". + * Create a request for the method "globalFolderOperations.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply with - RFC1035. + * @param folder Folder ID for this request. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String networkEndpointGroup) throws java.io.IOException { - Delete result = new Delete(project, networkEndpointGroup); + public List list(java.lang.String folder) throws java.io.IOException { + List result = new List(folder); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}"; + private static final String REST_PATH = "{+folder}/global/operations"; - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern FOLDER_PATTERN = + java.util.regex.Pattern.compile("folders/[0-9]{0,20}"); /** - * Deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are - * backend services referencing it. + * Retrieves a list of Operation resources contained within the specified folder. * - * Create a request for the method "globalNetworkEndpointGroups.delete". + * Create a request for the method "globalFolderOperations.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

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

* - * @param project Project ID for this request. - * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply with - RFC1035. + * @param folder Folder ID for this request. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String networkEndpointGroup) { - 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."); + protected List(java.lang.String folder) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OperationList.class); + this.folder = com.google.api.client.util.Preconditions.checkNotNull(folder, "Required parameter folder 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(FOLDER_PATTERN.matcher(folder).matches(), + "Parameter folder must conform to the pattern " + + "folders/[0-9]{0,20}"); } - this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } - /** Project ID for this request. */ + @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); + } + + /** Folder ID for this request. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String folder; - /** Project ID for this request. + /** Folder ID for this request. */ - public java.lang.String getProject() { - return project; + public java.lang.String getFolder() { + return folder; } - /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + /** Folder ID for this request. */ + public List setFolder(java.lang.String folder) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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(FOLDER_PATTERN.matcher(folder).matches(), + "Parameter folder must conform to the pattern " + + "folders/[0-9]{0,20}"); } - this.project = project; + this.folder = folder; return this; } /** - * The name of the network endpoint group to delete. It should comply with RFC1035. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String filter; - /** The name of the network endpoint group to delete. It should comply with RFC1035. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getFilter() { + return filter; } /** - * The name of the network endpoint group to delete. It should comply with RFC1035. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - public Delete setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; + public List setFilter(java.lang.String filter) { + this.filter = filter; 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 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. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original 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 List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the GlobalForwardingRules collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.GlobalForwardingRules.List request = compute.globalForwardingRules().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public GlobalForwardingRules globalForwardingRules() { + return new GlobalForwardingRules(); + } + + /** + * The "globalForwardingRules" collection of methods. + */ + public class GlobalForwardingRules { + /** - * Detach the network endpoint from the specified network endpoint group. + * Deletes the specified GlobalForwardingRule resource. * - * Create a request for the method "globalNetworkEndpointGroups.detachNetworkEndpoints". + * Create a request for the method "globalForwardingRules.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DetachNetworkEndpoints#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param networkEndpointGroup The name of the network endpoint group where you are removing network - endpoints. It should comply - * with RFC1035. - * @param content the {@link com.google.api.services.compute.model.GlobalNetworkEndpointGroupsDetachEndpointsRequest} + * @param forwardingRule Name of the ForwardingRule resource to delete. * @return the request */ - public DetachNetworkEndpoints detachNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.GlobalNetworkEndpointGroupsDetachEndpointsRequest content) throws java.io.IOException { - DetachNetworkEndpoints result = new DetachNetworkEndpoints(project, networkEndpointGroup, content); + public Delete delete(java.lang.String project, java.lang.String forwardingRule) throws java.io.IOException { + Delete result = new Delete(project, forwardingRule); initialize(result); return result; } - public class DetachNetworkEndpoints extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints"; + private static final String REST_PATH = "projects/{project}/global/forwardingRules/{forwardingRule}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern FORWARDING_RULE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Detach the network endpoint from the specified network endpoint group. + * Deletes the specified GlobalForwardingRule resource. * - * Create a request for the method "globalNetworkEndpointGroups.detachNetworkEndpoints". + * Create a request for the method "globalForwardingRules.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DetachNetworkEndpoints#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param networkEndpointGroup The name of the network endpoint group where you are removing network - endpoints. It should comply - * with RFC1035. - * @param content the {@link com.google.api.services.compute.model.GlobalNetworkEndpointGroupsDetachEndpointsRequest} + * @param forwardingRule Name of the ForwardingRule resource to delete. * @since 1.13 */ - protected DetachNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.GlobalNetworkEndpointGroupsDetachEndpointsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Delete(java.lang.String project, java.lang.String forwardingRule) { + 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.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + this.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public DetachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (DetachNetworkEndpoints) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public DetachNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (DetachNetworkEndpoints) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public DetachNetworkEndpoints setAlt(java.lang.String alt) { - return (DetachNetworkEndpoints) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public DetachNetworkEndpoints setCallback(java.lang.String callback) { - return (DetachNetworkEndpoints) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public DetachNetworkEndpoints setFields(java.lang.String fields) { - return (DetachNetworkEndpoints) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public DetachNetworkEndpoints setKey(java.lang.String key) { - return (DetachNetworkEndpoints) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public DetachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (DetachNetworkEndpoints) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public DetachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DetachNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public DetachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (DetachNetworkEndpoints) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public DetachNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (DetachNetworkEndpoints) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public DetachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (DetachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public DetachNetworkEndpoints setUserIp(java.lang.String userIp) { - return (DetachNetworkEndpoints) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -39277,7 +39053,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DetachNetworkEndpoints setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -39287,26 +39063,24 @@ public DetachNetworkEndpoints setProject(java.lang.String project) { return this; } - /** - * The name of the network endpoint group where you are removing network endpoints. It should - * comply with RFC1035. - */ + /** Name of the ForwardingRule resource to delete. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String forwardingRule; - /** The name of the network endpoint group where you are removing network endpoints. It should comply - with RFC1035. + /** Name of the ForwardingRule resource to delete. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getForwardingRule() { + return forwardingRule; } - /** - * The name of the network endpoint group where you are removing network endpoints. It should - * comply with RFC1035. - */ - public DetachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; + /** Name of the ForwardingRule resource to delete. */ + public Delete setForwardingRule(java.lang.String forwardingRule) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.forwardingRule = forwardingRule; return this; } @@ -39354,45 +39128,50 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public DetachNetworkEndpoints setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public DetachNetworkEndpoints set(String parameterName, Object value) { - return (DetachNetworkEndpoints) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Returns the specified network endpoint group. + * Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by + * making a list() request. * - * Create a request for the method "globalNetworkEndpointGroups.get". + * Create a request for the method "globalForwardingRules.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 networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. + * @param forwardingRule Name of the ForwardingRule resource to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String networkEndpointGroup) throws java.io.IOException { - Get result = new Get(project, networkEndpointGroup); + public Get get(java.lang.String project, java.lang.String forwardingRule) throws java.io.IOException { + Get result = new Get(project, forwardingRule); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}"; + private static final String REST_PATH = "projects/{project}/global/forwardingRules/{forwardingRule}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern FORWARDING_RULE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Returns the specified network endpoint group. + * Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules + * by making a list() request. * - * Create a request for the method "globalNetworkEndpointGroups.get". + * Create a request for the method "globalForwardingRules.get". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link @@ -39400,18 +39179,23 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. + * @param forwardingRule Name of the ForwardingRule resource to return. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String networkEndpointGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroup.class); + protected Get(java.lang.String project, java.lang.String forwardingRule) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ForwardingRule.class); this.project = com.google.api.client.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.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + this.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override @@ -39505,19 +39289,39 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the network endpoint group. It should comply with RFC1035. */ + /** Name of the ForwardingRule resource to return. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String forwardingRule; - /** The name of the network endpoint group. It should comply with RFC1035. + /** Name of the ForwardingRule resource to return. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getForwardingRule() { + return forwardingRule; } - /** The name of the network endpoint group. It should comply with RFC1035. */ - public Get setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; + /** Name of the ForwardingRule resource to return. */ + public Get setForwardingRule(java.lang.String forwardingRule) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.forwardingRule = forwardingRule; + return this; + } + + @com.google.api.client.util.Key + private java.lang.String view; + + /** + + */ + public java.lang.String getView() { + return view; + } + + public Get setView(java.lang.String view) { + this.view = view; return this; } @@ -39527,25 +39331,19 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a network endpoint group in the specified project using the parameters that are included - * in the request. - * - * Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with - * zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage - * NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service - * Connect NEGs): regional API - To manage NEGs with global scope (such as global internet - * NEGs):global API + * Creates a GlobalForwardingRule resource in the specified project using the data included in the + * request. * - * Create a request for the method "globalNetworkEndpointGroups.insert". + * Create a request for the method "globalForwardingRules.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.NetworkEndpointGroup} + * @param content the {@link com.google.api.services.compute.model.ForwardingRule} * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.NetworkEndpointGroup content) throws java.io.IOException { + public Insert insert(java.lang.String project, com.google.api.services.compute.model.ForwardingRule content) throws java.io.IOException { Insert result = new Insert(project, content); initialize(result); return result; @@ -39553,22 +39351,16 @@ public Insert insert(java.lang.String project, com.google.api.services.compute.m public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups"; + private static final String REST_PATH = "projects/{project}/global/forwardingRules"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Creates a network endpoint group in the specified project using the parameters that are - * included in the request. - * - * Note: Use the following APIs to manage network endpoint groups: - To manage NEGs - * with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To - * manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private - * Service Connect NEGs): regional API - To manage NEGs with global scope (such as - * global internet NEGs):global API + * Creates a GlobalForwardingRule resource in the specified project using the data included in the + * request. * - * Create a request for the method "globalNetworkEndpointGroups.insert". + * Create a request for the method "globalForwardingRules.insert". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link @@ -39576,10 +39368,10 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroup} + * @param content the {@link com.google.api.services.compute.model.ForwardingRule} * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.NetworkEndpointGroup content) { + protected Insert(java.lang.String project, com.google.api.services.compute.model.ForwardingRule 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()) { @@ -39725,9 +39517,9 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves the list of network endpoint groups that are located in the specified project. + * Retrieves a list of GlobalForwardingRule resources available to the specified project. * - * Create a request for the method "globalNetworkEndpointGroups.list". + * Create a request for the method "globalForwardingRules.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. @@ -39741,17 +39533,17 @@ public List list(java.lang.String project) throws java.io.IOException { return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups"; + private static final String REST_PATH = "projects/{project}/global/forwardingRules"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves the list of network endpoint groups that are located in the specified project. + * Retrieves a list of GlobalForwardingRule resources available to the specified project. * - * Create a request for the method "globalNetworkEndpointGroups.list". + * Create a request for the method "globalForwardingRules.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link @@ -39762,7 +39554,7 @@ public class List extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints"; + private static final String REST_PATH = "projects/{project}/global/forwardingRules/{forwardingRule}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern FORWARDING_RULE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Lists the network endpoints in the specified network endpoint group. + * Updates the specified forwarding rule with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. Currently, + * you can only patch the network_tier field. * - * Create a request for the method "globalNetworkEndpointGroups.listNetworkEndpoints". + * Create a request for the method "globalForwardingRules.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListNetworkEndpoints#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param networkEndpointGroup The name of the network endpoint group from which you want to generate a - list of included network - * endpoints. It should comply with RFC1035. + * @param forwardingRule Name of the ForwardingRule resource to patch. + * @param content the {@link com.google.api.services.compute.model.ForwardingRule} * @since 1.13 */ - protected ListNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroupsListNetworkEndpoints.class); + protected Patch(java.lang.String project, java.lang.String forwardingRule, com.google.api.services.compute.model.ForwardingRule 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.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + this.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public ListNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (ListNetworkEndpoints) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public ListNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (ListNetworkEndpoints) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public ListNetworkEndpoints setAlt(java.lang.String alt) { - return (ListNetworkEndpoints) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public ListNetworkEndpoints setCallback(java.lang.String callback) { - return (ListNetworkEndpoints) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public ListNetworkEndpoints setFields(java.lang.String fields) { - return (ListNetworkEndpoints) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public ListNetworkEndpoints setKey(java.lang.String key) { - return (ListNetworkEndpoints) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public ListNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (ListNetworkEndpoints) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public ListNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public ListNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (ListNetworkEndpoints) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public ListNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (ListNetworkEndpoints) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public ListNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (ListNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public ListNetworkEndpoints setUserIp(java.lang.String userIp) { - return (ListNetworkEndpoints) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -40258,7 +40058,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListNetworkEndpoints 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 " + @@ -40268,443 +40068,372 @@ public ListNetworkEndpoints setProject(java.lang.String project) { return this; } - /** - * The name of the network endpoint group from which you want to generate a list of included - * network endpoints. It should comply with RFC1035. - */ + /** Name of the ForwardingRule resource to patch. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String forwardingRule; - /** The name of the network endpoint group from which you want to generate a list of included network - endpoints. It should comply with RFC1035. + /** Name of the ForwardingRule resource to patch. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getForwardingRule() { + return forwardingRule; } - /** - * The name of the network endpoint group from which you want to generate a list of included - * network endpoints. It should comply with RFC1035. - */ - public ListNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; + /** Name of the ForwardingRule resource to patch. */ + public Patch setForwardingRule(java.lang.String forwardingRule) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.forwardingRule = forwardingRule; return this; } /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * You cannot combine constraints on multiple fields using regular expressions. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + private java.lang.String requestId; - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - You cannot combine constraints on multiple fields using regular expressions. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getRequestId() { + return requestId; } /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * You cannot combine constraints on multiple fields using regular expressions. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public ListNetworkEndpoints setFilter(java.lang.String filter) { - this.filter = filter; + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; 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 ListNetworkEndpoints setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } + } + /** + * Sets the labels on the specified resource. To learn more about labels, read the Labeling + * resources documentation. + * + * Create a request for the method "globalForwardingRules.setLabels". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @return the request + */ + public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, resource, content); + initialize(result); + return result; + } - /** - * 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; + public class SetLabels extends ComputeRequest { - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + private static final String REST_PATH = "projects/{project}/global/forwardingRules/{resource}/setLabels"; - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * Sets the labels on the specified resource. To learn more about labels, read the Labeling + * resources documentation. * - * 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. + * Create a request for the method "globalForwardingRules.setLabels". * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public ListNetworkEndpoints 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. + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + protected SetLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } - /** 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; + @Override + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + @Override + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); + } + + @Override + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); + } + + @Override + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); + } + + @Override + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); + } + + @Override + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); + } + + @Override + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); + } + + @Override + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); + } + + @Override + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); + } + + @Override + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) 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 ListNetworkEndpoints setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public SetLabels setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; return this; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String resource; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Name or id of the resource for this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getResource() { + return resource; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public ListNetworkEndpoints setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** Name or id of the resource for this request. */ + public SetLabels setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } @Override - public ListNetworkEndpoints set(String parameterName, Object value) { - return (ListNetworkEndpoints) super.set(parameterName, value); + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the GlobalOperations collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.GlobalOperations.List request = compute.globalOperations().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public GlobalOperations globalOperations() { - return new GlobalOperations(); - } - - /** - * The "globalOperations" collection of methods. - */ - public class GlobalOperations { - /** - * Retrieves an aggregated list of all operations. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Changes target URL for the GlobalForwardingRule resource. The new target should be of the same + * type as the old target. * - * Create a request for the method "globalOperations.aggregatedList". + * Create a request for the method "globalForwardingRules.setTarget". * * 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 SetTarget#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param forwardingRule Name of the ForwardingRule resource in which target is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetReference} * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + public SetTarget setTarget(java.lang.String project, java.lang.String forwardingRule, com.google.api.services.compute.model.TargetReference content) throws java.io.IOException { + SetTarget result = new SetTarget(project, forwardingRule, content); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class SetTarget extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/operations"; + private static final String REST_PATH = "projects/{project}/global/forwardingRules/{forwardingRule}/setTarget"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern FORWARDING_RULE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Retrieves an aggregated list of all operations. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Changes target URL for the GlobalForwardingRule resource. The new target should be of the same + * type as the old target. * - * Create a request for the method "globalOperations.aggregatedList". + * Create a request for the method "globalForwardingRules.setTarget". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

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

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

+ * {@link + * SetTarget#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 forwardingRule Name of the ForwardingRule resource in which target is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetReference} * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OperationAggregatedList.class); + protected SetTarget(java.lang.String project, java.lang.String forwardingRule, com.google.api.services.compute.model.TargetReference content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public SetTarget set$Xgafv(java.lang.String $Xgafv) { + return (SetTarget) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public SetTarget setAccessToken(java.lang.String accessToken) { + return (SetTarget) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public SetTarget setAlt(java.lang.String alt) { + return (SetTarget) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public SetTarget setCallback(java.lang.String callback) { + return (SetTarget) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public SetTarget setFields(java.lang.String fields) { + return (SetTarget) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public SetTarget setKey(java.lang.String key) { + return (SetTarget) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public SetTarget setOauthToken(java.lang.String oauthToken) { + return (SetTarget) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public SetTarget setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetTarget) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public SetTarget setQuotaUser(java.lang.String quotaUser) { + return (SetTarget) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public SetTarget setUploadType(java.lang.String uploadType) { + return (SetTarget) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public SetTarget setUploadProtocol(java.lang.String uploadProtocol) { + return (SetTarget) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public SetTarget setUserIp(java.lang.String userIp) { + return (SetTarget) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -40718,7 +40447,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + public SetTarget setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -40728,450 +40457,200 @@ public AggregatedList setProject(java.lang.String project) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ + /** Name of the ForwardingRule resource in which target is to be set. */ @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + private java.lang.String forwardingRule; - You cannot combine constraints on multiple fields using regular expressions. + /** Name of the ForwardingRule resource in which target is to be set. */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getForwardingRule() { + return forwardingRule; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - public AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; + /** Name of the ForwardingRule resource in which target is to be set. */ + public SetTarget setForwardingRule(java.lang.String forwardingRule) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FORWARDING_RULE_PATTERN.matcher(forwardingRule).matches(), + "Parameter forwardingRule must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.forwardingRule = forwardingRule; 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. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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.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; - } + private java.lang.String requestId; - /** - * 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; + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** 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] + 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.Long getMaxResults() { - return maxResults; + public java.lang.String getRequestId() { + return requestId; } /** - * 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`) + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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 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; + public SetTarget setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public SetTarget set(String parameterName, Object value) { + return (SetTarget) super.set(parameterName, value); } } /** - * Deletes the specified Operations resource. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "globalOperations.delete". + * Create a request for the method "globalForwardingRules.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param operation Name of the Operations resource to delete, or its unique numeric - identifier. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String operation) throws java.io.IOException { - Delete result = new Delete(project, operation); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/operations/{operation}"; + private static final String REST_PATH = "projects/{project}/global/forwardingRules/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern OPERATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified Operations resource. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "globalOperations.delete". + * Create a request for the method "globalForwardingRules.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param operation Name of the Operations resource to delete, or its unique numeric - identifier. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String operation) { - super(Compute.this, "DELETE", REST_PATH, null, Void.class); + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -41185,7 +40664,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -41195,164 +40674,171 @@ public Delete setProject(java.lang.String project) { return this; } - /** - * Name of the Operations resource to delete, or its unique numeric identifier. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String operation; + private java.lang.String resource; - /** Name of the Operations resource to delete, or its unique numeric identifier. + /** Name or id of the resource for this request. */ - public java.lang.String getOperation() { - return operation; + public java.lang.String getResource() { + return resource; } - /** - * Name of the Operations resource to delete, or its unique numeric identifier. - */ - public Delete setOperation(java.lang.String operation) { + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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.operation = operation; + this.resource = resource; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the GlobalNetworkEndpointGroups collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.GlobalNetworkEndpointGroups.List request = compute.globalNetworkEndpointGroups().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public GlobalNetworkEndpointGroups globalNetworkEndpointGroups() { + return new GlobalNetworkEndpointGroups(); + } + + /** + * The "globalNetworkEndpointGroups" collection of methods. + */ + public class GlobalNetworkEndpointGroups { + /** - * Retrieves the specified Operations resource. + * Attach a network endpoint to the specified network endpoint group. * - * Create a request for the method "globalOperations.get". + * Create a request for the method "globalNetworkEndpointGroups.attachNetworkEndpoints". * * 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 AttachNetworkEndpoints#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param operation Name of the Operations resource to return, or its unique numeric - identifier. + * @param networkEndpointGroup The name of the network endpoint group where you are attaching network + endpoints to. It should + * comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.GlobalNetworkEndpointGroupsAttachEndpointsRequest} * @return the request */ - public Get get(java.lang.String project, java.lang.String operation) throws java.io.IOException { - Get result = new Get(project, operation); + public AttachNetworkEndpoints attachNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.GlobalNetworkEndpointGroupsAttachEndpointsRequest content) throws java.io.IOException { + AttachNetworkEndpoints result = new AttachNetworkEndpoints(project, networkEndpointGroup, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class AttachNetworkEndpoints extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/operations/{operation}"; + private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern OPERATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Retrieves the specified Operations resource. + * Attach a network endpoint to the specified network endpoint group. * - * Create a request for the method "globalOperations.get". + * Create a request for the method "globalNetworkEndpointGroups.attachNetworkEndpoints". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

{@link AttachNetworkEndpoints#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 operation Name of the Operations resource to return, or its unique numeric - identifier. + * @param networkEndpointGroup The name of the network endpoint group where you are attaching network + endpoints to. It should + * comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.GlobalNetworkEndpointGroupsAttachEndpointsRequest} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String operation) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected AttachNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.GlobalNetworkEndpointGroupsAttachEndpointsRequest 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.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public AttachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (AttachNetworkEndpoints) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public AttachNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (AttachNetworkEndpoints) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public AttachNetworkEndpoints setAlt(java.lang.String alt) { + return (AttachNetworkEndpoints) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public AttachNetworkEndpoints setCallback(java.lang.String callback) { + return (AttachNetworkEndpoints) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public AttachNetworkEndpoints setFields(java.lang.String fields) { + return (AttachNetworkEndpoints) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public AttachNetworkEndpoints setKey(java.lang.String key) { + return (AttachNetworkEndpoints) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public AttachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (AttachNetworkEndpoints) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public AttachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AttachNetworkEndpoints) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public AttachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (AttachNetworkEndpoints) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public AttachNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (AttachNetworkEndpoints) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public AttachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (AttachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public AttachNetworkEndpoints setUserIp(java.lang.String userIp) { + return (AttachNetworkEndpoints) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -41366,7 +40852,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public AttachNetworkEndpoints setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -41377,150 +40863,194 @@ public Get setProject(java.lang.String project) { } /** - * Name of the Operations resource to return, or its unique numeric identifier. + * The name of the network endpoint group where you are attaching network endpoints to. It + * should comply with RFC1035. */ @com.google.api.client.util.Key - private java.lang.String operation; + private java.lang.String networkEndpointGroup; - /** Name of the Operations resource to return, or its unique numeric identifier. + /** The name of the network endpoint group where you are attaching network endpoints to. It should + comply with RFC1035. */ - public java.lang.String getOperation() { - return operation; + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } /** - * Name of the Operations resource to return, or its unique numeric identifier. + * The name of the network endpoint group where you are attaching network endpoints to. It + * should comply with RFC1035. */ - public Get setOperation(java.lang.String operation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.operation = operation; + public AttachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; + 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 AttachNetworkEndpoints 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 AttachNetworkEndpoints set(String parameterName, Object value) { + return (AttachNetworkEndpoints) super.set(parameterName, value); } } /** - * Retrieves a list of Operation resources contained within the specified project. + * Deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are + * backend services referencing it. * - * Create a request for the method "globalOperations.list". + * Create a request for the method "globalNetworkEndpointGroups.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply with + RFC1035. * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + public Delete delete(java.lang.String project, java.lang.String networkEndpointGroup) throws java.io.IOException { + Delete result = new Delete(project, networkEndpointGroup); initialize(result); return result; } - public class List extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/operations"; + private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves a list of Operation resources contained within the specified project. + * Deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are + * backend services referencing it. * - * Create a request for the method "globalOperations.list". + * Create a request for the method "globalNetworkEndpointGroups.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. + * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply with + RFC1035. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OperationList.class); + protected Delete(java.lang.String project, java.lang.String networkEndpointGroup) { + 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.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @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); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -41534,7 +41064,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -41545,410 +41075,195 @@ public List setProject(java.lang.String project) { } /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. - - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) + * The name of the network endpoint group to delete. It should comply with RFC1035. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String networkEndpointGroup; - /** 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] + /** The name of the network endpoint group to delete. It should comply with RFC1035. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } /** - * 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`) + * The name of the network endpoint group to delete. It should comply with RFC1035. */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; + public Delete setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; return this; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } + private java.lang.String requestId; - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Waits for the specified Operation resource to return as `DONE` or for the request to approach the - * 2 minute deadline, and retrieves the specified Operation resource. This method differs from the - * `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns - * the current state of the operation, which might be `DONE` or still in progress. - * - * This method is called on a best-effort basis. Specifically: - In uncommon cases, when - * the server is overloaded, the request might return before the default deadline is reached, or - * might return after zero seconds. - If the default deadline is reached, there is no - * guarantee that the operation is actually done when the method returns. Be prepared to retry - * if the operation is not `DONE`. + * Detach the network endpoint from the specified network endpoint group. * - * Create a request for the method "globalOperations.wait". + * Create a request for the method "globalNetworkEndpointGroups.detachNetworkEndpoints". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Wait#execute()} method to invoke the remote operation. + * parameters, call the {@link DetachNetworkEndpoints#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param operation Name of the Operations resource to return, or its unique numeric - identifier. + * @param networkEndpointGroup The name of the network endpoint group where you are removing network + endpoints. It should comply + * with RFC1035. + * @param content the {@link com.google.api.services.compute.model.GlobalNetworkEndpointGroupsDetachEndpointsRequest} * @return the request */ - public Wait wait(java.lang.String project, java.lang.String operation) throws java.io.IOException { - Wait result = new Wait(project, operation); + public DetachNetworkEndpoints detachNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.GlobalNetworkEndpointGroupsDetachEndpointsRequest content) throws java.io.IOException { + DetachNetworkEndpoints result = new DetachNetworkEndpoints(project, networkEndpointGroup, content); initialize(result); return result; } - public class Wait extends ComputeRequest { + public class DetachNetworkEndpoints extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/operations/{operation}/wait"; + private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern OPERATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Waits for the specified Operation resource to return as `DONE` or for the request to approach - * the 2 minute deadline, and retrieves the specified Operation resource. This method differs from - * the `GET` method in that it waits for no more than the default deadline (2 minutes) and then - * returns the current state of the operation, which might be `DONE` or still in progress. - * - * This method is called on a best-effort basis. Specifically: - In uncommon cases, - * when the server is overloaded, the request might return before the default deadline is - * reached, or might return after zero seconds. - If the default deadline is reached, there - * is no guarantee that the operation is actually done when the method returns. Be prepared to - * retry if the operation is not `DONE`. + * Detach the network endpoint from the specified network endpoint group. * - * Create a request for the method "globalOperations.wait". + * Create a request for the method "globalNetworkEndpointGroups.detachNetworkEndpoints". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

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

{@link DetachNetworkEndpoints#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 operation Name of the Operations resource to return, or its unique numeric - identifier. + * @param networkEndpointGroup The name of the network endpoint group where you are removing network + endpoints. It should comply + * with RFC1035. + * @param content the {@link com.google.api.services.compute.model.GlobalNetworkEndpointGroupsDetachEndpointsRequest} * @since 1.13 */ - protected Wait(java.lang.String project, java.lang.String operation) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected DetachNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.GlobalNetworkEndpointGroupsDetachEndpointsRequest 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.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @Override - public Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); + public DetachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (DetachNetworkEndpoints) super.set$Xgafv($Xgafv); } @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); + public DetachNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (DetachNetworkEndpoints) super.setAccessToken(accessToken); } @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); + public DetachNetworkEndpoints setAlt(java.lang.String alt) { + return (DetachNetworkEndpoints) super.setAlt(alt); } @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); + public DetachNetworkEndpoints setCallback(java.lang.String callback) { + return (DetachNetworkEndpoints) super.setCallback(callback); } @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); + public DetachNetworkEndpoints setFields(java.lang.String fields) { + return (DetachNetworkEndpoints) super.setFields(fields); } @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); + public DetachNetworkEndpoints setKey(java.lang.String key) { + return (DetachNetworkEndpoints) super.setKey(key); } @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); + public DetachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (DetachNetworkEndpoints) super.setOauthToken(oauthToken); } @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); + public DetachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DetachNetworkEndpoints) super.setPrettyPrint(prettyPrint); } @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); + public DetachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (DetachNetworkEndpoints) super.setQuotaUser(quotaUser); } @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); + public DetachNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (DetachNetworkEndpoints) super.setUploadType(uploadType); } @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); + public DetachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (DetachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); } @Override - public Wait setUserIp(java.lang.String userIp) { - return (Wait) super.setUserIp(userIp); + public DetachNetworkEndpoints setUserIp(java.lang.String userIp) { + return (DetachNetworkEndpoints) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -41962,7 +41277,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Wait setProject(java.lang.String project) { + public DetachNetworkEndpoints setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -41973,414 +41288,487 @@ public Wait setProject(java.lang.String project) { } /** - * Name of the Operations resource to return, or its unique numeric identifier. + * The name of the network endpoint group where you are removing network endpoints. It should + * comply with RFC1035. */ @com.google.api.client.util.Key - private java.lang.String operation; + private java.lang.String networkEndpointGroup; - /** Name of the Operations resource to return, or its unique numeric identifier. + /** The name of the network endpoint group where you are removing network endpoints. It should comply + with RFC1035. */ - public java.lang.String getOperation() { - return operation; + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } /** - * Name of the Operations resource to return, or its unique numeric identifier. + * The name of the network endpoint group where you are removing network endpoints. It should + * comply with RFC1035. */ - public Wait setOperation(java.lang.String operation) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.operation = operation; + public DetachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; return this; } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); - } - } + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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. - /** - * An accessor for creating requests from the GlobalOrganizationOperations collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.GlobalOrganizationOperations.List request = compute.globalOrganizationOperations().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public GlobalOrganizationOperations globalOrganizationOperations() { - return new GlobalOrganizationOperations(); - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * The "globalOrganizationOperations" collection of methods. - */ - public class GlobalOrganizationOperations { + 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; + } - /** - * Deletes the specified Operations resource. + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public DetachNetworkEndpoints setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public DetachNetworkEndpoints set(String parameterName, Object value) { + return (DetachNetworkEndpoints) super.set(parameterName, value); + } + } + /** + * Returns the specified network endpoint group. * - * Create a request for the method "globalOrganizationOperations.delete". + * Create a request for the method "globalNetworkEndpointGroups.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param operation Name of the Operations resource to delete, or its unique numeric - identifier. + * @param project Project ID for this request. + * @param networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. * @return the request */ - public Delete delete(java.lang.String operation) throws java.io.IOException { - Delete result = new Delete(operation); + public Get get(java.lang.String project, java.lang.String networkEndpointGroup) throws java.io.IOException { + Get result = new Get(project, networkEndpointGroup); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "locations/global/operations/{operation}"; + private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}"; - private final java.util.regex.Pattern OPERATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Deletes the specified Operations resource. + * Returns the specified network endpoint group. * - * Create a request for the method "globalOrganizationOperations.delete". + * Create a request for the method "globalNetworkEndpointGroups.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * parameters, call the {@link 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 operation Name of the Operations resource to delete, or its unique numeric - identifier. + * @param project Project ID for this request. + * @param networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. * @since 1.13 */ - protected Delete(java.lang.String operation) { - super(Compute.this, "DELETE", REST_PATH, null, Void.class); - this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); + protected Get(java.lang.String project, java.lang.String networkEndpointGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroup.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - /** - * Name of the Operations resource to delete, or its unique numeric identifier. - */ + @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 operation; + private java.lang.String project; - /** Name of the Operations resource to delete, or its unique numeric identifier. + /** Project ID for this request. */ - public java.lang.String getOperation() { - return operation; + public java.lang.String getProject() { + return project; } - /** - * Name of the Operations resource to delete, or its unique numeric identifier. - */ - public Delete setOperation(java.lang.String operation) { + /** Project ID for this request. */ + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.operation = operation; + this.project = project; return this; } - /** Parent ID for this request. */ + /** The name of the network endpoint group. It should comply with RFC1035. */ @com.google.api.client.util.Key - private java.lang.String parentId; + private java.lang.String networkEndpointGroup; - /** Parent ID for this request. + /** The name of the network endpoint group. It should comply with RFC1035. */ - public java.lang.String getParentId() { - return parentId; + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } - /** Parent ID for this request. */ - public Delete setParentId(java.lang.String parentId) { - this.parentId = parentId; + /** The name of the network endpoint group. It should comply with RFC1035. */ + public Get setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Retrieves the specified Operations resource. Gets a list of operations by making a `list()` - * request. + * Creates a network endpoint group in the specified project using the parameters that are included + * in the request. * - * Create a request for the method "globalOrganizationOperations.get". + * Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with + * zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage + * NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service + * Connect NEGs): regional API - To manage NEGs with global scope (such as global internet + * NEGs):global API + * + * Create a request for the method "globalNetworkEndpointGroups.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * - * @param operation Name of the Operations resource to return. Parent is derived from this - field. + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroup} * @return the request */ - public Get get(java.lang.String operation) throws java.io.IOException { - Get result = new Get(operation); + public Insert insert(java.lang.String project, com.google.api.services.compute.model.NetworkEndpointGroup content) throws java.io.IOException { + Insert result = new Insert(project, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "locations/global/operations/{operation}"; + private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups"; - private final java.util.regex.Pattern OPERATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves the specified Operations resource. Gets a list of operations by making a `list()` - * request. + * Creates a network endpoint group in the specified project using the parameters that are + * included in the request. * - * Create a request for the method "globalOrganizationOperations.get". + * Note: Use the following APIs to manage network endpoint groups: - To manage NEGs + * with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To + * manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private + * Service Connect NEGs): regional API - To manage NEGs with global scope (such as + * global internet NEGs):global API + * + * Create a request for the method "globalNetworkEndpointGroups.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

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

* - * @param operation Name of the Operations resource to return. Parent is derived from this - field. + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroup} * @since 1.13 */ - protected Get(java.lang.String operation) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Operation.class); - this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); + protected Insert(java.lang.String project, com.google.api.services.compute.model.NetworkEndpointGroup 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(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } - /** - * Name of the Operations resource to return. Parent is derived from this field. - */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String operation; + private java.lang.String project; - /** Name of the Operations resource to return. Parent is derived from this field. + /** Project ID for this request. */ - public java.lang.String getOperation() { - return operation; + public java.lang.String getProject() { + return project; } - /** - * Name of the Operations resource to return. Parent is derived from this field. - */ - public Get setOperation(java.lang.String operation) { + /** Project ID for this request. */ + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), - "Parameter operation must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.operation = operation; + this.project = project; return this; } - /** Parent ID for this request. Not used. Parent is derived from resource_id. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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 parentId; + private java.lang.String requestId; - /** Parent ID for this request. Not used. Parent is derived from resource_id. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating 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 getParentId() { - return parentId; + public java.lang.String getRequestId() { + return requestId; } - /** Parent ID for this request. Not used. Parent is derived from resource_id. */ - public Get setParentId(java.lang.String parentId) { - this.parentId = parentId; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Retrieves a list of Operation resources contained within the specified organization. + * Retrieves the list of network endpoint groups that are located in the specified project. * - * Create a request for the method "globalOrganizationOperations.list". + * Create a request for the method "globalNetworkEndpointGroups.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() throws java.io.IOException { - List result = new List(); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "locations/global/operations"; + private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves a list of Operation resources contained within the specified organization. + * Retrieves the list of network endpoint groups that are located in the specified project. * - * Create a request for the method "globalOrganizationOperations.list". + * Create a request for the method "globalNetworkEndpointGroups.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* + * @param project Project ID for this request. * @since 1.13 */ - protected List() { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OperationList.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroupList.class); + this.project = com.google.api.client.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 @@ -42453,6 +41841,27 @@ 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 @@ -42685,22 +42094,6 @@ public List setPageToken(java.lang.String pageToken) { return this; } - /** Parent ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String parentId; - - /** Parent ID for this request. - */ - public java.lang.String getParentId() { - return parentId; - } - - /** Parent ID for this request. */ - public List setParentId(java.lang.String parentId) { - this.parentId = parentId; - return this; - } - /** * Opt-in for partial success behavior which provides partial results in case of failure. The * default value is false. @@ -42738,145 +42131,120 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the GlobalPublicDelegatedPrefixes collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.GlobalPublicDelegatedPrefixes.List request = compute.globalPublicDelegatedPrefixes().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public GlobalPublicDelegatedPrefixes globalPublicDelegatedPrefixes() { - return new GlobalPublicDelegatedPrefixes(); - } - - /** - * The "globalPublicDelegatedPrefixes" collection of methods. - */ - public class GlobalPublicDelegatedPrefixes { - /** - * Deletes the specified global PublicDelegatedPrefix. + * Lists the network endpoints in the specified network endpoint group. * - * Create a request for the method "globalPublicDelegatedPrefixes.delete". + * Create a request for the method "globalNetworkEndpointGroups.listNetworkEndpoints". * * 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 ListNetworkEndpoints#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to delete. + * @param networkEndpointGroup The name of the network endpoint group from which you want to generate a + list of included network + * endpoints. It should comply with RFC1035. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String publicDelegatedPrefix) throws java.io.IOException { - Delete result = new Delete(project, publicDelegatedPrefix); + public ListNetworkEndpoints listNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup) throws java.io.IOException { + ListNetworkEndpoints result = new ListNetworkEndpoints(project, networkEndpointGroup); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class ListNetworkEndpoints extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}"; + private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern PUBLIC_DELEGATED_PREFIX_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Deletes the specified global PublicDelegatedPrefix. + * Lists the network endpoints in the specified network endpoint group. * - * Create a request for the method "globalPublicDelegatedPrefixes.delete". + * Create a request for the method "globalNetworkEndpointGroups.listNetworkEndpoints". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

{@link ListNetworkEndpoints#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 publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to delete. + * @param networkEndpointGroup The name of the network endpoint group from which you want to generate a + list of included network + * endpoints. It should comply with RFC1035. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String publicDelegatedPrefix) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected ListNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroupsListNetworkEndpoints.class); this.project = com.google.api.client.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.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public ListNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (ListNetworkEndpoints) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public ListNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (ListNetworkEndpoints) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public ListNetworkEndpoints setAlt(java.lang.String alt) { + return (ListNetworkEndpoints) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public ListNetworkEndpoints setCallback(java.lang.String callback) { + return (ListNetworkEndpoints) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public ListNetworkEndpoints setFields(java.lang.String fields) { + return (ListNetworkEndpoints) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public ListNetworkEndpoints setKey(java.lang.String key) { + return (ListNetworkEndpoints) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public ListNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (ListNetworkEndpoints) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public ListNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListNetworkEndpoints) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public ListNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (ListNetworkEndpoints) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public ListNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (ListNetworkEndpoints) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public ListNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (ListNetworkEndpoints) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public ListNetworkEndpoints setUserIp(java.lang.String userIp) { + return (ListNetworkEndpoints) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -42890,7 +42258,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public ListNetworkEndpoints setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -42900,137 +42268,373 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the PublicDelegatedPrefix resource to delete. */ + /** + * The name of the network endpoint group from which you want to generate a list of included + * network endpoints. It should comply with RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String publicDelegatedPrefix; + private java.lang.String networkEndpointGroup; - /** Name of the PublicDelegatedPrefix resource to delete. + /** The name of the network endpoint group from which you want to generate a list of included network + endpoints. It should comply with RFC1035. */ - public java.lang.String getPublicDelegatedPrefix() { - return publicDelegatedPrefix; + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } - /** Name of the PublicDelegatedPrefix resource to delete. */ - public Delete setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.publicDelegatedPrefix = publicDelegatedPrefix; + /** + * The name of the network endpoint group from which you want to generate a list of included + * network endpoints. It should comply with RFC1035. + */ + public ListNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String filter; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public ListNetworkEndpoints 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 ListNetworkEndpoints 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 ListNetworkEndpoints 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 ListNetworkEndpoints 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 ListNetworkEndpoints setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public ListNetworkEndpoints set(String parameterName, Object value) { + return (ListNetworkEndpoints) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the GlobalOperations collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.GlobalOperations.List request = compute.globalOperations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public GlobalOperations globalOperations() { + return new GlobalOperations(); + } + + /** + * The "globalOperations" collection of methods. + */ + public class GlobalOperations { + /** - * Returns the specified global PublicDelegatedPrefix resource. + * Retrieves an aggregated list of all operations. * - * Create a request for the method "globalPublicDelegatedPrefixes.get". + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "globalOperations.aggregatedList". * * 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 AggregatedList#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String publicDelegatedPrefix) throws java.io.IOException { - Get result = new Get(project, publicDelegatedPrefix); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class Get extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}"; + private static final String REST_PATH = "projects/{project}/aggregated/operations"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern PUBLIC_DELEGATED_PREFIX_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Returns the specified global PublicDelegatedPrefix resource. + * Retrieves an aggregated list of all operations. * - * Create a request for the method "globalPublicDelegatedPrefixes.get". + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "globalOperations.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * parameters, call the {@link 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 publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to return. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String publicDelegatedPrefix) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PublicDelegatedPrefix.class); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OperationAggregatedList.class); this.project = com.google.api.client.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.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override @@ -43044,63 +42648,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -43114,357 +42718,7 @@ public java.lang.String getProject() { } /** 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 PublicDelegatedPrefix resource to return. */ - @com.google.api.client.util.Key - private java.lang.String publicDelegatedPrefix; - - /** Name of the PublicDelegatedPrefix resource to return. - */ - public java.lang.String getPublicDelegatedPrefix() { - return publicDelegatedPrefix; - } - - /** Name of the PublicDelegatedPrefix resource to return. */ - public Get setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.publicDelegatedPrefix = publicDelegatedPrefix; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a global PublicDelegatedPrefix in the specified project using the parameters that are - * included in the request. - * - * Create a request for the method "globalPublicDelegatedPrefixes.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.PublicDelegatedPrefix} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.PublicDelegatedPrefix content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/publicDelegatedPrefixes"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - /** - * Creates a global PublicDelegatedPrefix in the specified project using the parameters that are - * included in the request. - * - * Create a request for the method "globalPublicDelegatedPrefixes.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.PublicDelegatedPrefix content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 global PublicDelegatedPrefixes for a project. - * - * Create a request for the method "globalPublicDelegatedPrefixes.list". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); - initialize(result); - return result; - } - - public class List extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/publicDelegatedPrefixes"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - /** - * Lists the global PublicDelegatedPrefixes for a project. - * - * Create a request for the method "globalPublicDelegatedPrefixes.list". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PublicDelegatedPrefixList.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - } - - @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) { + 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 " + @@ -43605,11 +42859,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public AggregatedList setFilter(java.lang.String filter) { this.filter = filter; return this; } + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + return this; + } + /** * The maximum number of results per page that should be returned. If the number of available * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be @@ -43634,7 +42922,7 @@ public java.lang.Long getMaxResults() { * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public List setMaxResults(java.lang.Long maxResults) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -43678,7 +42966,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -43701,7 +42989,7 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public List setPageToken(java.lang.String pageToken) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -43733,138 +43021,157 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Patches the specified global PublicDelegatedPrefix resource with the data included in the - * request. This method supportsPATCH semantics and usesJSON merge patch format and processing - * rules. + * Deletes the specified Operations resource. * - * Create a request for the method "globalPublicDelegatedPrefixes.patch". + * Create a request for the method "globalOperations.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to patch. - * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} + * @param operation Name of the Operations resource to delete, or its unique numeric + identifier. * @return the request */ - public Patch patch(java.lang.String project, java.lang.String publicDelegatedPrefix, com.google.api.services.compute.model.PublicDelegatedPrefix content) throws java.io.IOException { - Patch result = new Patch(project, publicDelegatedPrefix, content); + public Delete delete(java.lang.String project, java.lang.String operation) throws java.io.IOException { + Delete result = new Delete(project, operation); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}"; + private static final String REST_PATH = "projects/{project}/global/operations/{operation}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern PUBLIC_DELEGATED_PREFIX_PATTERN = + private final java.util.regex.Pattern OPERATION_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Patches the specified global PublicDelegatedPrefix resource with the data included in the - * request. This method supportsPATCH semantics and usesJSON merge patch format and processing - * rules. + * Deletes the specified Operations resource. * - * Create a request for the method "globalPublicDelegatedPrefixes.patch". + * Create a request for the method "globalOperations.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to patch. - * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} + * @param operation Name of the Operations resource to delete, or its unique numeric + identifier. * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String publicDelegatedPrefix, com.google.api.services.compute.model.PublicDelegatedPrefix content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Delete(java.lang.String project, java.lang.String operation) { + super(Compute.this, "DELETE", REST_PATH, null, Void.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); + this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -43878,7 +43185,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -43888,149 +43195,256 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the PublicDelegatedPrefix resource to patch. */ + /** + * Name of the Operations resource to delete, or its unique numeric identifier. + */ @com.google.api.client.util.Key - private java.lang.String publicDelegatedPrefix; + private java.lang.String operation; - /** Name of the PublicDelegatedPrefix resource to patch. + /** Name of the Operations resource to delete, or its unique numeric identifier. */ - public java.lang.String getPublicDelegatedPrefix() { - return publicDelegatedPrefix; + public java.lang.String getOperation() { + return operation; } - /** Name of the PublicDelegatedPrefix resource to patch. */ - public Patch setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + /** + * Name of the Operations resource to delete, or its unique numeric identifier. + */ + public Delete setOperation(java.lang.String operation) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), - "Parameter publicDelegatedPrefix must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.publicDelegatedPrefix = publicDelegatedPrefix; + this.operation = operation; 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. + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Retrieves the specified Operations resource. + * + * Create a request for the method "globalOperations.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 operation Name of the Operations resource to return, or its unique numeric + identifier. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String operation) throws java.io.IOException { + Get result = new Get(project, operation); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/operations/{operation}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern OPERATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Retrieves the specified Operations resource. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Create a request for the method "globalOperations.get". * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link 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 operation Name of the Operations resource to return, or its unique numeric + identifier. + * @since 1.13 */ + protected Get(java.lang.String project, java.lang.String operation) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public 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 requestId; + private 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. + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** 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 request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** + * Name of the Operations resource to return, or its unique numeric identifier. */ - public java.lang.String getRequestId() { - return requestId; + @com.google.api.client.util.Key + private java.lang.String operation; + + /** Name of the Operations resource to return, or its unique numeric identifier. + */ + public java.lang.String getOperation() { + return operation; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Name of the Operations resource to return, or its unique numeric identifier. */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public Get setOperation(java.lang.String operation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.operation = operation; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the GlobalVmExtensionPolicies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.GlobalVmExtensionPolicies.List request = compute.globalVmExtensionPolicies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public GlobalVmExtensionPolicies globalVmExtensionPolicies() { - return new GlobalVmExtensionPolicies(); - } - - /** - * The "globalVmExtensionPolicies" collection of methods. - */ - public class GlobalVmExtensionPolicies { - /** - * Retrieves the list of all VM Extension Policy resources available to the specified project. - * - * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to `true`. + * Retrieves a list of Operation resources contained within the specified project. * - * Create a request for the method "globalVmExtensionPolicies.aggregatedList". + * Create a request for the method "globalOperations.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 Name of the project scoping this request. + * @param project Project ID for this request. * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/vmExtensionPolicies"; + private static final String REST_PATH = "projects/{project}/global/operations"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves the list of all VM Extension Policy resources available to the specified project. - * - * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to - * `true`. + * Retrieves a list of Operation resources contained within the specified project. * - * Create a request for the method "globalVmExtensionPolicies.aggregatedList". + * Create a request for the method "globalOperations.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

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

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

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

* - * @param project Name of the project scoping this request. + * @param project Project ID for this request. * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VmExtensionPolicyAggregatedListResponse.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OperationList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -44050,77 +43464,77 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Name of the project scoping this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Name of the project scoping this request. */ - public AggregatedList setProject(java.lang.String project) { + /** Project ID for this request. */ + public List setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -44261,45 +43675,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - return this; - } - /** * The maximum number of results per page that should be returned. If the number of available * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be @@ -44324,7 +43704,7 @@ public java.lang.Long getMaxResults() { * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public AggregatedList setMaxResults(java.lang.Long maxResults) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -44368,7 +43748,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -44391,7 +43771,7 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public AggregatedList setPageToken(java.lang.String pageToken) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -44423,157 +43803,152 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Purge scoped resources (zonal policies) from a global VM extension policy, and then delete the - * global VM extension policy. Purge of the scoped resources is a pre-condition of the global VM - * extension policy deletion. The deletion of the global VM extension policy happens after the purge - * rollout is done, so it's not a part of the LRO. It's an automatic process that triggers in the - * backend. + * Waits for the specified Operation resource to return as `DONE` or for the request to approach the + * 2 minute deadline, and retrieves the specified Operation resource. This method differs from the + * `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns + * the current state of the operation, which might be `DONE` or still in progress. * - * Create a request for the method "globalVmExtensionPolicies.delete". + * This method is called on a best-effort basis. Specifically: - In uncommon cases, when + * the server is overloaded, the request might return before the default deadline is reached, or + * might return after zero seconds. - If the default deadline is reached, there is no + * guarantee that the operation is actually done when the method returns. Be prepared to retry + * if the operation is not `DONE`. + * + * Create a request for the method "globalOperations.wait". * * 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 Wait#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param globalVmExtensionPolicy Name of the global VM extension policy to purge scoped resources for. - * @param content the {@link com.google.api.services.compute.model.GlobalVmExtensionPolicyRolloutOperationRolloutInput} + * @param operation Name of the Operations resource to return, or its unique numeric + identifier. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String globalVmExtensionPolicy, com.google.api.services.compute.model.GlobalVmExtensionPolicyRolloutOperationRolloutInput content) throws java.io.IOException { - Delete result = new Delete(project, globalVmExtensionPolicy, content); + public Wait wait(java.lang.String project, java.lang.String operation) throws java.io.IOException { + Wait result = new Wait(project, operation); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Wait extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}/delete"; + private static final String REST_PATH = "projects/{project}/global/operations/{operation}/wait"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern OPERATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Purge scoped resources (zonal policies) from a global VM extension policy, and then delete the - * global VM extension policy. Purge of the scoped resources is a pre-condition of the global VM - * extension policy deletion. The deletion of the global VM extension policy happens after the - * purge rollout is done, so it's not a part of the LRO. It's an automatic process that triggers - * in the backend. + * Waits for the specified Operation resource to return as `DONE` or for the request to approach + * the 2 minute deadline, and retrieves the specified Operation resource. This method differs from + * the `GET` method in that it waits for no more than the default deadline (2 minutes) and then + * returns the current state of the operation, which might be `DONE` or still in progress. * - * Create a request for the method "globalVmExtensionPolicies.delete". + * This method is called on a best-effort basis. Specifically: - In uncommon cases, + * when the server is overloaded, the request might return before the default deadline is + * reached, or might return after zero seconds. - If the default deadline is reached, there + * is no guarantee that the operation is actually done when the method returns. Be prepared to + * retry if the operation is not `DONE`. + * + * Create a request for the method "globalOperations.wait". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param globalVmExtensionPolicy Name of the global VM extension policy to purge scoped resources for. - * @param content the {@link com.google.api.services.compute.model.GlobalVmExtensionPolicyRolloutOperationRolloutInput} + * @param operation Name of the Operations resource to return, or its unique numeric + identifier. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String globalVmExtensionPolicy, com.google.api.services.compute.model.GlobalVmExtensionPolicyRolloutOperationRolloutInput content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Wait(java.lang.String project, java.lang.String operation) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.globalVmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(globalVmExtensionPolicy, "Required parameter globalVmExtensionPolicy must be specified."); + this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Wait setUserIp(java.lang.String userIp) { + return (Wait) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -44587,7 +43962,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public Wait setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -44597,300 +43972,263 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the global VM extension policy to purge scoped resources for. */ - @com.google.api.client.util.Key - private java.lang.String globalVmExtensionPolicy; - - /** Name of the global VM extension policy to purge scoped resources for. - */ - public java.lang.String getGlobalVmExtensionPolicy() { - return globalVmExtensionPolicy; - } - - /** Name of the global VM extension policy to purge scoped resources for. */ - public Delete setGlobalVmExtensionPolicy(java.lang.String globalVmExtensionPolicy) { - this.globalVmExtensionPolicy = globalVmExtensionPolicy; - 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 Operations resource to return, or its unique numeric identifier. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String operation; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name of the Operations resource to return, or its unique numeric identifier. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOperation() { + return operation; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Name of the Operations resource to return, or its unique numeric identifier. */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public Wait setOperation(java.lang.String operation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.operation = operation; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the GlobalOrganizationOperations collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.GlobalOrganizationOperations.List request = compute.globalOrganizationOperations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public GlobalOrganizationOperations globalOrganizationOperations() { + return new GlobalOrganizationOperations(); + } + + /** + * The "globalOrganizationOperations" collection of methods. + */ + public class GlobalOrganizationOperations { + /** - * Gets details of a global VM extension policy. + * Deletes the specified Operations resource. * - * Create a request for the method "globalVmExtensionPolicies.get". + * Create a request for the method "globalOrganizationOperations.delete". * * 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 Delete#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param globalVmExtensionPolicy Name of the GlobalVmExtensionPolicy resource to return. + * @param operation Name of the Operations resource to delete, or its unique numeric + identifier. * @return the request */ - public Get get(java.lang.String project, java.lang.String globalVmExtensionPolicy) throws java.io.IOException { - Get result = new Get(project, globalVmExtensionPolicy); + public Delete delete(java.lang.String operation) throws java.io.IOException { + Delete result = new Delete(operation); initialize(result); return result; } - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}"; + public class Delete extends ComputeRequest { - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private static final String REST_PATH = "locations/global/operations/{operation}"; - private final java.util.regex.Pattern GLOBAL_VM_EXTENSION_POLICY_PATTERN = + private final java.util.regex.Pattern OPERATION_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Gets details of a global VM extension policy. + * Deletes the specified Operations resource. * - * Create a request for the method "globalVmExtensionPolicies.get". + * Create a request for the method "globalOrganizationOperations.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

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

* - * @param project Project ID for this request. - * @param globalVmExtensionPolicy Name of the GlobalVmExtensionPolicy resource to return. + * @param operation Name of the Operations resource to delete, or its unique numeric + identifier. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String globalVmExtensionPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalVmExtensionPolicy.class); - this.project = com.google.api.client.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.globalVmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(globalVmExtensionPolicy, "Required parameter globalVmExtensionPolicy must be specified."); + protected Delete(java.lang.String operation) { + super(Compute.this, "DELETE", REST_PATH, null, Void.class); + this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(GLOBAL_VM_EXTENSION_POLICY_PATTERN.matcher(globalVmExtensionPolicy).matches(), - "Parameter globalVmExtensionPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** + * Name of the Operations resource to delete, or its unique numeric identifier. + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String operation; - /** Project ID for this request. + /** Name of the Operations resource to delete, or its unique numeric identifier. */ - public java.lang.String getProject() { - return project; + public java.lang.String getOperation() { + return operation; } - /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + /** + * Name of the Operations resource to delete, or its unique numeric identifier. + */ + public Delete setOperation(java.lang.String operation) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.project = project; + this.operation = operation; return this; } - /** Name of the GlobalVmExtensionPolicy resource to return. */ + /** Parent ID for this request. */ @com.google.api.client.util.Key - private java.lang.String globalVmExtensionPolicy; + private java.lang.String parentId; - /** Name of the GlobalVmExtensionPolicy resource to return. + /** Parent ID for this request. */ - public java.lang.String getGlobalVmExtensionPolicy() { - return globalVmExtensionPolicy; + public java.lang.String getParentId() { + return parentId; } - /** Name of the GlobalVmExtensionPolicy resource to return. */ - public Get setGlobalVmExtensionPolicy(java.lang.String globalVmExtensionPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(GLOBAL_VM_EXTENSION_POLICY_PATTERN.matcher(globalVmExtensionPolicy).matches(), - "Parameter globalVmExtensionPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.globalVmExtensionPolicy = globalVmExtensionPolicy; + /** Parent ID for this request. */ + public Delete setParentId(java.lang.String parentId) { + this.parentId = parentId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Retrieves details of a specific VM extension. + * Retrieves the specified Operations resource. Gets a list of operations by making a `list()` + * request. * - * Create a request for the method "globalVmExtensionPolicies.getVmExtension". + * Create a request for the method "globalOrganizationOperations.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetVmExtension#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 extensionName + * @param operation Name of the Operations resource to return. Parent is derived from this + field. * @return the request */ - public GetVmExtension getVmExtension(java.lang.String project, java.lang.String extensionName) throws java.io.IOException { - GetVmExtension result = new GetVmExtension(project, extensionName); + public Get get(java.lang.String operation) throws java.io.IOException { + Get result = new Get(operation); initialize(result); return result; } - public class GetVmExtension extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/vmExtensions/{extensionName}"; + private static final String REST_PATH = "locations/global/operations/{operation}"; - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern OPERATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Retrieves details of a specific VM extension. + * Retrieves the specified Operations resource. Gets a list of operations by making a `list()` + * request. * - * Create a request for the method "globalVmExtensionPolicies.getVmExtension". + * Create a request for the method "globalOrganizationOperations.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetVmExtension#execute()} method to invoke the remote operation. - *

{@link GetVmExtension#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 extensionName + * @param operation Name of the Operations resource to return. Parent is derived from this + field. * @since 1.13 */ - protected GetVmExtension(java.lang.String project, java.lang.String extensionName) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalVmExtension.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + protected Get(java.lang.String operation) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.extensionName = com.google.api.client.util.Preconditions.checkNotNull(extensionName, "Required parameter extensionName must be specified."); } @Override @@ -44904,426 +44242,215 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetVmExtension set$Xgafv(java.lang.String $Xgafv) { - return (GetVmExtension) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public GetVmExtension setAccessToken(java.lang.String accessToken) { - return (GetVmExtension) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public GetVmExtension setAlt(java.lang.String alt) { - return (GetVmExtension) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public GetVmExtension setCallback(java.lang.String callback) { - return (GetVmExtension) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public GetVmExtension setFields(java.lang.String fields) { - return (GetVmExtension) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public GetVmExtension setKey(java.lang.String key) { - return (GetVmExtension) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public GetVmExtension setOauthToken(java.lang.String oauthToken) { - return (GetVmExtension) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public GetVmExtension setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetVmExtension) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public GetVmExtension setQuotaUser(java.lang.String quotaUser) { - return (GetVmExtension) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public GetVmExtension setUploadType(java.lang.String uploadType) { - return (GetVmExtension) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public GetVmExtension setUploadProtocol(java.lang.String uploadProtocol) { - return (GetVmExtension) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public GetVmExtension setUserIp(java.lang.String userIp) { - return (GetVmExtension) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** + * Name of the Operations resource to return. Parent is derived from this field. + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String operation; - /** Project ID for this request. + /** Name of the Operations resource to return. Parent is derived from this field. */ - public java.lang.String getProject() { - return project; + public java.lang.String getOperation() { + return operation; } - /** Project ID for this request. */ - public GetVmExtension setProject(java.lang.String project) { + /** + * Name of the Operations resource to return. Parent is derived from this field. + */ + public Get setOperation(java.lang.String operation) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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(OPERATION_PATTERN.matcher(operation).matches(), + "Parameter operation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.project = project; + this.operation = operation; return this; } + /** Parent ID for this request. Not used. Parent is derived from resource_id. */ @com.google.api.client.util.Key - private java.lang.String extensionName; - - /** + private java.lang.String parentId; + /** Parent ID for this request. Not used. Parent is derived from resource_id. */ - public java.lang.String getExtensionName() { - return extensionName; + public java.lang.String getParentId() { + return parentId; } - public GetVmExtension setExtensionName(java.lang.String extensionName) { - this.extensionName = extensionName; + /** Parent ID for this request. Not used. Parent is derived from resource_id. */ + public Get setParentId(java.lang.String parentId) { + this.parentId = parentId; return this; } @Override - public GetVmExtension set(String parameterName, Object value) { - return (GetVmExtension) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Creates a new project level GlobalVmExtensionPolicy. + * Retrieves a list of Operation resources contained within the specified organization. * - * Create a request for the method "globalVmExtensionPolicies.insert". + * Create a request for the method "globalOrganizationOperations.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalVmExtensionPolicy} * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.GlobalVmExtensionPolicy content) throws java.io.IOException { - Insert result = new Insert(project, content); + public List list() throws java.io.IOException { + List result = new List(); initialize(result); return result; } - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/vmExtensionPolicies"; + public class List extends ComputeRequest { - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private static final String REST_PATH = "locations/global/operations"; /** - * Creates a new project level GlobalVmExtensionPolicy. + * Retrieves a list of Operation resources contained within the specified organization. * - * Create a request for the method "globalVmExtensionPolicies.insert". + * Create a request for the method "globalOrganizationOperations.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

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

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

* - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalVmExtensionPolicy} * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.GlobalVmExtensionPolicy 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])?))"); - } + protected List() { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OperationList.class); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** 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 global VM extension policies. - * - * Create a request for the method "globalVmExtensionPolicies.list". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); - initialize(result); - return result; - } - - public class List extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/vmExtensionPolicies"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - /** - * Lists global VM extension policies. - * - * Create a request for the method "globalVmExtensionPolicies.list". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalVmExtensionPolicyList.class); - this.project = com.google.api.client.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; + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** @@ -45558,6 +44685,22 @@ public List setPageToken(java.lang.String pageToken) { return this; } + /** Parent ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String parentId; + + /** Parent ID for this request. + */ + public java.lang.String getParentId() { + return parentId; + } + + /** Parent ID for this request. */ + public List setParentId(java.lang.String parentId) { + this.parentId = parentId; + return this; + } + /** * Opt-in for partial success behavior which provides partial results in case of failure. The * default value is false. @@ -45595,136 +44738,159 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the GlobalPublicDelegatedPrefixes collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.GlobalPublicDelegatedPrefixes.List request = compute.globalPublicDelegatedPrefixes().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public GlobalPublicDelegatedPrefixes globalPublicDelegatedPrefixes() { + return new GlobalPublicDelegatedPrefixes(); + } + + /** + * The "globalPublicDelegatedPrefixes" collection of methods. + */ + public class GlobalPublicDelegatedPrefixes { + /** - * Lists all VM extensions within a specific zone for a project. This is a read-only API. + * Deletes the specified global PublicDelegatedPrefix. * - * Create a request for the method "globalVmExtensionPolicies.listVmExtensions". + * Create a request for the method "globalPublicDelegatedPrefixes.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListVmExtensions#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param project Required. Project ID for this request. + * @param project Project ID for this request. + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to delete. * @return the request */ - public ListVmExtensions listVmExtensions(java.lang.String project) throws java.io.IOException { - ListVmExtensions result = new ListVmExtensions(project); + public Delete delete(java.lang.String project, java.lang.String publicDelegatedPrefix) throws java.io.IOException { + Delete result = new Delete(project, publicDelegatedPrefix); initialize(result); return result; } - public class ListVmExtensions extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/vmExtensions"; + private static final String REST_PATH = "projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern PUBLIC_DELEGATED_PREFIX_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Lists all VM extensions within a specific zone for a project. This is a read-only API. + * Deletes the specified global PublicDelegatedPrefix. * - * Create a request for the method "globalVmExtensionPolicies.listVmExtensions". + * Create a request for the method "globalPublicDelegatedPrefixes.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListVmExtensions#execute()} method to invoke the remote operation. - *

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

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

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

* - * @param project Required. Project ID for this request. + * @param project Project ID for this request. + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to delete. * @since 1.13 */ - protected ListVmExtensions(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalListVmExtensionsResponse.class); + protected Delete(java.lang.String project, java.lang.String publicDelegatedPrefix) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @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 ListVmExtensions set$Xgafv(java.lang.String $Xgafv) { - return (ListVmExtensions) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public ListVmExtensions setAccessToken(java.lang.String accessToken) { - return (ListVmExtensions) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public ListVmExtensions setAlt(java.lang.String alt) { - return (ListVmExtensions) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public ListVmExtensions setCallback(java.lang.String callback) { - return (ListVmExtensions) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public ListVmExtensions setFields(java.lang.String fields) { - return (ListVmExtensions) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public ListVmExtensions setKey(java.lang.String key) { - return (ListVmExtensions) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public ListVmExtensions setOauthToken(java.lang.String oauthToken) { - return (ListVmExtensions) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public ListVmExtensions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListVmExtensions) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public ListVmExtensions setQuotaUser(java.lang.String quotaUser) { - return (ListVmExtensions) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public ListVmExtensions setUploadType(java.lang.String uploadType) { - return (ListVmExtensions) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public ListVmExtensions setUploadProtocol(java.lang.String uploadProtocol) { - return (ListVmExtensions) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public ListVmExtensions setUserIp(java.lang.String userIp) { - return (ListVmExtensions) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } - /** Required. Project ID for this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Required. Project ID for this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Required. Project ID for this request. */ - public ListVmExtensions setProject(java.lang.String 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 " + @@ -45734,385 +44900,365 @@ public ListVmExtensions setProject(java.lang.String project) { return this; } + /** Name of the PublicDelegatedPrefix resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String publicDelegatedPrefix; + + /** Name of the PublicDelegatedPrefix resource to delete. + */ + public java.lang.String getPublicDelegatedPrefix() { + return publicDelegatedPrefix; + } + + /** Name of the PublicDelegatedPrefix resource to delete. */ + public Delete setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.publicDelegatedPrefix = publicDelegatedPrefix; + return this; + } + /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * You cannot combine constraints on multiple fields using regular expressions. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + private java.lang.String requestId; - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - 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:* ``` + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original 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 filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. + The 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; + } - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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; + } - 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: + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns the specified global PublicDelegatedPrefix resource. + * + * Create a request for the method "globalPublicDelegatedPrefixes.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 publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String publicDelegatedPrefix) throws java.io.IOException { + Get result = new Get(project, publicDelegatedPrefix); + initialize(result); + return result; + } - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + public class Get extends ComputeRequest { - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + private static final String REST_PATH = "projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}"; - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } + private final java.util.regex.Pattern PUBLIC_DELEGATED_PREFIX_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * 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. + * Returns the specified global PublicDelegatedPrefix resource. * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * 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. + * Create a request for the method "globalPublicDelegatedPrefixes.get". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* - * You cannot combine constraints on multiple fields using regular expressions. + * @param project Project ID for this request. + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to return. + * @since 1.13 */ - public ListVmExtensions setFilter(java.lang.String filter) { - this.filter = filter; - return this; + protected Get(java.lang.String project, java.lang.String publicDelegatedPrefix) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PublicDelegatedPrefix.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public ListVmExtensions setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public ListVmExtensions setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); + } + + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String project; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Project ID for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getProject() { + return project; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public ListVmExtensions setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** Project ID for this request. */ + public Get setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; return this; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Name of the PublicDelegatedPrefix resource to return. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String publicDelegatedPrefix; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Name of the PublicDelegatedPrefix resource to return. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getPublicDelegatedPrefix() { + return publicDelegatedPrefix; } - /** - * 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 ListVmExtensions setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** Name of the PublicDelegatedPrefix resource to return. */ + public Get setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.publicDelegatedPrefix = publicDelegatedPrefix; return this; } @Override - public ListVmExtensions set(String parameterName, Object value) { - return (ListVmExtensions) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Updates a global VM extension policy. + * Creates a global PublicDelegatedPrefix in the specified project using the parameters that are + * included in the request. * - * Create a request for the method "globalVmExtensionPolicies.update". + * Create a request for the method "globalPublicDelegatedPrefixes.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param globalVmExtensionPolicy Name of the global VM extension policy to update. - * @param content the {@link com.google.api.services.compute.model.GlobalVmExtensionPolicy} + * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} * @return the request */ - public Update update(java.lang.String project, java.lang.String globalVmExtensionPolicy, com.google.api.services.compute.model.GlobalVmExtensionPolicy content) throws java.io.IOException { - Update result = new Update(project, globalVmExtensionPolicy, content); + public Insert insert(java.lang.String project, com.google.api.services.compute.model.PublicDelegatedPrefix content) throws java.io.IOException { + Insert result = new Insert(project, content); initialize(result); return result; } - public class Update extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}"; + private static final String REST_PATH = "projects/{project}/global/publicDelegatedPrefixes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Updates a global VM extension policy. + * Creates a global PublicDelegatedPrefix in the specified project using the parameters that are + * included in the request. * - * Create a request for the method "globalVmExtensionPolicies.update". + * Create a request for the method "globalPublicDelegatedPrefixes.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param globalVmExtensionPolicy Name of the global VM extension policy to update. - * @param content the {@link com.google.api.services.compute.model.GlobalVmExtensionPolicy} + * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} * @since 1.13 */ - protected Update(java.lang.String project, java.lang.String globalVmExtensionPolicy, com.google.api.services.compute.model.GlobalVmExtensionPolicy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Insert(java.lang.String project, com.google.api.services.compute.model.PublicDelegatedPrefix content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.globalVmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(globalVmExtensionPolicy, "Required parameter globalVmExtensionPolicy must be specified."); } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -46126,7 +45272,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -46136,22 +45282,6 @@ public Update setProject(java.lang.String project) { return this; } - /** Name of the global VM extension policy to update. */ - @com.google.api.client.util.Key - private java.lang.String globalVmExtensionPolicy; - - /** Name of the global VM extension policy to update. - */ - public java.lang.String getGlobalVmExtensionPolicy() { - return globalVmExtensionPolicy; - } - - /** Name of the global VM extension policy to update. */ - public Update setGlobalVmExtensionPolicy(java.lang.String globalVmExtensionPolicy) { - this.globalVmExtensionPolicy = globalVmExtensionPolicy; - 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 @@ -46196,81 +45326,55 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Update setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the HaControllers collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.HaControllers.List request = compute.haControllers().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public HaControllers haControllers() { - return new HaControllers(); - } - - /** - * The "haControllers" collection of methods. - */ - public class HaControllers { - /** - * Retrieves an aggregated list of all of the HaControllers in the specified project across all - * regions. + * Lists the global PublicDelegatedPrefixes for a project. * - * Create a request for the method "haControllers.aggregatedList". + * Create a request for the method "globalPublicDelegatedPrefixes.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. * @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) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/haControllers"; + private static final String REST_PATH = "projects/{project}/global/publicDelegatedPrefixes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves an aggregated list of all of the HaControllers in the specified project across all - * regions. + * Lists the global PublicDelegatedPrefixes for a project. * - * Create a request for the method "haControllers.aggregatedList". + * Create a request for the method "globalPublicDelegatedPrefixes.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

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

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

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

* * @param project Project ID for this request. * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HaControllersAggregatedList.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PublicDelegatedPrefixList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -46290,63 +45394,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -46360,7 +45464,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + public List setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -46501,45 +45605,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - return this; - } - /** * The maximum number of results per page that should be returned. If the number of available * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be @@ -46564,7 +45634,7 @@ public java.lang.Long getMaxResults() { * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public AggregatedList setMaxResults(java.lang.Long maxResults) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -46608,7 +45678,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -46631,7 +45701,7 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public AggregatedList setPageToken(java.lang.String pageToken) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -46663,158 +45733,138 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Deletes an HaController in the specified project. + * Patches the specified global PublicDelegatedPrefix resource with the data included in the + * request. This method supportsPATCH semantics and usesJSON merge patch format and processing + * rules. * - * Create a request for the method "haControllers.delete". + * Create a request for the method "globalPublicDelegatedPrefixes.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 haController Name of the HaController resource to delete. + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to patch. + * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String haController) throws java.io.IOException { - Delete result = new Delete(project, region, haController); + public Patch patch(java.lang.String project, java.lang.String publicDelegatedPrefix, com.google.api.services.compute.model.PublicDelegatedPrefix content) throws java.io.IOException { + Patch result = new Patch(project, publicDelegatedPrefix, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/haControllers/{haController}"; + private static final String REST_PATH = "projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private final java.util.regex.Pattern PUBLIC_DELEGATED_PREFIX_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes an HaController in the specified project. + * Patches the specified global PublicDelegatedPrefix resource with the data included in the + * request. This method supportsPATCH semantics and usesJSON merge patch format and processing + * rules. * - * Create a request for the method "haControllers.delete". + * Create a request for the method "globalPublicDelegatedPrefixes.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param haController Name of the HaController resource to delete. + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to patch. + * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String haController) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Patch(java.lang.String project, java.lang.String publicDelegatedPrefix, com.google.api.services.compute.model.PublicDelegatedPrefix content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.publicDelegatedPrefix = com.google.api.client.util.Preconditions.checkNotNull(publicDelegatedPrefix, "Required parameter publicDelegatedPrefix must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.haController = com.google.api.client.util.Preconditions.checkNotNull(haController, "Required parameter haController must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -46828,7 +45878,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public Patch setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -46838,66 +45888,24 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the PublicDelegatedPrefix resource to patch. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String publicDelegatedPrefix; - /** Name of the region for this request. + /** Name of the PublicDelegatedPrefix resource to patch. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getPublicDelegatedPrefix() { + return publicDelegatedPrefix; } - /** Name of the region for this request. */ - public Delete setRegion(java.lang.String region) { + /** Name of the PublicDelegatedPrefix resource to patch. */ + public Patch setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.region = region; - return this; - } - - /** Name of the HaController resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String haController; - - /** Name of the HaController resource to delete. - */ - public java.lang.String getHaController() { - return haController; - } - - /** Name of the HaController resource to delete. */ - public Delete setHaController(java.lang.String haController) { - this.haController = haController; - return this; - } - - /** - * Force-deletes HA Controller when the Delete is stuck. Instance that is not primary at the - * moment will also be deleted. Can only be used against the HA Controller resource that is - * already being deleted. - */ - @com.google.api.client.util.Key - private java.lang.Boolean force; - - /** Force-deletes HA Controller when the Delete is stuck. Instance that is not primary at the moment - will also be deleted. Can only be used against the HA Controller resource that is already being - deleted. - */ - public java.lang.Boolean getForce() { - return force; - } - - /** - * Force-deletes HA Controller when the Delete is stuck. Instance that is not primary at the - * moment will also be deleted. Can only be used against the HA Controller resource that is - * already being deleted. - */ - public Delete setForce(java.lang.Boolean force) { - this.force = force; + this.publicDelegatedPrefix = publicDelegatedPrefix; return this; } @@ -46905,12 +45913,28 @@ public Delete setForce(java.lang.Boolean force) { * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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; @@ -46920,161 +45944,183 @@ public java.lang.String getRequestId() { * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the GlobalVmExtensionPolicies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.GlobalVmExtensionPolicies.List request = compute.globalVmExtensionPolicies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public GlobalVmExtensionPolicies globalVmExtensionPolicies() { + return new GlobalVmExtensionPolicies(); + } + + /** + * The "globalVmExtensionPolicies" collection of methods. + */ + public class GlobalVmExtensionPolicies { + /** - * Fails over a VM targeted by the specified HaController to the selected zone. + * Retrieves the list of all VM Extension Policy resources available to the specified project. * - * Create a request for the method "haControllers.failover". + * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to `true`. + * + * Create a request for the method "globalVmExtensionPolicies.aggregatedList". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Failover#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param haController ID of the HaController resource to update. - * @param content the {@link com.google.api.services.compute.model.HaControllersFailoverRequest} + * @param project Name of the project scoping this request. * @return the request */ - public Failover failover(java.lang.String project, java.lang.String region, java.lang.String haController, com.google.api.services.compute.model.HaControllersFailoverRequest content) throws java.io.IOException { - Failover result = new Failover(project, region, haController, content); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class Failover extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/haControllers/{haController}/failover"; + private static final String REST_PATH = "projects/{project}/aggregated/vmExtensionPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern HA_CONTROLLER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Fails over a VM targeted by the specified HaController to the selected zone. + * Retrieves the list of all VM Extension Policy resources available to the specified project. * - * Create a request for the method "haControllers.failover". + * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "globalVmExtensionPolicies.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Failover#execute()} method to invoke the remote operation.

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

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

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

* - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param haController ID of the HaController resource to update. - * @param content the {@link com.google.api.services.compute.model.HaControllersFailoverRequest} + * @param project Name of the project scoping this request. * @since 1.13 */ - protected Failover(java.lang.String project, java.lang.String region, java.lang.String haController, com.google.api.services.compute.model.HaControllersFailoverRequest 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.VmExtensionPolicyAggregatedListResponse.class); this.project = com.google.api.client.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.haController = com.google.api.client.util.Preconditions.checkNotNull(haController, "Required parameter haController must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), - "Parameter haController must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public Failover set$Xgafv(java.lang.String $Xgafv) { - return (Failover) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Failover setAccessToken(java.lang.String accessToken) { - return (Failover) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Failover setAlt(java.lang.String alt) { - return (Failover) super.setAlt(alt); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public Failover setCallback(java.lang.String callback) { - return (Failover) super.setCallback(callback); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public Failover setFields(java.lang.String fields) { - return (Failover) super.setFields(fields); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public Failover setKey(java.lang.String key) { - return (Failover) super.setKey(key); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public Failover setOauthToken(java.lang.String oauthToken) { - return (Failover) super.setOauthToken(oauthToken); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public Failover setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Failover) super.setPrettyPrint(prettyPrint); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public Failover setQuotaUser(java.lang.String quotaUser) { - return (Failover) super.setQuotaUser(quotaUser); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public Failover setUploadType(java.lang.String uploadType) { - return (Failover) super.setUploadType(uploadType); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public Failover setUploadProtocol(java.lang.String uploadProtocol) { - return (Failover) super.setUploadProtocol(uploadProtocol); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public Failover setUserIp(java.lang.String userIp) { - return (Failover) 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 Failover 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 " + @@ -47084,330 +46130,382 @@ public Failover setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String filter; - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - /** Name of the region for this request. */ - public Failover 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; - } + 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 `:`. - /** ID of the HaController resource to update. */ - @com.google.api.client.util.Key - private java.lang.String haController; + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - /** ID of the HaController resource to update. - */ - public java.lang.String getHaController() { - return haController; - } + 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:* ``` - /** ID of the HaController resource to update. */ - public Failover setHaController(java.lang.String haController) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), - "Parameter haController must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.haController = haController; - return this; - } + 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. - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - */ - @com.google.api.client.util.Key - private java.lang.String requestId; + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - */ - public java.lang.String getRequestId() { - return requestId; - } + 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: - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + `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 Failover setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; + public java.lang.String getFilter() { + return filter; } - @Override - public Failover set(String parameterName, Object value) { - return (Failover) super.set(parameterName, value); - } - } - /** - * Returns all the details of a specific HaController. - * - * Create a request for the method "haControllers.get". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param haController Name of the HaController resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String haController) throws java.io.IOException { - Get result = new Get(project, region, haController); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/haControllers/{haController}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern HA_CONTROLLER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Returns all the details of a specific HaController. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "haControllers.get". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link 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.

+ * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param haController Name of the HaController resource to return. - * @since 1.13 + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String haController) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HaController.class); - this.project = com.google.api.client.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.haController = com.google.api.client.util.Preconditions.checkNotNull(haController, "Required parameter haController must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), - "Parameter haController 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + return this; } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public AggregatedList setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; } - @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + /** + * 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; } - /** Project ID for this request. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String pageToken; - /** Project ID for this request. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getProject() { - return project; + public java.lang.String getPageToken() { + return pageToken; } - /** Project ID for this request. */ - public 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; + /** + * 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; } - /** Name of the region for this request. */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.Boolean returnPartialSuccess; - /** Name of the region for this request. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRegion() { - return region; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** Name of the region for this request. */ - public Get setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } - /** Name of the HaController resource to return. */ + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ @com.google.api.client.util.Key - private java.lang.String haController; + private java.lang.Long serviceProjectNumber; - /** Name of the HaController resource to return. + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. */ - public java.lang.String getHaController() { - return haController; + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; } - /** Name of the HaController resource to return. */ - public Get setHaController(java.lang.String haController) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), - "Parameter haController must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.haController = haController; + /** + * 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Creates HaController in the specified project. + * Purge scoped resources (zonal policies) from a global VM extension policy, and then delete the + * global VM extension policy. Purge of the scoped resources is a pre-condition of the global VM + * extension policy deletion. The deletion of the global VM extension policy happens after the purge + * rollout is done, so it's not a part of the LRO. It's an automatic process that triggers in the + * backend. * - * Create a request for the method "haControllers.insert". + * Create a request for the method "globalVmExtensionPolicies.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link 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 content the {@link com.google.api.services.compute.model.HaController} + * @param globalVmExtensionPolicy Name of the global VM extension policy to purge scoped resources for. + * @param content the {@link com.google.api.services.compute.model.GlobalVmExtensionPolicyRolloutOperationRolloutInput} * @return the request */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HaController content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + public Delete delete(java.lang.String project, java.lang.String globalVmExtensionPolicy, com.google.api.services.compute.model.GlobalVmExtensionPolicyRolloutOperationRolloutInput content) throws java.io.IOException { + Delete result = new Delete(project, globalVmExtensionPolicy, content); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/haControllers"; + private static final String REST_PATH = "projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}/delete"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * Creates HaController in the specified project. + * Purge scoped resources (zonal policies) from a global VM extension policy, and then delete the + * global VM extension policy. Purge of the scoped resources is a pre-condition of the global VM + * extension policy deletion. The deletion of the global VM extension policy happens after the + * purge rollout is done, so it's not a part of the LRO. It's an automatic process that triggers + * in the backend. * - * Create a request for the method "haControllers.insert". + * Create a request for the method "globalVmExtensionPolicies.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.HaController} + * @param globalVmExtensionPolicy Name of the global VM extension policy to purge scoped resources for. + * @param content the {@link com.google.api.services.compute.model.GlobalVmExtensionPolicyRolloutOperationRolloutInput} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HaController content) { + protected Delete(java.lang.String project, java.lang.String globalVmExtensionPolicy, com.google.api.services.compute.model.GlobalVmExtensionPolicyRolloutOperationRolloutInput 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()) { @@ -47415,72 +46513,67 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } + this.globalVmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(globalVmExtensionPolicy, "Required parameter globalVmExtensionPolicy must be specified."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -47494,7 +46587,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -47504,24 +46597,19 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the global VM extension policy to purge scoped resources for. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String globalVmExtensionPolicy; - /** Name of the region for this request. + /** Name of the global VM extension policy to purge scoped resources for. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getGlobalVmExtensionPolicy() { + return globalVmExtensionPolicy; } - /** Name of the region for this request. */ - public Insert setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; + /** Name of the global VM extension policy to purge scoped resources for. */ + public Delete setGlobalVmExtensionPolicy(java.lang.String globalVmExtensionPolicy) { + this.globalVmExtensionPolicy = globalVmExtensionPolicy; return this; } @@ -47529,12 +46617,28 @@ public Insert setRegion(java.lang.String region) { * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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; @@ -47544,72 +46648,80 @@ public java.lang.String getRequestId() { * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Lists all HaControllers in the specified project in the specified region. + * Gets details of a global VM extension policy. * - * Create a request for the method "haControllers.list". + * Create a request for the method "globalVmExtensionPolicies.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. + * @param globalVmExtensionPolicy Name of the GlobalVmExtensionPolicy resource to return. * @return the request */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + public Get get(java.lang.String project, java.lang.String globalVmExtensionPolicy) throws java.io.IOException { + Get result = new Get(project, globalVmExtensionPolicy); initialize(result); return result; } - public class List extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/haControllers"; + private static final String REST_PATH = "projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private final java.util.regex.Pattern GLOBAL_VM_EXTENSION_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Lists all HaControllers in the specified project in the specified region. + * Gets details of a global VM extension policy. * - * Create a request for the method "haControllers.list". + * Create a request for the method "globalVmExtensionPolicies.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param region Name of the region for this request. + * @param globalVmExtensionPolicy Name of the GlobalVmExtensionPolicy resource to return. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HaControllersList.class); + protected Get(java.lang.String project, java.lang.String globalVmExtensionPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalVmExtensionPolicy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.globalVmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(globalVmExtensionPolicy, "Required parameter globalVmExtensionPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(GLOBAL_VM_EXTENSION_POLICY_PATTERN.matcher(globalVmExtensionPolicy).matches(), + "Parameter globalVmExtensionPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -47624,63 +46736,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -47694,7 +46806,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List 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 " + @@ -47704,425 +46816,301 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the GlobalVmExtensionPolicy resource to return. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String globalVmExtensionPolicy; - /** Name of the region for this request. + /** Name of the GlobalVmExtensionPolicy resource to return. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getGlobalVmExtensionPolicy() { + return globalVmExtensionPolicy; } - /** Name of the region for this request. */ - public List setRegion(java.lang.String region) { + /** Name of the GlobalVmExtensionPolicy resource to return. */ + public Get setGlobalVmExtensionPolicy(java.lang.String globalVmExtensionPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(GLOBAL_VM_EXTENSION_POLICY_PATTERN.matcher(globalVmExtensionPolicy).matches(), + "Parameter globalVmExtensionPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.region = region; + this.globalVmExtensionPolicy = globalVmExtensionPolicy; return this; } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves details of a specific VM extension. + * + * Create a request for the method "globalVmExtensionPolicies.getVmExtension". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetVmExtension#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param extensionName + * @return the request + */ + public GetVmExtension getVmExtension(java.lang.String project, java.lang.String extensionName) throws java.io.IOException { + GetVmExtension result = new GetVmExtension(project, extensionName); + initialize(result); + return result; + } + + public class GetVmExtension extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/vmExtensions/{extensionName}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + /** - * 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")` + * Retrieves details of a specific VM extension. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "globalVmExtensionPolicies.getVmExtension". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetVmExtension#execute()} method to invoke the remote operation. + *

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

* - * You cannot combine constraints on multiple fields using regular expressions. + * @param project Project ID for this request. + * @param extensionName + * @since 1.13 */ - @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) ``` + protected GetVmExtension(java.lang.String project, java.lang.String extensionName) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalVmExtension.class); + this.project = com.google.api.client.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.extensionName = com.google.api.client.util.Preconditions.checkNotNull(extensionName, "Required parameter extensionName must be specified."); + } - 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: + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + @Override + public GetVmExtension set$Xgafv(java.lang.String $Xgafv) { + return (GetVmExtension) super.set$Xgafv($Xgafv); + } - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + @Override + public GetVmExtension setAccessToken(java.lang.String accessToken) { + return (GetVmExtension) super.setAccessToken(accessToken); + } - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; + @Override + public GetVmExtension setAlt(java.lang.String alt) { + return (GetVmExtension) super.setAlt(alt); } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + @Override + public GetVmExtension setCallback(java.lang.String callback) { + return (GetVmExtension) super.setCallback(callback); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; + @Override + public GetVmExtension setFields(java.lang.String fields) { + return (GetVmExtension) super.setFields(fields); + } - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; + @Override + public GetVmExtension setKey(java.lang.String key) { + return (GetVmExtension) super.setKey(key); } - /** - * 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 GetVmExtension setOauthToken(java.lang.String oauthToken) { + return (GetVmExtension) super.setOauthToken(oauthToken); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public GetVmExtension setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetVmExtension) super.setPrettyPrint(prettyPrint); + } - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + @Override + public GetVmExtension setQuotaUser(java.lang.String quotaUser) { + return (GetVmExtension) super.setQuotaUser(quotaUser); + } - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + @Override + public GetVmExtension setUploadType(java.lang.String uploadType) { + return (GetVmExtension) super.setUploadType(uploadType); + } - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public GetVmExtension setUploadProtocol(java.lang.String uploadProtocol) { + return (GetVmExtension) super.setUploadProtocol(uploadProtocol); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; + @Override + public GetVmExtension setUserIp(java.lang.String userIp) { + return (GetVmExtension) super.setUserIp(userIp); } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String project; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Project ID for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getProject() { + return project; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** Project ID for this request. */ + public GetVmExtension setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; return this; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String extensionName; - /** 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; + public java.lang.String getExtensionName() { + return extensionName; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public GetVmExtension setExtensionName(java.lang.String extensionName) { + this.extensionName = extensionName; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public GetVmExtension set(String parameterName, Object value) { + return (GetVmExtension) super.set(parameterName, value); } } /** - * Updates HaController in the specified project. + * Creates a new project level GlobalVmExtensionPolicy. * - * Create a request for the method "haControllers.patch". + * Create a request for the method "globalVmExtensionPolicies.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param haController ID of the HaController resource to update. - * @param content the {@link com.google.api.services.compute.model.HaController} + * @param content the {@link com.google.api.services.compute.model.GlobalVmExtensionPolicy} * @return the request */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String haController, com.google.api.services.compute.model.HaController content) throws java.io.IOException { - Patch result = new Patch(project, region, haController, content); + public Insert insert(java.lang.String project, com.google.api.services.compute.model.GlobalVmExtensionPolicy content) throws java.io.IOException { + Insert result = new Insert(project, content); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/haControllers/{haController}"; + private static final String REST_PATH = "projects/{project}/global/vmExtensionPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern HA_CONTROLLER_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Updates HaController in the specified project. + * Creates a new project level GlobalVmExtensionPolicy. * - * Create a request for the method "haControllers.patch". + * Create a request for the method "globalVmExtensionPolicies.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param haController ID of the HaController resource to update. - * @param content the {@link com.google.api.services.compute.model.HaController} + * @param content the {@link com.google.api.services.compute.model.GlobalVmExtensionPolicy} * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String haController, com.google.api.services.compute.model.HaController content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Insert(java.lang.String project, com.google.api.services.compute.model.GlobalVmExtensionPolicy content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.haController = com.google.api.client.util.Preconditions.checkNotNull(haController, "Required parameter haController must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), - "Parameter haController must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -48136,7 +47124,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -48146,58 +47134,32 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Name of the region for this request. */ - public Patch setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** ID of the HaController resource to update. */ - @com.google.api.client.util.Key - private java.lang.String haController; - - /** ID of the HaController resource to update. - */ - public java.lang.String getHaController() { - return haController; - } - - /** ID of the HaController resource to update. */ - public Patch setHaController(java.lang.String haController) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), - "Parameter haController must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.haController = haController; - 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; @@ -48207,104 +47169,64 @@ public java.lang.String getRequestId() { * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } - /** update_mask indicates fields to be updated as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** update_mask indicates fields to be updated as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** update_mask indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the HealthChecks collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.HealthChecks.List request = compute.healthChecks().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public HealthChecks healthChecks() { - return new HealthChecks(); - } - - /** - * The "healthChecks" collection of methods. - */ - public class HealthChecks { - /** - * Retrieves the list of all HealthCheck resources, regional and global, available to the specified - * project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Lists global VM extension policies. * - * Create a request for the method "healthChecks.aggregatedList". + * Create a request for the method "globalVmExtensionPolicies.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 Name of the project scoping this request. + * @param project Project ID for this request. * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/healthChecks"; + private static final String REST_PATH = "projects/{project}/global/vmExtensionPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves the list of all HealthCheck resources, regional and global, available to the - * specified project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Lists global VM extension policies. * - * Create a request for the method "healthChecks.aggregatedList". + * Create a request for the method "globalVmExtensionPolicies.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

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

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

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

* - * @param project Name of the project scoping this request. + * @param project Project ID for this request. * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthChecksAggregatedList.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalVmExtensionPolicyList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -48324,77 +47246,77 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Name of the project scoping this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Name of the project scoping this request. */ - public AggregatedList setProject(java.lang.String project) { + /** Project ID for this request. */ + public List setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -48535,45 +47457,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - return this; - } - /** * The maximum number of results per page that should be returned. If the number of available * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be @@ -48598,7 +47486,7 @@ public java.lang.Long getMaxResults() { * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public AggregatedList setMaxResults(java.lang.Long maxResults) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -48642,7 +47530,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -48665,7 +47553,7 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public AggregatedList setPageToken(java.lang.String pageToken) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -48697,169 +47585,146 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Deletes the specified HealthCheck resource. + * Lists all VM extensions within a specific zone for a project. This is a read-only API. * - * Create a request for the method "healthChecks.delete". + * Create a request for the method "globalVmExtensionPolicies.listVmExtensions". * * 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 ListVmExtensions#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param healthCheck Name of the HealthCheck resource to delete. + * @param project Required. Project ID for this request. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String healthCheck) throws java.io.IOException { - Delete result = new Delete(project, healthCheck); + public ListVmExtensions listVmExtensions(java.lang.String project) throws java.io.IOException { + ListVmExtensions result = new ListVmExtensions(project); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class ListVmExtensions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/healthChecks/{healthCheck}"; + private static final String REST_PATH = "projects/{project}/global/vmExtensions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern HEALTH_CHECK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Deletes the specified HealthCheck resource. + * Lists all VM extensions within a specific zone for a project. This is a read-only API. * - * Create a request for the method "healthChecks.delete". + * Create a request for the method "globalVmExtensionPolicies.listVmExtensions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

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

* - * @param project Project ID for this request. - * @param healthCheck Name of the HealthCheck resource to delete. + * @param project Required. Project ID for this request. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String healthCheck) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected ListVmExtensions(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalListVmExtensionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public 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 ListVmExtensions set$Xgafv(java.lang.String $Xgafv) { + return (ListVmExtensions) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public ListVmExtensions setAccessToken(java.lang.String accessToken) { + return (ListVmExtensions) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public ListVmExtensions setAlt(java.lang.String alt) { + return (ListVmExtensions) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public ListVmExtensions setCallback(java.lang.String callback) { + return (ListVmExtensions) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public ListVmExtensions setFields(java.lang.String fields) { + return (ListVmExtensions) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public ListVmExtensions setKey(java.lang.String key) { + return (ListVmExtensions) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public ListVmExtensions setOauthToken(java.lang.String oauthToken) { + return (ListVmExtensions) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public ListVmExtensions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListVmExtensions) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public ListVmExtensions setQuotaUser(java.lang.String quotaUser) { + return (ListVmExtensions) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public ListVmExtensions setUploadType(java.lang.String uploadType) { + return (ListVmExtensions) super.setUploadType(uploadType); } - /** Project ID for this request. */ + @Override + public ListVmExtensions setUploadProtocol(java.lang.String uploadProtocol) { + return (ListVmExtensions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListVmExtensions setUserIp(java.lang.String userIp) { + return (ListVmExtensions) super.setUserIp(userIp); + } + + /** Required. Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Required. Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + /** Required. Project ID for this request. */ + public ListVmExtensions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -48869,363 +47734,385 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the HealthCheck resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String healthCheck; - - /** Name of the HealthCheck resource to delete. - */ - public java.lang.String getHealthCheck() { - return healthCheck; - } - - /** Name of the HealthCheck resource to delete. */ - public Delete setHealthCheck(java.lang.String healthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.healthCheck = healthCheck; - return this; - } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String filter; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified HealthCheck resource. - * - * Create a request for the method "healthChecks.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 healthCheck Name of the HealthCheck resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String healthCheck) throws java.io.IOException { - Get result = new Get(project, healthCheck); - initialize(result); - return result; - } + 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. - public class Get extends ComputeRequest { + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` - private static final String REST_PATH = "projects/{project}/global/healthChecks/{healthCheck}"; + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - private final java.util.regex.Pattern HEALTH_CHECK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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; + } /** - * Returns the specified HealthCheck resource. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "healthChecks.get". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link 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.

+ * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * @param project Project ID for this request. - * @param healthCheck Name of the HealthCheck resource to return. - * @since 1.13 + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - protected Get(java.lang.String project, java.lang.String healthCheck) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthCheck.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public ListVmExtensions setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public ListVmExtensions setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; } - @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + /** + * 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 ListVmExtensions setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; } - /** Project ID for this request. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String pageToken; - /** Project ID for this request. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getProject() { - return project; + public java.lang.String getPageToken() { + return pageToken; } - /** Project ID for this request. */ - public 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; + /** + * 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 ListVmExtensions setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } - /** Name of the HealthCheck resource to return. */ + /** + * 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 healthCheck; + private java.lang.Boolean returnPartialSuccess; - /** Name of the HealthCheck resource to return. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getHealthCheck() { - return healthCheck; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** Name of the HealthCheck resource to return. */ - public Get setHealthCheck(java.lang.String healthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.healthCheck = healthCheck; + /** + * 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 ListVmExtensions setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public ListVmExtensions set(String parameterName, Object value) { + return (ListVmExtensions) super.set(parameterName, value); } } /** - * Creates a HealthCheck resource in the specified project using the data included in the request. + * Updates a global VM extension policy. * - * Create a request for the method "healthChecks.insert". + * Create a request for the method "globalVmExtensionPolicies.update". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @param globalVmExtensionPolicy Name of the global VM extension policy to update. + * @param content the {@link com.google.api.services.compute.model.GlobalVmExtensionPolicy} * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.HealthCheck content) throws java.io.IOException { - Insert result = new Insert(project, content); + public Update update(java.lang.String project, java.lang.String globalVmExtensionPolicy, com.google.api.services.compute.model.GlobalVmExtensionPolicy content) throws java.io.IOException { + Update result = new Update(project, globalVmExtensionPolicy, content); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/healthChecks"; + private static final String REST_PATH = "projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Creates a HealthCheck resource in the specified project using the data included in the request. + * Updates a global VM extension policy. * - * Create a request for the method "healthChecks.insert". + * Create a request for the method "globalVmExtensionPolicies.update". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @param globalVmExtensionPolicy Name of the global VM extension policy to update. + * @param content the {@link com.google.api.services.compute.model.GlobalVmExtensionPolicy} * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.HealthCheck content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Update(java.lang.String project, java.lang.String globalVmExtensionPolicy, com.google.api.services.compute.model.GlobalVmExtensionPolicy 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.globalVmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(globalVmExtensionPolicy, "Required parameter globalVmExtensionPolicy must be specified."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -49239,7 +48126,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public Update setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -49249,6 +48136,22 @@ public Insert setProject(java.lang.String project) { return this; } + /** Name of the global VM extension policy to update. */ + @com.google.api.client.util.Key + private java.lang.String globalVmExtensionPolicy; + + /** Name of the global VM extension policy to update. + */ + public java.lang.String getGlobalVmExtensionPolicy() { + return globalVmExtensionPolicy; + } + + /** Name of the global VM extension policy to update. */ + public Update setGlobalVmExtensionPolicy(java.lang.String globalVmExtensionPolicy) { + this.globalVmExtensionPolicy = globalVmExtensionPolicy; + 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 @@ -49293,55 +48196,81 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Insert setRequestId(java.lang.String requestId) { + public Update setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the HaControllers collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.HaControllers.List request = compute.haControllers().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public HaControllers haControllers() { + return new HaControllers(); + } + + /** + * The "haControllers" collection of methods. + */ + public class HaControllers { + /** - * Retrieves the list of HealthCheck resources available to the specified project. + * Retrieves an aggregated list of all of the HaControllers in the specified project across all + * regions. * - * Create a request for the method "healthChecks.list". + * Create a request for the method "haControllers.aggregatedList". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/healthChecks"; + private static final String REST_PATH = "projects/{project}/aggregated/haControllers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves the list of HealthCheck resources available to the specified project. + * Retrieves an aggregated list of all of the HaControllers in the specified project across all + * regions. * - * Create a request for the method "healthChecks.list". + * Create a request for the method "haControllers.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthCheckList.class); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HaControllersAggregatedList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -49361,64 +48290,64 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); - } + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); + } /** Project ID for this request. */ @com.google.api.client.util.Key @@ -49431,7 +48360,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public AggregatedList setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -49572,11 +48501,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public AggregatedList setFilter(java.lang.String filter) { this.filter = filter; return this; } + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + return this; + } + /** * The maximum number of results per page that should be returned. If the number of available * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be @@ -49601,7 +48564,7 @@ public java.lang.Long getMaxResults() { * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public List setMaxResults(java.lang.Long maxResults) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -49645,7 +48608,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -49668,7 +48631,7 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public List setPageToken(java.lang.String pageToken) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -49700,136 +48663,158 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Updates a HealthCheck resource in the specified project using the data included in the request. - * This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * Deletes an HaController in the specified project. * - * Create a request for the method "healthChecks.patch". + * Create a request for the method "haControllers.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param healthCheck Name of the HealthCheck resource to patch. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @param region Name of the region for this request. + * @param haController Name of the HaController resource to delete. * @return the request */ - public Patch patch(java.lang.String project, java.lang.String healthCheck, com.google.api.services.compute.model.HealthCheck content) throws java.io.IOException { - Patch result = new Patch(project, healthCheck, content); + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String haController) throws java.io.IOException { + Delete result = new Delete(project, region, haController); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/healthChecks/{healthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/haControllers/{haController}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern HEALTH_CHECK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Updates a HealthCheck resource in the specified project using the data included in the request. - * This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * Deletes an HaController in the specified project. * - * Create a request for the method "healthChecks.patch". + * Create a request for the method "haControllers.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param healthCheck Name of the HealthCheck resource to patch. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @param region Name of the region for this request. + * @param haController Name of the HaController resource to delete. * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String healthCheck, com.google.api.services.compute.model.HealthCheck content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Delete(java.lang.String project, java.lang.String region, java.lang.String haController) { + 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.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.haController = com.google.api.client.util.Preconditions.checkNotNull(haController, "Required parameter haController must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -49843,7 +48828,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -49853,24 +48838,66 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the HealthCheck resource to patch. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String healthCheck; + private java.lang.String region; - /** Name of the HealthCheck resource to patch. + /** Name of the region for this request. */ - public java.lang.String getHealthCheck() { - return healthCheck; + public java.lang.String getRegion() { + return region; } - /** Name of the HealthCheck resource to patch. */ - public Patch setHealthCheck(java.lang.String healthCheck) { + /** Name of the region for this request. */ + public Delete setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.healthCheck = healthCheck; + this.region = region; + return this; + } + + /** Name of the HaController resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String haController; + + /** Name of the HaController resource to delete. + */ + public java.lang.String getHaController() { + return haController; + } + + /** Name of the HaController resource to delete. */ + public Delete setHaController(java.lang.String haController) { + this.haController = haController; + return this; + } + + /** + * Force-deletes HA Controller when the Delete is stuck. Instance that is not primary at the + * moment will also be deleted. Can only be used against the HA Controller resource that is + * already being deleted. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Force-deletes HA Controller when the Delete is stuck. Instance that is not primary at the moment + will also be deleted. Can only be used against the HA Controller resource that is already being + deleted. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Force-deletes HA Controller when the Delete is stuck. Instance that is not primary at the + * moment will also be deleted. Can only be used against the HA Controller resource that is + * already being deleted. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; return this; } @@ -49878,28 +48905,12 @@ public Patch setHealthCheck(java.lang.String healthCheck) { * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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; @@ -49909,144 +48920,147 @@ public java.lang.String getRequestId() { * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Fails over a VM targeted by the specified HaController to the selected zone. * - * Create a request for the method "healthChecks.testIamPermissions". + * Create a request for the method "haControllers.failover". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link Failover#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param region Name of the region for this request. + * @param haController ID of the HaController resource to update. + * @param content the {@link com.google.api.services.compute.model.HaControllersFailoverRequest} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); + public Failover failover(java.lang.String project, java.lang.String region, java.lang.String haController, com.google.api.services.compute.model.HaControllersFailoverRequest content) throws java.io.IOException { + Failover result = new Failover(project, region, haController, content); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class Failover extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/healthChecks/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/haControllers/{haController}/failover"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern HA_CONTROLLER_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns permissions that a caller has on the specified resource. + * Fails over a VM targeted by the specified HaController to the selected zone. * - * Create a request for the method "healthChecks.testIamPermissions". + * Create a request for the method "haControllers.failover". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param region Name of the region for this request. + * @param haController ID of the HaController resource to update. + * @param content the {@link com.google.api.services.compute.model.HaControllersFailoverRequest} * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected Failover(java.lang.String project, java.lang.String region, java.lang.String haController, com.google.api.services.compute.model.HaControllersFailoverRequest 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.haController = com.google.api.client.util.Preconditions.checkNotNull(haController, "Required parameter haController must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), + "Parameter haController must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public Failover set$Xgafv(java.lang.String $Xgafv) { + return (Failover) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public Failover setAccessToken(java.lang.String accessToken) { + return (Failover) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Failover setAlt(java.lang.String alt) { + return (Failover) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Failover setCallback(java.lang.String callback) { + return (Failover) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Failover setFields(java.lang.String fields) { + return (Failover) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Failover setKey(java.lang.String key) { + return (Failover) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Failover setOauthToken(java.lang.String oauthToken) { + return (Failover) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Failover setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Failover) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Failover setQuotaUser(java.lang.String quotaUser) { + return (Failover) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Failover setUploadType(java.lang.String uploadType) { + return (Failover) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Failover setUploadProtocol(java.lang.String uploadProtocol) { + return (Failover) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Failover setUserIp(java.lang.String userIp) { + return (Failover) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -50060,7 +49074,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + public Failover setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -50070,150 +49084,215 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String region; - /** Name or id of the resource for this request. + /** Name of the region for this request. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getRegion() { + return region; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Name of the region for this request. */ + public Failover setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.resource = resource; + this.region = region; + return this; + } + + /** ID of the HaController resource to update. */ + @com.google.api.client.util.Key + private java.lang.String haController; + + /** ID of the HaController resource to update. + */ + public java.lang.String getHaController() { + return haController; + } + + /** ID of the HaController resource to update. */ + public Failover setHaController(java.lang.String haController) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), + "Parameter haController must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.haController = haController; + 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. + */ + @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. + */ + 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. + */ + public Failover setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Failover set(String parameterName, Object value) { + return (Failover) super.set(parameterName, value); } } /** - * Updates a HealthCheck resource in the specified project using the data included in the request. + * Returns all the details of a specific HaController. * - * Create a request for the method "healthChecks.update". + * Create a request for the method "haControllers.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param healthCheck Name of the HealthCheck resource to update. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @param region Name of the region for this request. + * @param haController Name of the HaController resource to return. * @return the request */ - public Update update(java.lang.String project, java.lang.String healthCheck, com.google.api.services.compute.model.HealthCheck content) throws java.io.IOException { - Update result = new Update(project, healthCheck, content); + public Get get(java.lang.String project, java.lang.String region, java.lang.String haController) throws java.io.IOException { + Get result = new Get(project, region, haController); initialize(result); return result; } - public class Update extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/healthChecks/{healthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/haControllers/{haController}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern HEALTH_CHECK_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern HA_CONTROLLER_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Updates a HealthCheck resource in the specified project using the data included in the request. + * Returns all the details of a specific HaController. * - * Create a request for the method "healthChecks.update". + * Create a request for the method "haControllers.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

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

+ * parameters, call the {@link 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 healthCheck Name of the HealthCheck resource to update. - * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @param region Name of the region for this request. + * @param haController Name of the HaController resource to return. * @since 1.13 */ - protected Update(java.lang.String project, java.lang.String healthCheck, com.google.api.services.compute.model.HealthCheck content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Get(java.lang.String project, java.lang.String region, java.lang.String haController) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HaController.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.haController = com.google.api.client.util.Preconditions.checkNotNull(haController, "Required parameter haController must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), + "Parameter haController must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); - } + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -50227,7 +49306,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -50237,747 +49316,412 @@ public Update setProject(java.lang.String project) { return this; } - /** Name of the HealthCheck resource to update. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String healthCheck; + private java.lang.String region; - /** Name of the HealthCheck resource to update. + /** Name of the region for this request. */ - public java.lang.String getHealthCheck() { - return healthCheck; + public java.lang.String getRegion() { + return region; } - /** Name of the HealthCheck resource to update. */ - public Update setHealthCheck(java.lang.String healthCheck) { + /** Name of the region for this request. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), - "Parameter healthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.healthCheck = healthCheck; + this.region = region; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Name of the HaController resource to return. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String haController; - 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 HaController resource to return. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getHaController() { + return haController; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Name of the HaController resource to return. */ + public Get setHaController(java.lang.String haController) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), + "Parameter haController must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.haController = haController; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the Hosts collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Hosts.List request = compute.hosts().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Hosts hosts() { - return new Hosts(); - } - - /** - * The "hosts" collection of methods. - */ - public class Hosts { - /** - * Retrieves information about the specified host. + * Creates HaController in the specified project. * - * Create a request for the method "hosts.get". + * Create a request for the method "haControllers.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * - * @param project The project ID for this request. - * @param zone The name of the zone for this request, formatted as RFC1035. - * @param association The parent resource association for the Host. This field specifies the - hierarchical context (e.g., - * reservation, block, sub-block) when - accessing the host. For example, - * reservations/reservation_name, - * reservations/reservation_name/reservationBlocks/reservation_block_name or - reservations/res - * ervation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_su - * b_block_name. - * @param host The name of the host, formatted as RFC1035 or a resource ID - number. + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.HaController} * @return the request */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String association, java.lang.String host) throws java.io.IOException { - Get result = new Get(project, zone, association, host); + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HaController content) throws java.io.IOException { + Insert result = new Insert(project, region, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{association}/hosts/{host}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/haControllers"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Retrieves information about the specified host. + * Creates HaController in the specified project. * - * Create a request for the method "hosts.get". + * Create a request for the method "haControllers.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

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

* - * @param project The project ID for this request. - * @param zone The name of the zone for this request, formatted as RFC1035. - * @param association The parent resource association for the Host. This field specifies the - hierarchical context (e.g., - * reservation, block, sub-block) when - accessing the host. For example, - * reservations/reservation_name, - * reservations/reservation_name/reservationBlocks/reservation_block_name or - reservations/res - * ervation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_su - * b_block_name. - * @param host The name of the host, formatted as RFC1035 or a resource ID - number. + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.HaController} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String association, java.lang.String host) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Host.class); + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.HaController content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.association = com.google.api.client.util.Preconditions.checkNotNull(association, "Required parameter association must be specified."); - this.host = com.google.api.client.util.Preconditions.checkNotNull(host, "Required parameter host must be specified."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } - /** The project ID for this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** The project ID for this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** The project ID for this request. */ - public Get setProject(java.lang.String 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; } - /** The name of the zone for this request, formatted as RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request, formatted as RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request, formatted as RFC1035. */ - public Get setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The parent resource association for the Host. This field specifies the hierarchical context - * (e.g., reservation, block, sub-block) when accessing the host. For example, - * reservations/reservation_name, - * reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/rese - * rvation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_ - * block_name. - */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String association; + private java.lang.String region; - /** The parent resource association for the Host. This field specifies the hierarchical context (e.g., - reservation, block, sub-block) when accessing the host. For example, reservations/reservation_name, - reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/reservation_ - name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_block_name. + /** Name of the region for this request. */ - public java.lang.String getAssociation() { - return association; + public java.lang.String getRegion() { + return region; } - /** - * The parent resource association for the Host. This field specifies the hierarchical context - * (e.g., reservation, block, sub-block) when accessing the host. For example, - * reservations/reservation_name, - * reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/rese - * rvation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_ - * block_name. - */ - public Get setAssociation(java.lang.String association) { - this.association = association; + /** Name of the region for this request. */ + public Insert setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } /** - * The name of the host, formatted as RFC1035 or a resource ID number. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. */ @com.google.api.client.util.Key - private java.lang.String host; + private java.lang.String requestId; - /** The name of the host, formatted as RFC1035 or a resource ID number. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. */ - public java.lang.String getHost() { - return host; + public java.lang.String getRequestId() { + return requestId; } /** - * The name of the host, formatted as RFC1035 or a resource ID number. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. */ - public Get setHost(java.lang.String host) { - this.host = host; + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Allows customers to get SBOM versions of a host. + * Lists all HaControllers in the specified project in the specified region. * - * Create a request for the method "hosts.getVersion". + * Create a request for the method "haControllers.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetVersion#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone Name of the zone for this request. Zone name should conform to RFC1035. - * @param association The parent resource association for the Host. This field specifies the - hierarchical context (e.g., - * reservation, block, sub-block) when - accessing the host. - * @param host The name of the host, formatted as RFC1035 or a resource ID - number. - * @param content the {@link com.google.api.services.compute.model.HostsGetVersionRequest} + * @param region Name of the region for this request. * @return the request */ - public GetVersion getVersion(java.lang.String project, java.lang.String zone, java.lang.String association, java.lang.String host, com.google.api.services.compute.model.HostsGetVersionRequest content) throws java.io.IOException { - GetVersion result = new GetVersion(project, zone, association, host, content); + public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { + List result = new List(project, region); initialize(result); return result; } - public class GetVersion extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/{association}/hosts/{host}/getVersion"; + private static final String REST_PATH = "projects/{project}/regions/{region}/haControllers"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Allows customers to get SBOM versions of a host. + * Lists all HaControllers in the specified project in the specified region. * - * Create a request for the method "hosts.getVersion". + * Create a request for the method "haControllers.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetVersion#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param zone Name of the zone for this request. Zone name should conform to RFC1035. - * @param association The parent resource association for the Host. This field specifies the - hierarchical context (e.g., - * reservation, block, sub-block) when - accessing the host. - * @param host The name of the host, formatted as RFC1035 or a resource ID - number. - * @param content the {@link com.google.api.services.compute.model.HostsGetVersionRequest} + * @param region Name of the region for this request. * @since 1.13 */ - protected GetVersion(java.lang.String project, java.lang.String zone, java.lang.String association, java.lang.String host, com.google.api.services.compute.model.HostsGetVersionRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected List(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HaControllersList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.association = com.google.api.client.util.Preconditions.checkNotNull(association, "Required parameter association must be specified."); - this.host = com.google.api.client.util.Preconditions.checkNotNull(host, "Required parameter host must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override - public GetVersion set$Xgafv(java.lang.String $Xgafv) { - return (GetVersion) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public GetVersion setAccessToken(java.lang.String accessToken) { - return (GetVersion) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public GetVersion setAlt(java.lang.String alt) { - return (GetVersion) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public GetVersion setCallback(java.lang.String callback) { - return (GetVersion) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public GetVersion setFields(java.lang.String fields) { - return (GetVersion) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public GetVersion setKey(java.lang.String key) { - return (GetVersion) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public GetVersion setOauthToken(java.lang.String oauthToken) { - return (GetVersion) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public GetVersion setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetVersion) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public GetVersion setQuotaUser(java.lang.String quotaUser) { - return (GetVersion) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public GetVersion setUploadType(java.lang.String uploadType) { - return (GetVersion) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public GetVersion setUploadProtocol(java.lang.String uploadProtocol) { - return (GetVersion) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public GetVersion setUserIp(java.lang.String userIp) { - return (GetVersion) super.setUserIp(userIp); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public GetVersion setProject(java.lang.String project) { - this.project = project; - return this; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. Zone name should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. Zone name should conform to RFC1035. */ - public GetVersion setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The parent resource association for the Host. This field specifies the hierarchical context - * (e.g., reservation, block, sub-block) when accessing the host. - */ - @com.google.api.client.util.Key - private java.lang.String association; - - /** The parent resource association for the Host. This field specifies the hierarchical context (e.g., - reservation, block, sub-block) when accessing the host. - */ - public java.lang.String getAssociation() { - return association; - } - - /** - * The parent resource association for the Host. This field specifies the hierarchical context - * (e.g., reservation, block, sub-block) when accessing the host. - */ - public GetVersion setAssociation(java.lang.String association) { - this.association = association; - return this; - } - - /** - * The name of the host, formatted as RFC1035 or a resource ID number. - */ - @com.google.api.client.util.Key - private java.lang.String host; - - /** The name of the host, formatted as RFC1035 or a resource ID number. - */ - public java.lang.String getHost() { - return host; - } - - /** - * The name of the host, formatted as RFC1035 or a resource ID number. - */ - public GetVersion setHost(java.lang.String host) { - this.host = host; - 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. - */ - @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. - */ - 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. - */ - public GetVersion setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public GetVersion set(String parameterName, Object value) { - return (GetVersion) super.set(parameterName, value); - } - } - /** - * Retrieves a list of hosts. - * - * Create a request for the method "hosts.list". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param project The project ID for this request. - * @param zone The name of the zone for this request, formatted as RFC1035. - * @param association The parent resource association for the Host. This field specifies the - hierarchical context (e.g., - * reservation, block, sub-block) when - accessing the host. For example, - * reservations/reservation_name, - * reservations/reservation_name/reservationBlocks/reservation_block_name or - reservations/res - * ervation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_su - * b_block_name. - * @return the request - */ - public List list(java.lang.String project, java.lang.String zone, java.lang.String association) throws java.io.IOException { - List result = new List(project, zone, association); - initialize(result); - return result; - } - - public class List extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/{association}/hosts"; - - /** - * Retrieves a list of hosts. - * - * Create a request for the method "hosts.list". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

- * - * @param project The project ID for this request. - * @param zone The name of the zone for this request, formatted as RFC1035. - * @param association The parent resource association for the Host. This field specifies the - hierarchical context (e.g., - * reservation, block, sub-block) when - accessing the host. For example, - * reservations/reservation_name, - * reservations/reservation_name/reservationBlocks/reservation_block_name or - reservations/res - * ervation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_su - * b_block_name. - * @since 1.13 - */ - protected List(java.lang.String project, java.lang.String zone, java.lang.String association) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HostsListResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.association = com.google.api.client.util.Preconditions.checkNotNull(association, "Required parameter association must be specified."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } - - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } - - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } - - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } - - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } - - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } - - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } - - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } @Override public List setUserIp(java.lang.String userIp) { return (List) super.setUserIp(userIp); } - /** The project ID for this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** The project ID for this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** The project ID for this request. */ + /** 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; } - /** The name of the zone for this request, formatted as RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request, formatted as RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request, formatted as RFC1035. */ - public List setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The parent resource association for the Host. This field specifies the hierarchical context - * (e.g., reservation, block, sub-block) when accessing the host. For example, - * reservations/reservation_name, - * reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/rese - * rvation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_ - * block_name. - */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String association; + private java.lang.String region; - /** The parent resource association for the Host. This field specifies the hierarchical context (e.g., - reservation, block, sub-block) when accessing the host. For example, reservations/reservation_name, - reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/reservation_ - name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_block_name. + /** Name of the region for this request. */ - public java.lang.String getAssociation() { - return association; + public java.lang.String getRegion() { + return region; } - /** - * The parent resource association for the Host. This field specifies the hierarchical context - * (e.g., reservation, block, sub-block) when accessing the host. For example, - * reservations/reservation_name, - * reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/rese - * rvation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_ - * block_name. - */ - public List setAssociation(java.lang.String association) { - this.association = association; + /** Name of the region for this request. */ + public List setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } @@ -51250,145 +49994,135 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the HttpHealthChecks collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.HttpHealthChecks.List request = compute.httpHealthChecks().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public HttpHealthChecks httpHealthChecks() { - return new HttpHealthChecks(); - } - - /** - * The "httpHealthChecks" collection of methods. - */ - public class HttpHealthChecks { - /** - * Deletes the specified HttpHealthCheck resource. + * Updates HaController in the specified project. * - * Create a request for the method "httpHealthChecks.delete". + * Create a request for the method "haControllers.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 httpHealthCheck Name of the HttpHealthCheck resource to delete. + * @param region Name of the region for this request. + * @param haController ID of the HaController resource to update. + * @param content the {@link com.google.api.services.compute.model.HaController} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String httpHealthCheck) throws java.io.IOException { - Delete result = new Delete(project, httpHealthCheck); + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String haController, com.google.api.services.compute.model.HaController content) throws java.io.IOException { + Patch result = new Patch(project, region, haController, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/httpHealthChecks/{httpHealthCheck}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/haControllers/{haController}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern HTTP_HEALTH_CHECK_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern HA_CONTROLLER_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified HttpHealthCheck resource. + * Updates HaController in the specified project. * - * Create a request for the method "httpHealthChecks.delete". + * Create a request for the method "haControllers.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param httpHealthCheck Name of the HttpHealthCheck resource to delete. + * @param region Name of the region for this request. + * @param haController ID of the HaController resource to update. + * @param content the {@link com.google.api.services.compute.model.HaController} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String httpHealthCheck) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Patch(java.lang.String project, java.lang.String region, java.lang.String haController, com.google.api.services.compute.model.HaController 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.httpHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpHealthCheck, "Required parameter httpHealthCheck must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), - "Parameter httpHealthCheck must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.haController = com.google.api.client.util.Preconditions.checkNotNull(haController, "Required parameter haController must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), + "Parameter haController must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -51402,7 +50136,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public Patch setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -51412,24 +50146,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the HttpHealthCheck resource to delete. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String httpHealthCheck; + private java.lang.String region; - /** Name of the HttpHealthCheck resource to delete. + /** Name of the region for this request. */ - public java.lang.String getHttpHealthCheck() { - return httpHealthCheck; + public java.lang.String getRegion() { + return region; } - /** Name of the HttpHealthCheck resource to delete. */ - public Delete setHttpHealthCheck(java.lang.String httpHealthCheck) { + /** Name of the region for this request. */ + public Patch setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), - "Parameter httpHealthCheck must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(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; + } + + /** ID of the HaController resource to update. */ + @com.google.api.client.util.Key + private java.lang.String haController; + + /** ID of the HaController resource to update. + */ + public java.lang.String getHaController() { + return haController; + } + + /** ID of the HaController resource to update. */ + public Patch setHaController(java.lang.String haController) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HA_CONTROLLER_PATTERN.matcher(haController).matches(), + "Parameter haController must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.httpHealthCheck = httpHealthCheck; + this.haController = haController; return this; } @@ -51437,28 +50192,12 @@ public Delete setHttpHealthCheck(java.lang.String httpHealthCheck) { * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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; @@ -51468,425 +50207,104 @@ public java.lang.String getRequestId() { * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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) { + 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 Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } - /** - * Returns the specified HttpHealthCheck resource. - * - * Create a request for the method "httpHealthChecks.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 httpHealthCheck Name of the HttpHealthCheck resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String httpHealthCheck) throws java.io.IOException { - Get result = new Get(project, httpHealthCheck); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/httpHealthChecks/{httpHealthCheck}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern HTTP_HEALTH_CHECK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns the specified HttpHealthCheck resource. - * - * Create a request for the method "httpHealthChecks.get". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param httpHealthCheck Name of the HttpHealthCheck resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String httpHealthCheck) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HttpHealthCheck.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.httpHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpHealthCheck, "Required parameter httpHealthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), - "Parameter httpHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public 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 HttpHealthCheck resource to return. */ - @com.google.api.client.util.Key - private java.lang.String httpHealthCheck; + } - /** Name of the HttpHealthCheck resource to return. - */ - public java.lang.String getHttpHealthCheck() { - return httpHealthCheck; - } + /** + * An accessor for creating requests from the HealthChecks collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.HealthChecks.List request = compute.healthChecks().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public HealthChecks healthChecks() { + return new HealthChecks(); + } - /** Name of the HttpHealthCheck resource to return. */ - public Get setHttpHealthCheck(java.lang.String httpHealthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), - "Parameter httpHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.httpHealthCheck = httpHealthCheck; - return this; - } + /** + * The "healthChecks" collection of methods. + */ + public class HealthChecks { - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } /** - * Creates a HttpHealthCheck resource in the specified project using the data included in the - * request. - * - * Create a request for the method "httpHealthChecks.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. + * Retrieves the list of all HealthCheck resources, regional and global, available to the specified + * project. * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.HttpHealthCheck} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.HttpHealthCheck content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/httpHealthChecks"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - /** - * Creates a HttpHealthCheck resource in the specified project using the data included in the - * request. - * - * Create a request for the method "httpHealthChecks.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.HttpHealthCheck} - * @since 1.13 - */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.HttpHealthCheck content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. - - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); - } - } - /** - * Retrieves the list of HttpHealthCheck resources available to the specified project. + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. * - * Create a request for the method "httpHealthChecks.list". + * Create a request for the method "healthChecks.aggregatedList". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. + * @param project Name of the project scoping this request. * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/httpHealthChecks"; + private static final String REST_PATH = "projects/{project}/aggregated/healthChecks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves the list of HttpHealthCheck resources available to the specified project. + * Retrieves the list of all HealthCheck resources, regional and global, available to the + * specified project. * - * Create a request for the method "httpHealthChecks.list". + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "healthChecks.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

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

* - * @param project Project ID for this request. + * @param project Name of the project scoping this request. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HttpHealthCheckList.class); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthChecksAggregatedList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -51906,77 +50324,77 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the project scoping this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Name of the project scoping this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public List setProject(java.lang.String project) { + /** Name of the project scoping this request. */ + public AggregatedList setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -52117,11 +50535,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public AggregatedList setFilter(java.lang.String filter) { this.filter = filter; return this; } + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + return this; + } + /** * The maximum number of results per page that should be returned. If the number of available * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be @@ -52146,7 +50598,7 @@ public java.lang.Long getMaxResults() { * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public List setMaxResults(java.lang.Long maxResults) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -52190,7 +50642,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -52213,7 +50665,7 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public List setPageToken(java.lang.String pageToken) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -52245,138 +50697,155 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates a HttpHealthCheck resource in the specified project using the data included in the - * request. This method supportsPATCH semantics and uses theJSON merge patch format and processing - * rules. + /** + * 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 HealthCheck resource. * - * Create a request for the method "httpHealthChecks.patch". + * Create a request for the method "healthChecks.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param httpHealthCheck Name of the HttpHealthCheck resource to patch. - * @param content the {@link com.google.api.services.compute.model.HttpHealthCheck} + * @param healthCheck Name of the HealthCheck resource to delete. * @return the request */ - public Patch patch(java.lang.String project, java.lang.String httpHealthCheck, com.google.api.services.compute.model.HttpHealthCheck content) throws java.io.IOException { - Patch result = new Patch(project, httpHealthCheck, content); + public Delete delete(java.lang.String project, java.lang.String healthCheck) throws java.io.IOException { + Delete result = new Delete(project, healthCheck); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/httpHealthChecks/{httpHealthCheck}"; + private static final String REST_PATH = "projects/{project}/global/healthChecks/{healthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern HTTP_HEALTH_CHECK_PATTERN = + private final java.util.regex.Pattern HEALTH_CHECK_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Updates a HttpHealthCheck resource in the specified project using the data included in the - * request. This method supportsPATCH semantics and uses theJSON merge patch format and processing - * rules. + * Deletes the specified HealthCheck resource. * - * Create a request for the method "httpHealthChecks.patch". + * Create a request for the method "healthChecks.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param httpHealthCheck Name of the HttpHealthCheck resource to patch. - * @param content the {@link com.google.api.services.compute.model.HttpHealthCheck} + * @param healthCheck Name of the HealthCheck resource to delete. * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String httpHealthCheck, com.google.api.services.compute.model.HttpHealthCheck content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Delete(java.lang.String project, java.lang.String healthCheck) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.httpHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpHealthCheck, "Required parameter httpHealthCheck must be specified."); + this.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), - "Parameter httpHealthCheck must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -52390,7 +50859,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -52400,24 +50869,24 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the HttpHealthCheck resource to patch. */ + /** Name of the HealthCheck resource to delete. */ @com.google.api.client.util.Key - private java.lang.String httpHealthCheck; + private java.lang.String healthCheck; - /** Name of the HttpHealthCheck resource to patch. + /** Name of the HealthCheck resource to delete. */ - public java.lang.String getHttpHealthCheck() { - return httpHealthCheck; + public java.lang.String getHealthCheck() { + return healthCheck; } - /** Name of the HttpHealthCheck resource to patch. */ - public Patch setHttpHealthCheck(java.lang.String httpHealthCheck) { + /** Name of the HealthCheck resource to delete. */ + public Delete setHealthCheck(java.lang.String healthCheck) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), - "Parameter httpHealthCheck must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.httpHealthCheck = httpHealthCheck; + this.healthCheck = healthCheck; return this; } @@ -52465,135 +50934,142 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Patch setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Returns the specified HealthCheck resource. * - * Create a request for the method "httpHealthChecks.testIamPermissions". + * Create a request for the method "healthChecks.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param healthCheck Name of the HealthCheck resource to return. * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); + public Get get(java.lang.String project, java.lang.String healthCheck) throws java.io.IOException { + Get result = new Get(project, healthCheck); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/httpHealthChecks/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/healthChecks/{healthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern HEALTH_CHECK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns permissions that a caller has on the specified resource. + * Returns the specified HealthCheck resource. * - * Create a request for the method "httpHealthChecks.testIamPermissions". + * Create a request for the method "healthChecks.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param healthCheck Name of the HealthCheck resource to return. * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected Get(java.lang.String project, java.lang.String healthCheck) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthCheck.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) 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. */ @@ -52607,7 +51083,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions 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 " + @@ -52617,152 +51093,139 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the HealthCheck resource to return. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String healthCheck; - /** Name or id of the resource for this request. + /** Name of the HealthCheck resource to return. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getHealthCheck() { + return healthCheck; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Name of the HealthCheck resource to return. */ + public Get setHealthCheck(java.lang.String healthCheck) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.healthCheck = healthCheck; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Updates a HttpHealthCheck resource in the specified project using the data included in the - * request. + * Creates a HealthCheck resource in the specified project using the data included in the request. * - * Create a request for the method "httpHealthChecks.update". + * Create a request for the method "healthChecks.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param httpHealthCheck Name of the HttpHealthCheck resource to update. - * @param content the {@link com.google.api.services.compute.model.HttpHealthCheck} + * @param content the {@link com.google.api.services.compute.model.HealthCheck} * @return the request */ - public Update update(java.lang.String project, java.lang.String httpHealthCheck, com.google.api.services.compute.model.HttpHealthCheck content) throws java.io.IOException { - Update result = new Update(project, httpHealthCheck, content); + public Insert insert(java.lang.String project, com.google.api.services.compute.model.HealthCheck content) throws java.io.IOException { + Insert result = new Insert(project, content); initialize(result); return result; } - public class Update extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/httpHealthChecks/{httpHealthCheck}"; + private static final String REST_PATH = "projects/{project}/global/healthChecks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern HTTP_HEALTH_CHECK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Updates a HttpHealthCheck resource in the specified project using the data included in the - * request. + * Creates a HealthCheck resource in the specified project using the data included in the request. * - * Create a request for the method "httpHealthChecks.update". + * Create a request for the method "healthChecks.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param httpHealthCheck Name of the HttpHealthCheck resource to update. - * @param content the {@link com.google.api.services.compute.model.HttpHealthCheck} + * @param content the {@link com.google.api.services.compute.model.HealthCheck} * @since 1.13 */ - protected Update(java.lang.String project, java.lang.String httpHealthCheck, com.google.api.services.compute.model.HttpHealthCheck content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Insert(java.lang.String project, com.google.api.services.compute.model.HealthCheck content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.httpHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpHealthCheck, "Required parameter httpHealthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), - "Parameter httpHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -52776,7 +51239,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -52786,27 +51249,6 @@ public Update setProject(java.lang.String project) { return this; } - /** Name of the HttpHealthCheck resource to update. */ - @com.google.api.client.util.Key - private java.lang.String httpHealthCheck; - - /** Name of the HttpHealthCheck resource to update. - */ - public java.lang.String getHttpHealthCheck() { - return httpHealthCheck; - } - - /** Name of the HttpHealthCheck resource to update. */ - public Update setHttpHealthCheck(java.lang.String httpHealthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), - "Parameter httpHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.httpHealthCheck = httpHealthCheck; - return this; - } - /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -52851,159 +51293,135 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Update setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the HttpsHealthChecks collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.HttpsHealthChecks.List request = compute.httpsHealthChecks().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public HttpsHealthChecks httpsHealthChecks() { - return new HttpsHealthChecks(); - } - - /** - * The "httpsHealthChecks" collection of methods. - */ - public class HttpsHealthChecks { - /** - * Deletes the specified HttpsHealthCheck resource. + * Retrieves the list of HealthCheck resources available to the specified project. * - * Create a request for the method "httpsHealthChecks.delete". + * Create a request for the method "healthChecks.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param httpsHealthCheck Name of the HttpsHealthCheck resource to delete. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String httpsHealthCheck) throws java.io.IOException { - Delete result = new Delete(project, httpsHealthCheck); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}"; + private static final String REST_PATH = "projects/{project}/global/healthChecks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern HTTPS_HEALTH_CHECK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Deletes the specified HttpsHealthCheck resource. + * Retrieves the list of HealthCheck resources available to the specified project. * - * Create a request for the method "httpsHealthChecks.delete". + * Create a request for the method "healthChecks.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param httpsHealthCheck Name of the HttpsHealthCheck resource to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String httpsHealthCheck) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HealthCheckList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.httpsHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpsHealthCheck, "Required parameter httpsHealthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), - "Parameter httpsHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } - /** Project ID for this request. */ - @com.google.api.client.util.Key + @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. @@ -53013,7 +51431,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public List setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -53023,207 +51441,395 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the HttpsHealthCheck resource to delete. */ + /** + * 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 httpsHealthCheck; + private java.lang.String filter; - /** Name of the HttpsHealthCheck resource to delete. + /** 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 getHttpsHealthCheck() { - return httpsHealthCheck; + public java.lang.String getFilter() { + return filter; } - /** Name of the HttpsHealthCheck resource to delete. */ - public Delete setHttpsHealthCheck(java.lang.String httpsHealthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), - "Parameter httpsHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.httpsHealthCheck = httpsHealthCheck; + /** + * 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; } /** - * An optional request ID to identify requests. Specify a unique 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 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. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original 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 List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Returns the specified HttpsHealthCheck resource. + * Updates a HealthCheck resource in the specified project using the data included in the request. + * This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. * - * Create a request for the method "httpsHealthChecks.get". + * Create a request for the method "healthChecks.patch". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param httpsHealthCheck Name of the HttpsHealthCheck resource to return. + * @param healthCheck Name of the HealthCheck resource to patch. + * @param content the {@link com.google.api.services.compute.model.HealthCheck} * @return the request */ - public Get get(java.lang.String project, java.lang.String httpsHealthCheck) throws java.io.IOException { - Get result = new Get(project, httpsHealthCheck); + public Patch patch(java.lang.String project, java.lang.String healthCheck, com.google.api.services.compute.model.HealthCheck content) throws java.io.IOException { + Patch result = new Patch(project, healthCheck, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}"; + private static final String REST_PATH = "projects/{project}/global/healthChecks/{healthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern HTTPS_HEALTH_CHECK_PATTERN = + private final java.util.regex.Pattern HEALTH_CHECK_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the specified HttpsHealthCheck resource. + * Updates a HealthCheck resource in the specified project using the data included in the request. + * This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. * - * Create a request for the method "httpsHealthChecks.get". + * Create a request for the method "healthChecks.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param httpsHealthCheck Name of the HttpsHealthCheck resource to return. + * @param healthCheck Name of the HealthCheck resource to patch. + * @param content the {@link com.google.api.services.compute.model.HealthCheck} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String httpsHealthCheck) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HttpsHealthCheck.class); + protected Patch(java.lang.String project, java.lang.String healthCheck, com.google.api.services.compute.model.HealthCheck content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.httpsHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpsHealthCheck, "Required parameter httpsHealthCheck must be specified."); + this.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), - "Parameter httpsHealthCheck must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -53237,7 +51843,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public Patch setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -53247,141 +51853,200 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the HttpsHealthCheck resource to return. */ + /** Name of the HealthCheck resource to patch. */ @com.google.api.client.util.Key - private java.lang.String httpsHealthCheck; + private java.lang.String healthCheck; - /** Name of the HttpsHealthCheck resource to return. + /** Name of the HealthCheck resource to patch. */ - public java.lang.String getHttpsHealthCheck() { - return httpsHealthCheck; + public java.lang.String getHealthCheck() { + return healthCheck; } - /** Name of the HttpsHealthCheck resource to return. */ - public Get setHttpsHealthCheck(java.lang.String httpsHealthCheck) { + /** Name of the HealthCheck resource to patch. */ + public Patch setHealthCheck(java.lang.String healthCheck) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), - "Parameter httpsHealthCheck must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.httpsHealthCheck = httpsHealthCheck; + this.healthCheck = healthCheck; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Creates a HttpsHealthCheck resource in the specified project using the data included in the - * request. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "httpsHealthChecks.insert". + * Create a request for the method "healthChecks.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.HttpsHealthCheck} + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.HttpsHealthCheck content) throws java.io.IOException { - Insert result = new Insert(project, content); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks"; + private static final String REST_PATH = "projects/{project}/global/healthChecks/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Creates a HttpsHealthCheck resource in the specified project using the data included in the - * request. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "httpsHealthChecks.insert". + * Create a request for the method "healthChecks.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.HttpsHealthCheck} - * @since 1.13 + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.HttpsHealthCheck content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -53395,7 +52060,174 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + /** + * Updates a HealthCheck resource in the specified project using the data included in the request. + * + * Create a request for the method "healthChecks.update". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param healthCheck Name of the HealthCheck resource to update. + * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @return the request + */ + public Update update(java.lang.String project, java.lang.String healthCheck, com.google.api.services.compute.model.HealthCheck content) throws java.io.IOException { + Update result = new Update(project, healthCheck, content); + initialize(result); + return result; + } + + public class Update extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/healthChecks/{healthCheck}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern HEALTH_CHECK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Updates a HealthCheck resource in the specified project using the data included in the request. + * + * Create a request for the method "healthChecks.update". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param healthCheck Name of the HealthCheck resource to update. + * @param content the {@link com.google.api.services.compute.model.HealthCheck} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String healthCheck, com.google.api.services.compute.model.HealthCheck content) { + super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.healthCheck = com.google.api.client.util.Preconditions.checkNotNull(healthCheck, "Required parameter healthCheck must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Update setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -53405,6 +52237,27 @@ public Insert setProject(java.lang.String project) { return this; } + /** Name of the HealthCheck resource to update. */ + @com.google.api.client.util.Key + private java.lang.String healthCheck; + + /** Name of the HealthCheck resource to update. + */ + public java.lang.String getHealthCheck() { + return healthCheck; + } + + /** Name of the HealthCheck resource to update. */ + public Update setHealthCheck(java.lang.String healthCheck) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(HEALTH_CHECK_PATTERN.matcher(healthCheck).matches(), + "Parameter healthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.healthCheck = healthCheck; + return this; + } + /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -53449,61 +52302,103 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Insert setRequestId(java.lang.String requestId) { + public Update setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the Hosts collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Hosts.List request = compute.hosts().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Hosts hosts() { + return new Hosts(); + } + + /** + * The "hosts" collection of methods. + */ + public class Hosts { + /** - * Retrieves the list of HttpsHealthCheck resources available to the specified project. + * Retrieves information about the specified host. * - * Create a request for the method "httpsHealthChecks.list". + * Create a request for the method "hosts.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. + * @param project The project ID for this request. + * @param zone The name of the zone for this request, formatted as RFC1035. + * @param association The parent resource association for the Host. This field specifies the + hierarchical context (e.g., + * reservation, block, sub-block) when + accessing the host. For example, + * reservations/reservation_name, + * reservations/reservation_name/reservationBlocks/reservation_block_name or + reservations/res + * ervation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_su + * b_block_name. + * @param host The name of the host, formatted as RFC1035 or a resource ID + number. * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + public Get get(java.lang.String project, java.lang.String zone, java.lang.String association, java.lang.String host) throws java.io.IOException { + Get result = new Get(project, zone, association, host); initialize(result); return result; } - public class List extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks"; + public class Get extends ComputeRequest { - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private static final String REST_PATH = "projects/{project}/zones/{zone}/{association}/hosts/{host}"; /** - * Retrieves the list of HttpsHealthCheck resources available to the specified project. + * Retrieves information about the specified host. * - * Create a request for the method "httpsHealthChecks.list". + * Create a request for the method "hosts.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * 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 project The project ID for this request. + * @param zone The name of the zone for this request, formatted as RFC1035. + * @param association The parent resource association for the Host. This field specifies the + hierarchical context (e.g., + * reservation, block, sub-block) when + accessing the host. For example, + * reservations/reservation_name, + * reservations/reservation_name/reservationBlocks/reservation_block_name or + reservations/res + * ervation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_su + * b_block_name. + * @param host The name of the host, formatted as RFC1035 or a resource ID + number. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HttpsHealthCheckList.class); + protected Get(java.lang.String project, java.lang.String zone, java.lang.String association, java.lang.String host) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Host.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.association = com.google.api.client.util.Preconditions.checkNotNull(association, "Required parameter association must be specified."); + this.host = com.google.api.client.util.Preconditions.checkNotNull(host, "Required parameter host must be specified."); } @Override @@ -53517,147 +52412,636 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** The project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** The project ID for this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public 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])?))"); - } + /** The project ID for this request. */ + public Get setProject(java.lang.String project) { this.project = project; return this; } + /** The name of the zone for this request, formatted as RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request, formatted as RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request, formatted as RFC1035. */ + public Get setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. + * The parent resource association for the Host. This field specifies the hierarchical context + * (e.g., reservation, block, sub-block) when accessing the host. For example, + * reservations/reservation_name, + * reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/rese + * rvation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_ + * block_name. */ @com.google.api.client.util.Key - private java.lang.String filter; + private java.lang.String association; - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. + /** The parent resource association for the Host. This field specifies the hierarchical context (e.g., + reservation, block, sub-block) when accessing the host. For example, reservations/reservation_name, + reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/reservation_ + name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_block_name. + */ + public java.lang.String getAssociation() { + return association; + } - 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 parent resource association for the Host. This field specifies the hierarchical context + * (e.g., reservation, block, sub-block) when accessing the host. For example, + * reservations/reservation_name, + * reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/rese + * rvation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_ + * block_name. + */ + public Get setAssociation(java.lang.String association) { + this.association = association; + return this; + } - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + /** + * The name of the host, formatted as RFC1035 or a resource ID number. + */ + @com.google.api.client.util.Key + private java.lang.String host; - 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:* ``` + /** The name of the host, formatted as RFC1035 or a resource ID number. + */ + public java.lang.String getHost() { + return host; + } - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + /** + * The name of the host, formatted as RFC1035 or a resource ID number. + */ + public Get setHost(java.lang.String host) { + this.host = host; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Allows customers to get SBOM versions of a host. + * + * Create a request for the method "hosts.getVersion". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetVersion#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Zone name should conform to RFC1035. + * @param association The parent resource association for the Host. This field specifies the + hierarchical context (e.g., + * reservation, block, sub-block) when + accessing the host. + * @param host The name of the host, formatted as RFC1035 or a resource ID + number. + * @param content the {@link com.google.api.services.compute.model.HostsGetVersionRequest} + * @return the request + */ + public GetVersion getVersion(java.lang.String project, java.lang.String zone, java.lang.String association, java.lang.String host, com.google.api.services.compute.model.HostsGetVersionRequest content) throws java.io.IOException { + GetVersion result = new GetVersion(project, zone, association, host, content); + initialize(result); + return result; + } + + public class GetVersion extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{association}/hosts/{host}/getVersion"; + + /** + * Allows customers to get SBOM versions of a host. + * + * Create a request for the method "hosts.getVersion". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetVersion#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. Zone name should conform to RFC1035. + * @param association The parent resource association for the Host. This field specifies the + hierarchical context (e.g., + * reservation, block, sub-block) when + accessing the host. + * @param host The name of the host, formatted as RFC1035 or a resource ID + number. + * @param content the {@link com.google.api.services.compute.model.HostsGetVersionRequest} + * @since 1.13 + */ + protected GetVersion(java.lang.String project, java.lang.String zone, java.lang.String association, java.lang.String host, com.google.api.services.compute.model.HostsGetVersionRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.association = com.google.api.client.util.Preconditions.checkNotNull(association, "Required parameter association must be specified."); + this.host = com.google.api.client.util.Preconditions.checkNotNull(host, "Required parameter host must be specified."); + } + + @Override + public GetVersion set$Xgafv(java.lang.String $Xgafv) { + return (GetVersion) super.set$Xgafv($Xgafv); + } + + @Override + public GetVersion setAccessToken(java.lang.String accessToken) { + return (GetVersion) super.setAccessToken(accessToken); + } + + @Override + public GetVersion setAlt(java.lang.String alt) { + return (GetVersion) super.setAlt(alt); + } + + @Override + public GetVersion setCallback(java.lang.String callback) { + return (GetVersion) super.setCallback(callback); + } + + @Override + public GetVersion setFields(java.lang.String fields) { + return (GetVersion) super.setFields(fields); + } + + @Override + public GetVersion setKey(java.lang.String key) { + return (GetVersion) super.setKey(key); + } + + @Override + public GetVersion setOauthToken(java.lang.String oauthToken) { + return (GetVersion) super.setOauthToken(oauthToken); + } + + @Override + public GetVersion setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetVersion) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetVersion setQuotaUser(java.lang.String quotaUser) { + return (GetVersion) super.setQuotaUser(quotaUser); + } + + @Override + public GetVersion setUploadType(java.lang.String uploadType) { + return (GetVersion) super.setUploadType(uploadType); + } + + @Override + public GetVersion setUploadProtocol(java.lang.String uploadProtocol) { + return (GetVersion) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetVersion setUserIp(java.lang.String userIp) { + return (GetVersion) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public GetVersion setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Name of the zone for this request. Zone name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** Name of the zone for this request. Zone name should conform to RFC1035. */ + public GetVersion setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The parent resource association for the Host. This field specifies the hierarchical context + * (e.g., reservation, block, sub-block) when accessing the host. + */ + @com.google.api.client.util.Key + private java.lang.String association; + + /** The parent resource association for the Host. This field specifies the hierarchical context (e.g., + reservation, block, sub-block) when accessing the host. + */ + public java.lang.String getAssociation() { + return association; + } + + /** + * The parent resource association for the Host. This field specifies the hierarchical context + * (e.g., reservation, block, sub-block) when accessing the host. + */ + public GetVersion setAssociation(java.lang.String association) { + this.association = association; + return this; + } + + /** + * The name of the host, formatted as RFC1035 or a resource ID number. + */ + @com.google.api.client.util.Key + private java.lang.String host; + + /** The name of the host, formatted as RFC1035 or a resource ID number. + */ + public java.lang.String getHost() { + return host; + } + + /** + * The name of the host, formatted as RFC1035 or a resource ID number. + */ + public GetVersion setHost(java.lang.String host) { + this.host = host; + 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. + */ + @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. + */ + 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. + */ + public GetVersion setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public GetVersion set(String parameterName, Object value) { + return (GetVersion) super.set(parameterName, value); + } + } + /** + * Retrieves a list of hosts. + * + * Create a request for the method "hosts.list". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param project The project ID for this request. + * @param zone The name of the zone for this request, formatted as RFC1035. + * @param association The parent resource association for the Host. This field specifies the + hierarchical context (e.g., + * reservation, block, sub-block) when + accessing the host. For example, + * reservations/reservation_name, + * reservations/reservation_name/reservationBlocks/reservation_block_name or + reservations/res + * ervation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_su + * b_block_name. + * @return the request + */ + public List list(java.lang.String project, java.lang.String zone, java.lang.String association) throws java.io.IOException { + List result = new List(project, zone, association); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{association}/hosts"; + + /** + * Retrieves a list of hosts. + * + * Create a request for the method "hosts.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

+ * + * @param project The project ID for this request. + * @param zone The name of the zone for this request, formatted as RFC1035. + * @param association The parent resource association for the Host. This field specifies the + hierarchical context (e.g., + * reservation, block, sub-block) when + accessing the host. For example, + * reservations/reservation_name, + * reservations/reservation_name/reservationBlocks/reservation_block_name or + reservations/res + * ervation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_su + * b_block_name. + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String zone, java.lang.String association) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HostsListResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.association = com.google.api.client.util.Preconditions.checkNotNull(association, "Required parameter association must be specified."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); + } + + /** The project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** The project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** The project ID for this request. */ + public List setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** The name of the zone for this request, formatted as RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request, formatted as RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request, formatted as RFC1035. */ + public List setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The parent resource association for the Host. This field specifies the hierarchical context + * (e.g., reservation, block, sub-block) when accessing the host. For example, + * reservations/reservation_name, + * reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/rese + * rvation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_ + * block_name. + */ + @com.google.api.client.util.Key + private java.lang.String association; + + /** The parent resource association for the Host. This field specifies the hierarchical context (e.g., + reservation, block, sub-block) when accessing the host. For example, reservations/reservation_name, + reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/reservation_ + name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_block_name. + */ + public java.lang.String getAssociation() { + return association; + } + + /** + * The parent resource association for the Host. This field specifies the hierarchical context + * (e.g., reservation, block, sub-block) when accessing the host. For example, + * reservations/reservation_name, + * reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/rese + * rvation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_ + * block_name. + */ + public List setAssociation(java.lang.String association) { + this.association = association; + 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. @@ -53866,128 +53250,145 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } - /** - * Updates a HttpsHealthCheck resource in the specified project using the data included in the - * request. This method supportsPATCH semantics and uses theJSON merge patch format and processing - * rules. - * - * Create a request for the method "httpsHealthChecks.patch". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param httpsHealthCheck Name of the HttpsHealthCheck resource to patch. - * @param content the {@link com.google.api.services.compute.model.HttpsHealthCheck} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String httpsHealthCheck, com.google.api.services.compute.model.HttpsHealthCheck content) throws java.io.IOException { - Patch result = new Patch(project, httpsHealthCheck, content); - initialize(result); + + } + + /** + * An accessor for creating requests from the HttpHealthChecks collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.HttpHealthChecks.List request = compute.httpHealthChecks().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public HttpHealthChecks httpHealthChecks() { + return new HttpHealthChecks(); + } + + /** + * The "httpHealthChecks" collection of methods. + */ + public class HttpHealthChecks { + + /** + * Deletes the specified HttpHealthCheck resource. + * + * Create a request for the method "httpHealthChecks.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param httpHealthCheck Name of the HttpHealthCheck resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String httpHealthCheck) throws java.io.IOException { + Delete result = new Delete(project, httpHealthCheck); + initialize(result); return result; } - public class Patch extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}"; + private static final String REST_PATH = "projects/{project}/global/httpHealthChecks/{httpHealthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern HTTPS_HEALTH_CHECK_PATTERN = + private final java.util.regex.Pattern HTTP_HEALTH_CHECK_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Updates a HttpsHealthCheck resource in the specified project using the data included in the - * request. This method supportsPATCH semantics and uses theJSON merge patch format and processing - * rules. + * Deletes the specified HttpHealthCheck resource. * - * Create a request for the method "httpsHealthChecks.patch". + * Create a request for the method "httpHealthChecks.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param httpsHealthCheck Name of the HttpsHealthCheck resource to patch. - * @param content the {@link com.google.api.services.compute.model.HttpsHealthCheck} + * @param httpHealthCheck Name of the HttpHealthCheck resource to delete. * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String httpsHealthCheck, com.google.api.services.compute.model.HttpsHealthCheck content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Delete(java.lang.String project, java.lang.String httpHealthCheck) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.httpsHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpsHealthCheck, "Required parameter httpsHealthCheck must be specified."); + this.httpHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpHealthCheck, "Required parameter httpHealthCheck must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), - "Parameter httpsHealthCheck must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), + "Parameter httpHealthCheck must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -54001,7 +53402,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -54011,24 +53412,24 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the HttpsHealthCheck resource to patch. */ + /** Name of the HttpHealthCheck resource to delete. */ @com.google.api.client.util.Key - private java.lang.String httpsHealthCheck; + private java.lang.String httpHealthCheck; - /** Name of the HttpsHealthCheck resource to patch. + /** Name of the HttpHealthCheck resource to delete. */ - public java.lang.String getHttpsHealthCheck() { - return httpsHealthCheck; + public java.lang.String getHttpHealthCheck() { + return httpHealthCheck; } - /** Name of the HttpsHealthCheck resource to patch. */ - public Patch setHttpsHealthCheck(java.lang.String httpsHealthCheck) { + /** Name of the HttpHealthCheck resource to delete. */ + public Delete setHttpHealthCheck(java.lang.String httpHealthCheck) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), - "Parameter httpsHealthCheck must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), + "Parameter httpHealthCheck must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.httpsHealthCheck = httpsHealthCheck; + this.httpHealthCheck = httpHealthCheck; return this; } @@ -54076,135 +53477,142 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Patch setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Returns the specified HttpHealthCheck resource. * - * Create a request for the method "httpsHealthChecks.testIamPermissions". + * Create a request for the method "httpHealthChecks.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param httpHealthCheck Name of the HttpHealthCheck resource to return. * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); + public Get get(java.lang.String project, java.lang.String httpHealthCheck) throws java.io.IOException { + Get result = new Get(project, httpHealthCheck); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/httpHealthChecks/{httpHealthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern HTTP_HEALTH_CHECK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns permissions that a caller has on the specified resource. + * Returns the specified HttpHealthCheck resource. * - * Create a request for the method "httpsHealthChecks.testIamPermissions". + * Create a request for the method "httpHealthChecks.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param httpHealthCheck Name of the HttpHealthCheck resource to return. * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected Get(java.lang.String project, java.lang.String httpHealthCheck) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HttpHealthCheck.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.httpHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpHealthCheck, "Required parameter httpHealthCheck must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), + "Parameter httpHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) 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. */ @@ -54218,7 +53626,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions 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 " + @@ -54228,152 +53636,141 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the HttpHealthCheck resource to return. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String httpHealthCheck; - /** Name or id of the resource for this request. + /** Name of the HttpHealthCheck resource to return. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getHttpHealthCheck() { + return httpHealthCheck; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Name of the HttpHealthCheck resource to return. */ + public Get setHttpHealthCheck(java.lang.String httpHealthCheck) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), + "Parameter httpHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.httpHealthCheck = httpHealthCheck; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Updates a HttpsHealthCheck resource in the specified project using the data included in the + * Creates a HttpHealthCheck resource in the specified project using the data included in the * request. * - * Create a request for the method "httpsHealthChecks.update". + * Create a request for the method "httpHealthChecks.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param httpsHealthCheck Name of the HttpsHealthCheck resource to update. - * @param content the {@link com.google.api.services.compute.model.HttpsHealthCheck} + * @param content the {@link com.google.api.services.compute.model.HttpHealthCheck} * @return the request */ - public Update update(java.lang.String project, java.lang.String httpsHealthCheck, com.google.api.services.compute.model.HttpsHealthCheck content) throws java.io.IOException { - Update result = new Update(project, httpsHealthCheck, content); + public Insert insert(java.lang.String project, com.google.api.services.compute.model.HttpHealthCheck content) throws java.io.IOException { + Insert result = new Insert(project, content); initialize(result); return result; } - public class Update extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}"; + private static final String REST_PATH = "projects/{project}/global/httpHealthChecks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern HTTPS_HEALTH_CHECK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Updates a HttpsHealthCheck resource in the specified project using the data included in the + * Creates a HttpHealthCheck resource in the specified project using the data included in the * request. * - * Create a request for the method "httpsHealthChecks.update". + * Create a request for the method "httpHealthChecks.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param httpsHealthCheck Name of the HttpsHealthCheck resource to update. - * @param content the {@link com.google.api.services.compute.model.HttpsHealthCheck} + * @param content the {@link com.google.api.services.compute.model.HttpHealthCheck} * @since 1.13 */ - protected Update(java.lang.String project, java.lang.String httpsHealthCheck, com.google.api.services.compute.model.HttpsHealthCheck content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Insert(java.lang.String project, com.google.api.services.compute.model.HttpHealthCheck 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.httpsHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpsHealthCheck, "Required parameter httpsHealthCheck must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), - "Parameter httpsHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -54387,7 +53784,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -54397,27 +53794,6 @@ public Update setProject(java.lang.String project) { return this; } - /** Name of the HttpsHealthCheck resource to update. */ - @com.google.api.client.util.Key - private java.lang.String httpsHealthCheck; - - /** Name of the HttpsHealthCheck resource to update. - */ - public java.lang.String getHttpsHealthCheck() { - return httpsHealthCheck; - } - - /** Name of the HttpsHealthCheck resource to update. */ - public Update setHttpsHealthCheck(java.lang.String httpsHealthCheck) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), - "Parameter httpsHealthCheck must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.httpsHealthCheck = httpsHealthCheck; - 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 @@ -54462,108 +53838,61 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Update setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the ImageFamilyViews collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.ImageFamilyViews.List request = compute.imageFamilyViews().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public ImageFamilyViews imageFamilyViews() { - return new ImageFamilyViews(); - } - - /** - * The "imageFamilyViews" collection of methods. - */ - public class ImageFamilyViews { - /** - * Returns the latest image that is part of an image family, is not deprecated and is rolled out in - * the specified zone. + * Retrieves the list of HttpHealthCheck resources available to the specified project. * - * Create a request for the method "imageFamilyViews.get". + * Create a request for the method "httpHealthChecks.list". * * 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 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 family Name of the image family to search for. * @return the request */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String family) throws java.io.IOException { - Get result = new Get(project, zone, family); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class Get extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/imageFamilyViews/{family}"; + private static final String REST_PATH = "projects/{project}/global/httpHealthChecks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern FAMILY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Returns the latest image that is part of an image family, is not deprecated and is rolled out - * in the specified zone. + * Retrieves the list of HttpHealthCheck resources available to the specified project. * - * Create a request for the method "imageFamilyViews.get". + * Create a request for the method "httpHealthChecks.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param family Name of the image family to search for. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String family) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ImageFamilyView.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HttpHealthCheckList.class); this.project = com.google.api.client.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.family = com.google.api.client.util.Preconditions.checkNotNull(family, "Required parameter family must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FAMILY_PATTERN.matcher(family).matches(), - "Parameter family must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override @@ -54577,63 +53906,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -54647,436 +53976,6 @@ public java.lang.String getProject() { } /** 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 image family to search for. */ - @com.google.api.client.util.Key - private java.lang.String family; - - /** Name of the image family to search for. - */ - public java.lang.String getFamily() { - return family; - } - - /** Name of the image family to search for. */ - public Get setFamily(java.lang.String family) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FAMILY_PATTERN.matcher(family).matches(), - "Parameter family must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.family = family; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the ImageViews collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.ImageViews.List request = compute.imageViews().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public ImageViews imageViews() { - return new ImageViews(); - } - - /** - * The "imageViews" collection of methods. - */ - public class ImageViews { - - /** - * Returns the specified global Image resource by providing a regional context to read the metadata - * from the Global Clone in the region. - * - * Create a request for the method "imageViews.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 Required. Project ID for this request. - * @param region Required. Name of the region for this request. - * @param resourceId Name of the image resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String resourceId) throws java.io.IOException { - Get result = new Get(project, region, resourceId); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/imageViews/{resourceId}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_ID_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns the specified global Image resource by providing a regional context to read the - * metadata from the Global Clone in the region. - * - * Create a request for the method "imageViews.get". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

- * - * @param project Required. Project ID for this request. - * @param region Required. Name of the region for this request. - * @param resourceId Name of the image resource to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String resourceId) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ImageView.class); - this.project = com.google.api.client.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.resourceId = com.google.api.client.util.Preconditions.checkNotNull(resourceId, "Required parameter resourceId must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_ID_PATTERN.matcher(resourceId).matches(), - "Parameter resourceId 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); - } - - /** Required. Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Required. Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Required. 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; - } - - /** Required. Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Required. Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Required. Name of the region for this request. */ - public Get setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name of the image resource to return. */ - @com.google.api.client.util.Key - private java.lang.String resourceId; - - /** Name of the image resource to return. - */ - public java.lang.String getResourceId() { - return resourceId; - } - - /** Name of the image resource to return. */ - public Get setResourceId(java.lang.String resourceId) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_ID_PATTERN.matcher(resourceId).matches(), - "Parameter resourceId must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resourceId = resourceId; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Retrieves the list of global Image resources available to the project by providing a regional - * context to read the metadata from the Global Clone in the region. - * - * Create a request for the method "imageViews.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 Required. Project ID for this request. - * @param region Required. Name of the region for this request. - * @return the request - */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); - initialize(result); - return result; - } - - public class List extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/imageViews"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - /** - * Retrieves the list of global Image resources available to the project by providing a regional - * context to read the metadata from the Global Clone in the region. - * - * Create a request for the method "imageViews.list". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

- * - * @param project Required. Project ID for this request. - * @param region Required. Name of the region for this request. - * @since 1.13 - */ - protected List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ImageViewsListResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } - - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } - - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } - - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } - - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } - - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } - - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } - - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); - } - - /** Required. Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Required. Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Required. 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(), @@ -55087,27 +53986,6 @@ public List setProject(java.lang.String project) { return this; } - /** Required. Name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** Required. Name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** Required. Name of the region for this request. */ - public List setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - /** * A filter expression that filters resources listed in the response. Most Compute resources * support two types of filter expressions: expressions that support regular expressions and @@ -55377,145 +54255,128 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the Images collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Images.List request = compute.images().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Images images() { - return new Images(); - } - - /** - * The "images" collection of methods. - */ - public class Images { - /** - * Deletes the specified image. + * Updates a HttpHealthCheck resource in the specified project using the data included in the + * request. This method supportsPATCH semantics and uses theJSON merge patch format and processing + * rules. * - * Create a request for the method "images.delete". + * Create a request for the method "httpHealthChecks.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 image Name of the image resource to delete. + * @param httpHealthCheck Name of the HttpHealthCheck resource to patch. + * @param content the {@link com.google.api.services.compute.model.HttpHealthCheck} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String image) throws java.io.IOException { - Delete result = new Delete(project, image); + public Patch patch(java.lang.String project, java.lang.String httpHealthCheck, com.google.api.services.compute.model.HttpHealthCheck content) throws java.io.IOException { + Patch result = new Patch(project, httpHealthCheck, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/images/{image}"; + private static final String REST_PATH = "projects/{project}/global/httpHealthChecks/{httpHealthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern IMAGE_PATTERN = + private final java.util.regex.Pattern HTTP_HEALTH_CHECK_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified image. + * Updates a HttpHealthCheck resource in the specified project using the data included in the + * request. This method supportsPATCH semantics and uses theJSON merge patch format and processing + * rules. * - * Create a request for the method "images.delete". + * Create a request for the method "httpHealthChecks.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param image Name of the image resource to delete. + * @param httpHealthCheck Name of the HttpHealthCheck resource to patch. + * @param content the {@link com.google.api.services.compute.model.HttpHealthCheck} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String image) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Patch(java.lang.String project, java.lang.String httpHealthCheck, com.google.api.services.compute.model.HttpHealthCheck 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.image = com.google.api.client.util.Preconditions.checkNotNull(image, "Required parameter image must be specified."); + this.httpHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpHealthCheck, "Required parameter httpHealthCheck must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), - "Parameter image 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(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), + "Parameter httpHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -55529,7 +54390,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public Patch setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -55539,24 +54400,24 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the image resource to delete. */ + /** Name of the HttpHealthCheck resource to patch. */ @com.google.api.client.util.Key - private java.lang.String image; + private java.lang.String httpHealthCheck; - /** Name of the image resource to delete. + /** Name of the HttpHealthCheck resource to patch. */ - public java.lang.String getImage() { - return image; + public java.lang.String getHttpHealthCheck() { + return httpHealthCheck; } - /** Name of the image resource to delete. */ - public Delete setImage(java.lang.String image) { + /** Name of the HttpHealthCheck resource to patch. */ + public Patch setHttpHealthCheck(java.lang.String httpHealthCheck) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), - "Parameter image must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), + "Parameter httpHealthCheck must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.image = image; + this.httpHealthCheck = httpHealthCheck; return this; } @@ -55604,139 +54465,304 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Delete setRequestId(java.lang.String requestId) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Sets the deprecation status of an image. + * Returns permissions that a caller has on the specified resource. * - * If an empty request body is given, clears the deprecation status instead. + * Create a request for the method "httpHealthChecks.testIamPermissions". * - * Create a request for the method "images.deprecate". + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/httpHealthChecks/{resource}/testIamPermissions"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "httpHealthChecks.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + /** + * Updates a HttpHealthCheck resource in the specified project using the data included in the + * request. + * + * Create a request for the method "httpHealthChecks.update". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Deprecate#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param image Image name. - * @param content the {@link com.google.api.services.compute.model.DeprecationStatus} + * @param httpHealthCheck Name of the HttpHealthCheck resource to update. + * @param content the {@link com.google.api.services.compute.model.HttpHealthCheck} * @return the request */ - public Deprecate deprecate(java.lang.String project, java.lang.String image, com.google.api.services.compute.model.DeprecationStatus content) throws java.io.IOException { - Deprecate result = new Deprecate(project, image, content); + public Update update(java.lang.String project, java.lang.String httpHealthCheck, com.google.api.services.compute.model.HttpHealthCheck content) throws java.io.IOException { + Update result = new Update(project, httpHealthCheck, content); initialize(result); return result; } - public class Deprecate extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/images/{image}/deprecate"; + private static final String REST_PATH = "projects/{project}/global/httpHealthChecks/{httpHealthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern IMAGE_PATTERN = + private final java.util.regex.Pattern HTTP_HEALTH_CHECK_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Sets the deprecation status of an image. - * - * If an empty request body is given, clears the deprecation status instead. + * Updates a HttpHealthCheck resource in the specified project using the data included in the + * request. * - * Create a request for the method "images.deprecate". + * Create a request for the method "httpHealthChecks.update". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Deprecate#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param image Image name. - * @param content the {@link com.google.api.services.compute.model.DeprecationStatus} + * @param httpHealthCheck Name of the HttpHealthCheck resource to update. + * @param content the {@link com.google.api.services.compute.model.HttpHealthCheck} * @since 1.13 */ - protected Deprecate(java.lang.String project, java.lang.String image, com.google.api.services.compute.model.DeprecationStatus content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Update(java.lang.String project, java.lang.String httpHealthCheck, com.google.api.services.compute.model.HttpHealthCheck content) { + super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.image = com.google.api.client.util.Preconditions.checkNotNull(image, "Required parameter image must be specified."); + this.httpHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpHealthCheck, "Required parameter httpHealthCheck must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), - "Parameter image must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), + "Parameter httpHealthCheck must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Deprecate set$Xgafv(java.lang.String $Xgafv) { - return (Deprecate) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Deprecate setAccessToken(java.lang.String accessToken) { - return (Deprecate) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Deprecate setAlt(java.lang.String alt) { - return (Deprecate) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Deprecate setCallback(java.lang.String callback) { - return (Deprecate) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Deprecate setFields(java.lang.String fields) { - return (Deprecate) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Deprecate setKey(java.lang.String key) { - return (Deprecate) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Deprecate setOauthToken(java.lang.String oauthToken) { - return (Deprecate) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Deprecate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Deprecate) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Deprecate setQuotaUser(java.lang.String quotaUser) { - return (Deprecate) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Deprecate setUploadType(java.lang.String uploadType) { - return (Deprecate) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Deprecate setUploadProtocol(java.lang.String uploadProtocol) { - return (Deprecate) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public Deprecate setUserIp(java.lang.String userIp) { - return (Deprecate) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -55750,7 +54776,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Deprecate setProject(java.lang.String project) { + public Update setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -55760,24 +54786,24 @@ public Deprecate setProject(java.lang.String project) { return this; } - /** Image name. */ + /** Name of the HttpHealthCheck resource to update. */ @com.google.api.client.util.Key - private java.lang.String image; + private java.lang.String httpHealthCheck; - /** Image name. + /** Name of the HttpHealthCheck resource to update. */ - public java.lang.String getImage() { - return image; + public java.lang.String getHttpHealthCheck() { + return httpHealthCheck; } - /** Image name. */ - public Deprecate setImage(java.lang.String image) { + /** Name of the HttpHealthCheck resource to update. */ + public Update setHttpHealthCheck(java.lang.String httpHealthCheck) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), - "Parameter image must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(HTTP_HEALTH_CHECK_PATTERN.matcher(httpHealthCheck).matches(), + "Parameter httpHealthCheck must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.image = image; + this.httpHealthCheck = httpHealthCheck; return this; } @@ -55825,142 +54851,155 @@ 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 Deprecate setRequestId(java.lang.String requestId) { + public Update setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Deprecate set(String parameterName, Object value) { - return (Deprecate) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the HttpsHealthChecks collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.HttpsHealthChecks.List request = compute.httpsHealthChecks().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public HttpsHealthChecks httpsHealthChecks() { + return new HttpsHealthChecks(); + } + + /** + * The "httpsHealthChecks" collection of methods. + */ + public class HttpsHealthChecks { + /** - * Returns the specified image. + * Deletes the specified HttpsHealthCheck resource. * - * Create a request for the method "images.get". + * Create a request for the method "httpsHealthChecks.delete". * * 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 Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param image Name of the image resource to return. + * @param httpsHealthCheck Name of the HttpsHealthCheck resource to delete. * @return the request */ - public Get get(java.lang.String project, java.lang.String image) throws java.io.IOException { - Get result = new Get(project, image); + public Delete delete(java.lang.String project, java.lang.String httpsHealthCheck) throws java.io.IOException { + Delete result = new Delete(project, httpsHealthCheck); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/images/{image}"; + private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern IMAGE_PATTERN = + private final java.util.regex.Pattern HTTPS_HEALTH_CHECK_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the specified image. + * Deletes the specified HttpsHealthCheck resource. * - * Create a request for the method "images.get". + * Create a request for the method "httpsHealthChecks.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param image Name of the image resource to return. + * @param httpsHealthCheck Name of the HttpsHealthCheck resource to delete. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String image) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Image.class); + protected Delete(java.lang.String project, java.lang.String httpsHealthCheck) { + 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.image = com.google.api.client.util.Preconditions.checkNotNull(image, "Required parameter image must be specified."); + this.httpsHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpsHealthCheck, "Required parameter httpsHealthCheck must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), - "Parameter image must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), + "Parameter httpsHealthCheck must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -55974,7 +55013,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -55984,278 +55023,136 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the image resource to return. */ + /** Name of the HttpsHealthCheck resource to delete. */ @com.google.api.client.util.Key - private java.lang.String image; + private java.lang.String httpsHealthCheck; - /** Name of the image resource to return. + /** Name of the HttpsHealthCheck resource to delete. */ - public java.lang.String getImage() { - return image; + public java.lang.String getHttpsHealthCheck() { + return httpsHealthCheck; } - /** Name of the image resource to return. */ - public Get setImage(java.lang.String image) { + /** Name of the HttpsHealthCheck resource to delete. */ + public Delete setHttpsHealthCheck(java.lang.String httpsHealthCheck) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), - "Parameter image 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(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), + "Parameter httpsHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.image = image; + this.httpsHealthCheck = httpsHealthCheck; return this; } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Returns the latest image that is part of an image family and is not deprecated. For more - * information on image families, seePublic image families documentation. - * - * Create a request for the method "images.getFromFamily". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetFromFamily#execute()} method to invoke the remote operation. - * - * @param project The image project that the image belongs to. For example, to get a CentOS - image, specify centos- - * cloud as the image project. - * @param family Name of the image family to search for. - * @return the request - */ - public GetFromFamily getFromFamily(java.lang.String project, java.lang.String family) throws java.io.IOException { - GetFromFamily result = new GetFromFamily(project, family); - initialize(result); - return result; - } - - public class GetFromFamily extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/images/family/{family}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern FAMILY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Returns the latest image that is part of an image family and is not deprecated. For more - * information on image families, seePublic image families documentation. - * - * Create a request for the method "images.getFromFamily". + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetFromFamily#execute()} method to invoke the remote operation.

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

+ * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * @param project The image project that the image belongs to. For example, to get a CentOS - image, specify centos- - * cloud as the image project. - * @param family Name of the image family to search for. - * @since 1.13 + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - protected GetFromFamily(java.lang.String project, java.lang.String family) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Image.class); - this.project = com.google.api.client.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.family = com.google.api.client.util.Preconditions.checkNotNull(family, "Required parameter family must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FAMILY_PATTERN.matcher(family).matches(), - "Parameter family 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 GetFromFamily set$Xgafv(java.lang.String $Xgafv) { - return (GetFromFamily) super.set$Xgafv($Xgafv); - } - - @Override - public GetFromFamily setAccessToken(java.lang.String accessToken) { - return (GetFromFamily) super.setAccessToken(accessToken); - } - - @Override - public GetFromFamily setAlt(java.lang.String alt) { - return (GetFromFamily) super.setAlt(alt); - } - - @Override - public GetFromFamily setCallback(java.lang.String callback) { - return (GetFromFamily) super.setCallback(callback); - } - - @Override - public GetFromFamily setFields(java.lang.String fields) { - return (GetFromFamily) super.setFields(fields); - } - - @Override - public GetFromFamily setKey(java.lang.String key) { - return (GetFromFamily) super.setKey(key); - } - - @Override - public GetFromFamily setOauthToken(java.lang.String oauthToken) { - return (GetFromFamily) super.setOauthToken(oauthToken); - } - - @Override - public GetFromFamily setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetFromFamily) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetFromFamily setQuotaUser(java.lang.String quotaUser) { - return (GetFromFamily) super.setQuotaUser(quotaUser); - } - - @Override - public GetFromFamily setUploadType(java.lang.String uploadType) { - return (GetFromFamily) super.setUploadType(uploadType); - } - - @Override - public GetFromFamily setUploadProtocol(java.lang.String uploadProtocol) { - return (GetFromFamily) super.setUploadProtocol(uploadProtocol); - } + @com.google.api.client.util.Key + private java.lang.String requestId; - @Override - public GetFromFamily setUserIp(java.lang.String userIp) { - return (GetFromFamily) super.setUserIp(userIp); - } + /** An optional request ID to identify requests. Specify a unique 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 image project that the image belongs to. For example, to get a CentOS image, specify - * centos-cloud as the image project. - */ - @com.google.api.client.util.Key - private java.lang.String project; + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** The image project that the image belongs to. For example, to get a CentOS image, specify centos- - cloud as the image project. + 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 getProject() { - return project; + public java.lang.String getRequestId() { + return requestId; } /** - * The image project that the image belongs to. For example, to get a CentOS image, specify - * centos-cloud as the image project. - */ - public GetFromFamily setProject(java.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 image family to search for. */ - @com.google.api.client.util.Key - private java.lang.String family; - - /** Name of the image family to search for. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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 getFamily() { - return family; - } - - /** Name of the image family to search for. */ - public GetFromFamily setFamily(java.lang.String family) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FAMILY_PATTERN.matcher(family).matches(), - "Parameter family must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.family = family; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetFromFamily set(String parameterName, Object value) { - return (GetFromFamily) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Returns the specified HttpsHealthCheck resource. * - * Create a request for the method "images.getIamPolicy". + * Create a request for the method "httpsHealthChecks.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. + * @param httpsHealthCheck Name of the HttpsHealthCheck resource to return. * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); + public Get get(java.lang.String project, java.lang.String httpsHealthCheck) throws java.io.IOException { + Get result = new Get(project, httpsHealthCheck); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/images/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern HTTPS_HEALTH_CHECK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. + * Returns the specified HttpsHealthCheck resource. * - * Create a request for the method "images.getIamPolicy". + * Create a request for the method "httpsHealthChecks.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. + * @param httpsHealthCheck Name of the HttpsHealthCheck resource to return. * @since 1.13 */ - protected GetIamPolicy(java.lang.String project, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + protected Get(java.lang.String project, java.lang.String httpsHealthCheck) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HttpsHealthCheck.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.httpsHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpsHealthCheck, "Required parameter httpsHealthCheck must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), + "Parameter httpsHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -56270,63 +55167,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -56340,7 +55237,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -56350,61 +55247,46 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the HttpsHealthCheck resource to return. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String httpsHealthCheck; - /** Name or id of the resource for this request. + /** Name of the HttpsHealthCheck resource to return. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getHttpsHealthCheck() { + return httpsHealthCheck; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** Name of the HttpsHealthCheck resource to return. */ + public Get setHttpsHealthCheck(java.lang.String httpsHealthCheck) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), + "Parameter httpsHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; - return this; - } - - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + this.httpsHealthCheck = httpsHealthCheck; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Creates an image in the specified project using the data included in the request. + * Creates a HttpsHealthCheck resource in the specified project using the data included in the + * request. * - * Create a request for the method "images.insert". + * Create a request for the method "httpsHealthChecks.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.Image} + * @param content the {@link com.google.api.services.compute.model.HttpsHealthCheck} * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.Image content) throws java.io.IOException { + public Insert insert(java.lang.String project, com.google.api.services.compute.model.HttpsHealthCheck content) throws java.io.IOException { Insert result = new Insert(project, content); initialize(result); return result; @@ -56412,15 +55294,16 @@ public Insert insert(java.lang.String project, com.google.api.services.compute.m public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/images"; + private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Creates an image in the specified project using the data included in the request. + * Creates a HttpsHealthCheck resource in the specified project using the data included in the + * request. * - * Create a request for the method "images.insert". + * Create a request for the method "httpsHealthChecks.insert". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link @@ -56428,10 +55311,10 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.Image} + * @param content the {@link com.google.api.services.compute.model.HttpsHealthCheck} * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.Image content) { + protected Insert(java.lang.String project, com.google.api.services.compute.model.HttpsHealthCheck 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()) { @@ -56522,22 +55405,6 @@ public Insert setProject(java.lang.String project) { return this; } - /** Force image creation if true. */ - @com.google.api.client.util.Key - private java.lang.Boolean forceCreate; - - /** Force image creation if true. - */ - public java.lang.Boolean getForceCreate() { - return forceCreate; - } - - /** Force image creation if true. */ - public Insert setForceCreate(java.lang.Boolean forceCreate) { - this.forceCreate = forceCreate; - 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 @@ -56593,13 +55460,9 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves the list of custom images available to the specified project. Custom images are images - * you create that belong to your project. This method does not get any images that belong to other - * projects, including publicly-available images, like Debian 8. If you want to get a list of - * publicly-available images, use this method to make a request to the respective image project, - * such as debian-cloud or windows-cloud. + * Retrieves the list of HttpsHealthCheck resources available to the specified project. * - * Create a request for the method "images.list". + * Create a request for the method "httpsHealthChecks.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. @@ -56613,24 +55476,17 @@ public List list(java.lang.String project) throws java.io.IOException { return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/images"; + private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * Retrieves the list of custom images available to the specified project. Custom images are - * images you create that belong to your project. This method does not get any images that belong - * to other projects, including publicly-available images, like Debian 8. If you want to get a - * list of publicly-available images, use this method to make a request to the respective image - * project, such as debian-cloud or windows-cloud. + * Retrieves the list of HttpsHealthCheck resources available to the specified project. * - * Create a request for the method "images.list". + * Create a request for the method "httpsHealthChecks.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link @@ -56641,7 +55497,7 @@ public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/images/{image}"; + private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern IMAGE_PATTERN = + private final java.util.regex.Pattern HTTPS_HEALTH_CHECK_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Patches the specified image with the data included in the request. Only the following fields - * can be modified: family, description, deprecation status. + * Updates a HttpsHealthCheck resource in the specified project using the data included in the + * request. This method supportsPATCH semantics and uses theJSON merge patch format and processing + * rules. * - * Create a request for the method "images.patch". + * Create a request for the method "httpsHealthChecks.patch". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link @@ -57073,11 +55910,11 @@ public class Patch extends ComputeRequest * * @param project Project ID for this request. - * @param image Name of the image resource to patch. - * @param content the {@link com.google.api.services.compute.model.Image} + * @param httpsHealthCheck Name of the HttpsHealthCheck resource to patch. + * @param content the {@link com.google.api.services.compute.model.HttpsHealthCheck} * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String image, com.google.api.services.compute.model.Image content) { + protected Patch(java.lang.String project, java.lang.String httpsHealthCheck, com.google.api.services.compute.model.HttpsHealthCheck 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()) { @@ -57085,10 +55922,10 @@ protected Patch(java.lang.String project, java.lang.String image, com.google.api "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.image = com.google.api.client.util.Preconditions.checkNotNull(image, "Required parameter image must be specified."); + this.httpsHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpsHealthCheck, "Required parameter httpsHealthCheck must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), - "Parameter image must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), + "Parameter httpsHealthCheck must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -57174,24 +56011,24 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the image resource to patch. */ + /** Name of the HttpsHealthCheck resource to patch. */ @com.google.api.client.util.Key - private java.lang.String image; + private java.lang.String httpsHealthCheck; - /** Name of the image resource to patch. + /** Name of the HttpsHealthCheck resource to patch. */ - public java.lang.String getImage() { - return image; + public java.lang.String getHttpsHealthCheck() { + return httpsHealthCheck; } - /** Name of the image resource to patch. */ - public Patch setImage(java.lang.String image) { + /** Name of the HttpsHealthCheck resource to patch. */ + public Patch setHttpsHealthCheck(java.lang.String httpsHealthCheck) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), - "Parameter image must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), + "Parameter httpsHealthCheck must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.image = image; + this.httpsHealthCheck = httpsHealthCheck; return this; } @@ -57250,27 +56087,27 @@ public Patch set(String parameterName, Object value) { } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "images.setIamPolicy". + * Create a request for the method "httpsHealthChecks.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, resource, content); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); initialize(result); return result; } - public class SetIamPolicy extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/images/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -57279,23 +56116,23 @@ public class SetIamPolicy extends ComputeRequest - * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

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

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

* * @param project Project ID for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -57311,63 +56148,63 @@ protected SetIamPolicy(java.lang.String project, java.lang.String resource, com. } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -57381,7 +56218,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -57402,7 +56239,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + @@ -57413,131 +56250,130 @@ public SetIamPolicy setResource(java.lang.String resource) { } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } /** - * Sets the labels on an image. To learn more about labels, read theLabeling Resources - * documentation. + * Updates a HttpsHealthCheck resource in the specified project using the data included in the + * request. * - * Create a request for the method "images.setLabels". + * Create a request for the method "httpsHealthChecks.update". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @param httpsHealthCheck Name of the HttpsHealthCheck resource to update. + * @param content the {@link com.google.api.services.compute.model.HttpsHealthCheck} * @return the request */ - public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, resource, content); + public Update update(java.lang.String project, java.lang.String httpsHealthCheck, com.google.api.services.compute.model.HttpsHealthCheck content) throws java.io.IOException { + Update result = new Update(project, httpsHealthCheck, content); initialize(result); return result; } - public class SetLabels extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/images/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern HTTPS_HEALTH_CHECK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Sets the labels on an image. To learn more about labels, read theLabeling Resources - * documentation. + * Updates a HttpsHealthCheck resource in the specified project using the data included in the + * request. * - * Create a request for the method "images.setLabels". + * Create a request for the method "httpsHealthChecks.update". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @param httpsHealthCheck Name of the HttpsHealthCheck resource to update. + * @param content the {@link com.google.api.services.compute.model.HttpsHealthCheck} * @since 1.13 */ - protected SetLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Update(java.lang.String project, java.lang.String httpsHealthCheck, com.google.api.services.compute.model.HttpsHealthCheck content) { + super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.httpsHealthCheck = com.google.api.client.util.Preconditions.checkNotNull(httpsHealthCheck, "Required parameter httpsHealthCheck must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), + "Parameter httpsHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -57551,7 +56387,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + public Update setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -57561,151 +56397,243 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the HttpsHealthCheck resource to update. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String httpsHealthCheck; - /** Name or id of the resource for this request. + /** Name of the HttpsHealthCheck resource to update. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getHttpsHealthCheck() { + return httpsHealthCheck; } - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { + /** Name of the HttpsHealthCheck resource to update. */ + public Update setHttpsHealthCheck(java.lang.String httpsHealthCheck) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(HTTPS_HEALTH_CHECK_PATTERN.matcher(httpsHealthCheck).matches(), + "Parameter httpsHealthCheck must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.httpsHealthCheck = httpsHealthCheck; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the ImageFamilyViews collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.ImageFamilyViews.List request = compute.imageFamilyViews().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public ImageFamilyViews imageFamilyViews() { + return new ImageFamilyViews(); + } + + /** + * The "imageFamilyViews" collection of methods. + */ + public class ImageFamilyViews { + /** - * Returns permissions that a caller has on the specified resource. + * Returns the latest image that is part of an image family, is not deprecated and is rolled out in + * the specified zone. * - * Create a request for the method "images.testIamPermissions". + * Create a request for the method "imageFamilyViews.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param zone The name of the zone for this request. + * @param family Name of the image family to search for. * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); + public Get get(java.lang.String project, java.lang.String zone, java.lang.String family) throws java.io.IOException { + Get result = new Get(project, zone, family); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/images/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/imageFamilyViews/{family}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern FAMILY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns permissions that a caller has on the specified resource. + * Returns the latest image that is part of an image family, is not deprecated and is rolled out + * in the specified zone. * - * Create a request for the method "images.testIamPermissions". + * Create a request for the method "imageFamilyViews.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param zone The name of the zone for this request. + * @param family Name of the image family to search for. * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected Get(java.lang.String project, java.lang.String zone, java.lang.String family) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ImageFamilyView.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.family = com.google.api.client.util.Preconditions.checkNotNull(family, "Required parameter family must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FAMILY_PATTERN.matcher(family).matches(), + "Parameter family must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) 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. */ @@ -57719,7 +56647,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions 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 " + @@ -57729,193 +56657,227 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String zone; - /** Name or id of the resource for this request. + /** The name of the zone for this request. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getZone() { + return zone; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** The name of the zone for this request. */ + public Get setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.resource = resource; + this.zone = zone; + return this; + } + + /** Name of the image family to search for. */ + @com.google.api.client.util.Key + private java.lang.String family; + + /** Name of the image family to search for. + */ + public java.lang.String getFamily() { + return family; + } + + /** Name of the image family to search for. */ + public Get setFamily(java.lang.String family) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FAMILY_PATTERN.matcher(family).matches(), + "Parameter family must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.family = family; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the InstanceGroupManagerResizeRequests collection. + * An accessor for creating requests from the ImageViews collection. * *

The typical use is:

*
    *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InstanceGroupManagerResizeRequests.List request = compute.instanceGroupManagerResizeRequests().list(parameters ...)}
+   *   {@code Compute.ImageViews.List request = compute.imageViews().list(parameters ...)}
    * 
* * @return the resource collection */ - public InstanceGroupManagerResizeRequests instanceGroupManagerResizeRequests() { - return new InstanceGroupManagerResizeRequests(); + public ImageViews imageViews() { + return new ImageViews(); } /** - * The "instanceGroupManagerResizeRequests" collection of methods. + * The "imageViews" collection of methods. */ - public class InstanceGroupManagerResizeRequests { + public class ImageViews { /** - * Cancels the specified resize request and removes it from the queue. Cancelled resize request does - * no longer wait for the resources to be provisioned. Cancel is only possible for requests that are - * accepted in the queue. + * Returns the specified global ImageView resource, with a regional context. * - * Create a request for the method "instanceGroupManagerResizeRequests.cancel". + * Create a request for the method "imageViews.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. The name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - The name should conform to RFC1035 or be a resource ID. - * @param resizeRequest The name of the resize request to cancel. - The name should conform to RFC1035 or be a resource ID. + * @param project Required. Project ID for this request. + * @param region Required. Name of the region for this request. + * @param resourceId Name of the image resource to return. * @return the request */ - public Cancel cancel(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.String resizeRequest) throws java.io.IOException { - Cancel result = new Cancel(project, zone, instanceGroupManager, resizeRequest); + public Get get(java.lang.String project, java.lang.String region, java.lang.String resourceId) throws java.io.IOException { + Get result = new Get(project, region, resourceId); initialize(result); return result; } - public class Cancel extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel"; + private static final String REST_PATH = "projects/{project}/regions/{region}/imageViews/{resourceId}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_ID_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Cancels the specified resize request and removes it from the queue. Cancelled resize request - * does no longer wait for the resources to be provisioned. Cancel is only possible for requests - * that are accepted in the queue. + * Returns the specified global ImageView resource, with a regional context. * - * Create a request for the method "instanceGroupManagerResizeRequests.cancel". + * Create a request for the method "imageViews.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.

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

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

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

* - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. The name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - The name should conform to RFC1035 or be a resource ID. - * @param resizeRequest The name of the resize request to cancel. - The name should conform to RFC1035 or be a resource ID. + * @param project Required. Project ID for this request. + * @param region Required. Name of the region for this request. + * @param resourceId Name of the image resource to return. * @since 1.13 */ - protected Cancel(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.String resizeRequest) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Get(java.lang.String project, java.lang.String region, java.lang.String resourceId) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ImageView.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - this.resizeRequest = com.google.api.client.util.Preconditions.checkNotNull(resizeRequest, "Required parameter resizeRequest must be specified."); + 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.resourceId = com.google.api.client.util.Preconditions.checkNotNull(resourceId, "Required parameter resourceId must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_ID_PATTERN.matcher(resourceId).matches(), + "Parameter resourceId must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Cancel setUserIp(java.lang.String userIp) { - return (Cancel) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - /** Project ID for this request. */ + @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); + } + + /** Required. Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Required. Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public Cancel setProject(java.lang.String project) { + /** Required. 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 " + @@ -57925,263 +56887,193 @@ public Cancel setProject(java.lang.String project) { return this; } - /** - * The name of thezone where the managed instance group is located. The name should conform to - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. The name should conform to - RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. The name should conform to - * RFC1035. - */ - public Cancel setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the managed instance group. The name should conform to RFC1035 or be a resource - * ID. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. The name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** - * The name of the managed instance group. The name should conform to RFC1035 or be a resource - * ID. - */ - public Cancel setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - /** - * The name of the resize request to cancel. The name should conform to RFC1035 or be a - * resource ID. - */ + /** Required. Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String resizeRequest; + private java.lang.String region; - /** The name of the resize request to cancel. The name should conform to RFC1035 or be a resource ID. + /** Required. Name of the region for this request. */ - public java.lang.String getResizeRequest() { - return resizeRequest; + public java.lang.String getRegion() { + return region; } - /** - * The name of the resize request to cancel. The name should conform to RFC1035 or be a - * resource ID. - */ - public Cancel setResizeRequest(java.lang.String resizeRequest) { - this.resizeRequest = resizeRequest; + /** Required. Name of the region for this request. */ + public Get setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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 image resource to return. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String resourceId; - 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 image resource to return. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResourceId() { + return resourceId; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public Cancel setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Name of the image resource to return. */ + public Get setResourceId(java.lang.String resourceId) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_ID_PATTERN.matcher(resourceId).matches(), + "Parameter resourceId must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resourceId = resourceId; return this; } @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Deletes the specified, inactive resize request. Requests that are still active cannot be deleted. - * Deleting request does not delete instances that were provisioned previously. + * Returns a list of global ImageView resources, with a regional context. * - * Create a request for the method "instanceGroupManagerResizeRequests.delete". + * Create a request for the method "imageViews.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. The name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - The name should conform to RFC1035 or be a resource ID. - * @param resizeRequest The name of the resize request to delete. - The name should conform to RFC1035 or be a resource ID. + * @param project Required. Project ID for this request. + * @param region Required. Name of the region for this request. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.String resizeRequest) throws java.io.IOException { - Delete result = new Delete(project, zone, instanceGroupManager, resizeRequest); + public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { + List result = new List(project, region); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/imageViews"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Deletes the specified, inactive resize request. Requests that are still active cannot be - * deleted. Deleting request does not delete instances that were provisioned previously. + * Returns a list of global ImageView resources, with a regional context. * - * Create a request for the method "instanceGroupManagerResizeRequests.delete". + * Create a request for the method "imageViews.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

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

* - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. The name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - The name should conform to RFC1035 or be a resource ID. - * @param resizeRequest The name of the resize request to delete. - The name should conform to RFC1035 or be a resource ID. + * @param project Required. Project ID for this request. + * @param region Required. Name of the region for this request. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.String resizeRequest) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected List(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ImageViewsListResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - this.resizeRequest = com.google.api.client.util.Preconditions.checkNotNull(resizeRequest, "Required parameter resizeRequest must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } - /** Project ID for this request. */ + @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); + } + + /** Required. Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Required. Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + /** Required. 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 " + @@ -58191,259 +57083,435 @@ public Delete setProject(java.lang.String project) { return this; } - /** - * The name of thezone where the managed instance group is located. The name should conform to - * RFC1035. - */ + /** Required. Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of thezone where the managed instance group is located. The name should conform to - RFC1035. + /** Required. Name of the region for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** - * The name of thezone where the managed instance group is located. The name should conform to - * RFC1035. - */ - public Delete setZone(java.lang.String zone) { - this.zone = zone; + /** Required. Name of the region for this request. */ + public List setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } /** - * The name of the managed instance group. The name should conform to RFC1035 or be a resource - * ID. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String filter; - /** The name of the managed instance group. The name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - /** - * The name of the managed instance group. The name should conform to RFC1035 or be a resource - * ID. - */ - public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - /** - * The name of the resize request to delete. The name should conform to RFC1035 or be a - * resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String resizeRequest; + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - /** The name of the resize request to delete. The name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getResizeRequest() { - return resizeRequest; - } + 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:* ``` - /** - * The name of the resize request to delete. The name should conform to RFC1035 or be a - * resource ID. + 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 Delete setResizeRequest(java.lang.String resizeRequest) { - this.resizeRequest = resizeRequest; - return this; + 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. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * 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.String requestId; + private java.lang.Long maxResults; - /** An optional request ID to identify requests. Specify a unique 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`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** + * 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; + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** + * 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 getRequestId() { - return requestId; + @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; } /** - * An optional request ID to identify requests. Specify a unique 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 List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the Images collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Images.List request = compute.images().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Images images() { + return new Images(); + } + + /** + * The "images" collection of methods. + */ + public class Images { + /** - * Returns all of the details about the specified resize request. + * Deletes the specified image. * - * Create a request for the method "instanceGroupManagerResizeRequests.get". + * Create a request for the method "images.delete". * * 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 Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone Name of the href="/compute/docs/regions-zones/#available">zone - scoping this request. Name should - * conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - Name should conform to RFC1035 or be a resource ID. - * @param resizeRequest The name of the resize request. - Name should conform to RFC1035 or be a resource ID. + * @param image Name of the image resource to delete. * @return the request */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.String resizeRequest) throws java.io.IOException { - Get result = new Get(project, zone, instanceGroupManager, resizeRequest); + public Delete delete(java.lang.String project, java.lang.String image) throws java.io.IOException { + Delete result = new Delete(project, image); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}"; + private static final String REST_PATH = "projects/{project}/global/images/{image}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern IMAGE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Returns all of the details about the specified resize request. + * Deletes the specified image. * - * Create a request for the method "instanceGroupManagerResizeRequests.get". + * Create a request for the method "images.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param zone Name of the href="/compute/docs/regions-zones/#available">zone - scoping this request. Name should - * conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - Name should conform to RFC1035 or be a resource ID. - * @param resizeRequest The name of the resize request. - Name should conform to RFC1035 or be a resource ID. + * @param image Name of the image resource to delete. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.String resizeRequest) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManagerResizeRequest.class); + protected Delete(java.lang.String project, java.lang.String image) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - this.resizeRequest = com.google.api.client.util.Preconditions.checkNotNull(resizeRequest, "Required parameter resizeRequest must be specified."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.image = com.google.api.client.util.Preconditions.checkNotNull(image, "Required parameter image must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), + "Parameter image must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -58457,7 +57525,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -58467,130 +57535,131 @@ public Get setProject(java.lang.String project) { return this; } - /** - * Name of the href="/compute/docs/regions-zones/#available">zone scoping this request. Name - * should conform to RFC1035. - */ + /** Name of the image resource to delete. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String image; - /** Name of the href="/compute/docs/regions-zones/#available">zone scoping this request. Name should - conform to RFC1035. + /** Name of the image resource to delete. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getImage() { + return image; } - /** - * Name of the href="/compute/docs/regions-zones/#available">zone scoping this request. Name - * should conform to RFC1035. - */ - public Get setZone(java.lang.String zone) { - this.zone = zone; + /** Name of the image resource to delete. */ + public Delete setImage(java.lang.String image) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), + "Parameter image must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.image = image; return this; } /** - * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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 instanceGroupManager; - - /** The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } + private java.lang.String requestId; - /** - * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. - */ - public Get setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } + /** An optional request ID to identify requests. Specify a unique 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 name of the resize request. Name should conform to RFC1035 or be a resource ID. - */ - @com.google.api.client.util.Key - private java.lang.String resizeRequest; + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** The name of the resize request. Name should conform to RFC1035 or be a resource ID. + 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 getResizeRequest() { - return resizeRequest; + public java.lang.String getRequestId() { + return requestId; } /** - * The name of the resize request. Name should conform to RFC1035 or be a resource ID. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public Get setResizeRequest(java.lang.String resizeRequest) { - this.resizeRequest = resizeRequest; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Creates a new resize request that starts provisioning VMs immediately or queues VM creation. + * Sets the deprecation status of an image. * - * Create a request for the method "instanceGroupManagerResizeRequests.insert". + * If an empty request body is given, clears the deprecation status instead. + * + * Create a request for the method "images.deprecate". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link Deprecate#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located and where the resize request will be - * created. - Name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group to which the resize request will - be added. - Name should - * conform to RFC1035 or be a resource ID. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagerResizeRequest} + * @param image Image name. + * @param content the {@link com.google.api.services.compute.model.DeprecationStatus} * @return the request */ - public Insert insert(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagerResizeRequest content) throws java.io.IOException { - Insert result = new Insert(project, zone, instanceGroupManager, content); + public Deprecate deprecate(java.lang.String project, java.lang.String image, com.google.api.services.compute.model.DeprecationStatus content) throws java.io.IOException { + Deprecate result = new Deprecate(project, image, content); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class Deprecate extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"; + private static final String REST_PATH = "projects/{project}/global/images/{image}/deprecate"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern IMAGE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Creates a new resize request that starts provisioning VMs immediately or queues VM creation. + * Sets the deprecation status of an image. * - * Create a request for the method "instanceGroupManagerResizeRequests.insert". + * If an empty request body is given, clears the deprecation status instead. + * + * Create a request for the method "images.deprecate". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

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

+ * {@link + * Deprecate#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 thezone where the managed - instance group is located and where the resize request will be - * created. - Name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group to which the resize request will - be added. - Name should - * conform to RFC1035 or be a resource ID. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagerResizeRequest} + * @param image Image name. + * @param content the {@link com.google.api.services.compute.model.DeprecationStatus} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagerResizeRequest content) { + protected Deprecate(java.lang.String project, java.lang.String image, com.google.api.services.compute.model.DeprecationStatus 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()) { @@ -58598,68 +57667,72 @@ protected Insert(java.lang.String project, java.lang.String zone, java.lang.Stri "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + this.image = com.google.api.client.util.Preconditions.checkNotNull(image, "Required parameter image must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), + "Parameter image must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public Deprecate set$Xgafv(java.lang.String $Xgafv) { + return (Deprecate) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public Deprecate setAccessToken(java.lang.String accessToken) { + return (Deprecate) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Deprecate setAlt(java.lang.String alt) { + return (Deprecate) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Deprecate setCallback(java.lang.String callback) { + return (Deprecate) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Deprecate setFields(java.lang.String fields) { + return (Deprecate) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Deprecate setKey(java.lang.String key) { + return (Deprecate) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Deprecate setOauthToken(java.lang.String oauthToken) { + return (Deprecate) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Deprecate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Deprecate) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Deprecate setQuotaUser(java.lang.String quotaUser) { + return (Deprecate) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Deprecate setUploadType(java.lang.String uploadType) { + return (Deprecate) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Deprecate setUploadProtocol(java.lang.String uploadProtocol) { + return (Deprecate) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public Deprecate setUserIp(java.lang.String userIp) { + return (Deprecate) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -58673,7 +57746,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public Deprecate setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -58683,49 +57756,24 @@ public Insert setProject(java.lang.String project) { return this; } - /** - * The name of thezone where the managed instance group is located and where the resize - * request will be created. Name should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located and where the resize request will - be created. Name should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located and where the resize - * request will be created. Name should conform to RFC1035. - */ - public Insert setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the managed instance group to which the resize request will be added. Name - * should conform to RFC1035 or be a resource ID. - */ + /** Image name. */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String image; - /** The name of the managed instance group to which the resize request will be added. Name should - conform to RFC1035 or be a resource ID. + /** Image name. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getImage() { + return image; } - /** - * The name of the managed instance group to which the resize request will be added. Name - * should conform to RFC1035 or be a resource ID. - */ - public Insert setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** Image name. */ + public Deprecate setImage(java.lang.String image) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), + "Parameter image must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.image = image; return this; } @@ -58773,69 +57821,72 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Insert setRequestId(java.lang.String requestId) { + public Deprecate setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Deprecate set(String parameterName, Object value) { + return (Deprecate) super.set(parameterName, value); } } /** - * Retrieves a list of resize requests that are contained in the managed instance group. + * Returns the specified image. * - * Create a request for the method "instanceGroupManagerResizeRequests.list". + * Create a request for the method "images.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. The name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. The name should conform to RFC1035. + * @param image Name of the image resource to return. * @return the request */ - public List list(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { - List result = new List(project, zone, instanceGroupManager); + public Get get(java.lang.String project, java.lang.String image) throws java.io.IOException { + Get result = new Get(project, image); initialize(result); return result; } - public class List extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"; + private static final String REST_PATH = "projects/{project}/global/images/{image}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern IMAGE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Retrieves a list of resize requests that are contained in the managed instance group. + * Returns the specified image. * - * Create a request for the method "instanceGroupManagerResizeRequests.list". + * Create a request for the method "images.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. The name should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. The name should conform to RFC1035. + * @param image Name of the image resource to return. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManagerResizeRequestsListResponse.class); + protected Get(java.lang.String project, java.lang.String image) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Image.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + this.image = com.google.api.client.util.Preconditions.checkNotNull(image, "Required parameter image must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), + "Parameter image must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override @@ -58849,63 +57900,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -58919,7 +57970,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List 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 " + @@ -58929,407 +57980,454 @@ public List setProject(java.lang.String project) { return this; } - /** - * The name of thezone where the managed instance group is located. The name should conform to - * RFC1035. - */ + /** Name of the image resource to return. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String image; - /** The name of thezone where the managed instance group is located. The name should conform to - RFC1035. + /** Name of the image resource to return. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getImage() { + return image; } - /** - * The name of thezone where the managed instance group is located. The name should conform to - * RFC1035. - */ - public List setZone(java.lang.String zone) { - this.zone = zone; + /** Name of the image resource to return. */ + public Get setImage(java.lang.String image) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), + "Parameter image must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.image = image; return this; } - /** The name of the managed instance group. The name should conform to RFC1035. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. The name should conform to RFC1035. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } + } + /** + * Returns the latest image that is part of an image family and is not deprecated. For more + * information on image families, seePublic image families documentation. + * + * Create a request for the method "images.getFromFamily". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetFromFamily#execute()} method to invoke the remote operation. + * + * @param project The image project that the image belongs to. For example, to get a CentOS + image, specify centos- + * cloud as the image project. + * @param family Name of the image family to search for. + * @return the request + */ + public GetFromFamily getFromFamily(java.lang.String project, java.lang.String family) throws java.io.IOException { + GetFromFamily result = new GetFromFamily(project, family); + initialize(result); + return result; + } - /** The name of the managed instance group. The name should conform to RFC1035. */ - public List setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } + public class GetFromFamily extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/images/family/{family}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern FAMILY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * Returns the latest image that is part of an image family and is not deprecated. For more + * information on image families, seePublic image families documentation. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "images.getFromFamily". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetFromFamily#execute()} method to invoke the remote operation.

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

* - * You cannot combine constraints on multiple fields using regular expressions. + * @param project The image project that the image belongs to. For example, to get a CentOS + image, specify centos- + * cloud as the image project. + * @param family Name of the image family to search for. + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.String filter; + protected GetFromFamily(java.lang.String project, java.lang.String family) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Image.class); + this.project = com.google.api.client.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.family = com.google.api.client.util.Preconditions.checkNotNull(family, "Required parameter family must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FAMILY_PATTERN.matcher(family).matches(), + "Parameter family must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + @Override + public GetFromFamily set$Xgafv(java.lang.String $Xgafv) { + return (GetFromFamily) super.set$Xgafv($Xgafv); + } - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` + @Override + public GetFromFamily setAccessToken(java.lang.String accessToken) { + return (GetFromFamily) super.setAccessToken(accessToken); + } - 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. + @Override + public GetFromFamily setAlt(java.lang.String alt) { + return (GetFromFamily) super.setAlt(alt); + } - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` + @Override + public GetFromFamily setCallback(java.lang.String callback) { + return (GetFromFamily) super.setCallback(callback); + } - 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: + @Override + public GetFromFamily setFields(java.lang.String fields) { + return (GetFromFamily) super.setFields(fields); + } - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + @Override + public GetFromFamily setKey(java.lang.String key) { + return (GetFromFamily) super.setKey(key); + } - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + @Override + public GetFromFamily setOauthToken(java.lang.String oauthToken) { + return (GetFromFamily) super.setOauthToken(oauthToken); + } - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + @Override + public GetFromFamily setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetFromFamily) super.setPrettyPrint(prettyPrint); + } - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; + @Override + public GetFromFamily setQuotaUser(java.lang.String quotaUser) { + return (GetFromFamily) super.setQuotaUser(quotaUser); } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + @Override + public GetFromFamily setUploadType(java.lang.String uploadType) { + return (GetFromFamily) super.setUploadType(uploadType); + } + + @Override + public GetFromFamily setUploadProtocol(java.lang.String uploadProtocol) { + return (GetFromFamily) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetFromFamily setUserIp(java.lang.String userIp) { + return (GetFromFamily) super.setUserIp(userIp); } /** - * 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`) + * The image project that the image belongs to. For example, to get a CentOS image, specify + * centos-cloud as the image project. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String project; - /** 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] + /** The image project that the image belongs to. For example, to get a CentOS image, specify centos- + cloud as the image project. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getProject() { + return project; } /** - * 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`) + * The image project that the image belongs to. For example, to get a CentOS image, specify + * centos-cloud as the image project. */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; + public GetFromFamily setProject(java.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; } - /** - * 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. - */ + /** Name of the image family to search for. */ @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. + private java.lang.String family; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** Name of the image family to search for. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getFamily() { + return family; } - /** - * 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; + /** Name of the image family to search for. */ + public GetFromFamily setFamily(java.lang.String family) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FAMILY_PATTERN.matcher(family).matches(), + "Parameter family must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.family = family; return this; } + @Override + public GetFromFamily set(String parameterName, Object value) { + return (GetFromFamily) 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 "images.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/images/{resource}/getIamPolicy"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "images.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @since 1.13 */ + protected GetIamPolicy(java.lang.String project, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); + } + + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String project; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Project ID for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getProject() { + return project; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** Project ID for this request. */ + public 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; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String resource; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Name or id of the resource for this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getResource() { + return resource; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + /** 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 List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the InstanceGroupManagers collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InstanceGroupManagers.List request = compute.instanceGroupManagers().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public InstanceGroupManagers instanceGroupManagers() { - return new InstanceGroupManagers(); - } - - /** - * The "instanceGroupManagers" collection of methods. - */ - public class InstanceGroupManagers { - /** - * Flags the specified instances to be removed from the managed instance group. Abandoning an - * instance does not delete the instance, but it does remove the instance from any target pools that - * are applied by the managed instance group. This method reduces thetargetSize of the managed - * instance group by the number of instances that you abandon. This operation is marked asDONE when - * the action is scheduled even if the instances have not yet been removed from the group. You must - * separately verify the status of the abandoning action with thelistmanagedinstances method. - * - * If the group is part of a backend service that has enabled connection draining, it can take up to - * 60 seconds after the connection draining duration has elapsed before the VM instance is removed - * or deleted. - * - * You can specify a maximum of 1000 instances with this method per request. + * Creates an image in the specified project using the data included in the request. * - * Create a request for the method "instanceGroupManagers.abandonInstances". + * Create a request for the method "images.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AbandonInstances#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersAbandonInstancesRequest} + * @param content the {@link com.google.api.services.compute.model.Image} * @return the request */ - public AbandonInstances abandonInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersAbandonInstancesRequest content) throws java.io.IOException { - AbandonInstances result = new AbandonInstances(project, zone, instanceGroupManager, content); + public Insert insert(java.lang.String project, com.google.api.services.compute.model.Image content) throws java.io.IOException { + Insert result = new Insert(project, content); initialize(result); return result; } - public class AbandonInstances extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances"; + private static final String REST_PATH = "projects/{project}/global/images"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Flags the specified instances to be removed from the managed instance group. Abandoning an - * instance does not delete the instance, but it does remove the instance from any target pools - * that are applied by the managed instance group. This method reduces thetargetSize of the - * managed instance group by the number of instances that you abandon. This operation is marked - * asDONE when the action is scheduled even if the instances have not yet been removed from the - * group. You must separately verify the status of the abandoning action with - * thelistmanagedinstances method. - * - * If the group is part of a backend service that has enabled connection draining, it can take up - * to 60 seconds after the connection draining duration has elapsed before the VM instance is - * removed or deleted. - * - * You can specify a maximum of 1000 instances with this method per request. + * Creates an image in the specified project using the data included in the request. * - * Create a request for the method "instanceGroupManagers.abandonInstances". + * Create a request for the method "images.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AbandonInstances#execute()} method to invoke the remote operation. - *

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

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

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

* * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersAbandonInstancesRequest} + * @param content the {@link com.google.api.services.compute.model.Image} * @since 1.13 */ - protected AbandonInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersAbandonInstancesRequest content) { + protected Insert(java.lang.String project, com.google.api.services.compute.model.Image 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()) { @@ -59337,68 +58435,66 @@ protected AbandonInstances(java.lang.String project, java.lang.String zone, java "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public AbandonInstances set$Xgafv(java.lang.String $Xgafv) { - return (AbandonInstances) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public AbandonInstances setAccessToken(java.lang.String accessToken) { - return (AbandonInstances) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public AbandonInstances setAlt(java.lang.String alt) { - return (AbandonInstances) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public AbandonInstances setCallback(java.lang.String callback) { - return (AbandonInstances) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public AbandonInstances setFields(java.lang.String fields) { - return (AbandonInstances) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public AbandonInstances setKey(java.lang.String key) { - return (AbandonInstances) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public AbandonInstances setOauthToken(java.lang.String oauthToken) { - return (AbandonInstances) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public AbandonInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AbandonInstances) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public AbandonInstances setQuotaUser(java.lang.String quotaUser) { - return (AbandonInstances) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public AbandonInstances setUploadType(java.lang.String uploadType) { - return (AbandonInstances) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public AbandonInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (AbandonInstances) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public AbandonInstances setUserIp(java.lang.String userIp) { - return (AbandonInstances) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -59412,7 +58508,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AbandonInstances setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -59422,39 +58518,19 @@ public AbandonInstances setProject(java.lang.String project) { return this; } - /** - * The name of thezone where the managed instance group is located. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. - */ - public AbandonInstances setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the managed instance group. */ + /** Force image creation if true. */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.Boolean forceCreate; - /** The name of the managed instance group. + /** Force image creation if true. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.Boolean getForceCreate() { + return forceCreate; } - /** The name of the managed instance group. */ - public AbandonInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** Force image creation if true. */ + public Insert setForceCreate(java.lang.Boolean forceCreate) { + this.forceCreate = forceCreate; return this; } @@ -59502,62 +58578,66 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public AbandonInstances setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AbandonInstances set(String parameterName, Object value) { - return (AbandonInstances) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Retrieves the list of managed instance groups and groups them by zone. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Retrieves the list of custom images available to the specified project. Custom images are images + * you create that belong to your project. This method does not get any images that belong to other + * projects, including publicly-available images, like Debian 8. If you want to get a list of + * publicly-available images, use this method to make a request to the respective image project, + * such as debian-cloud or windows-cloud. * - * Create a request for the method "instanceGroupManagers.aggregatedList". + * Create a request for the method "images.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. * @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) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/instanceGroupManagers"; + private static final String REST_PATH = "projects/{project}/global/images"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Retrieves the list of managed instance groups and groups them by zone. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Retrieves the list of custom images available to the specified project. Custom images are + * images you create that belong to your project. This method does not get any images that belong + * to other projects, including publicly-available images, like Debian 8. If you want to get a + * list of publicly-available images, use this method to make a request to the respective image + * project, such as debian-cloud or windows-cloud. * - * Create a request for the method "instanceGroupManagers.aggregatedList". + * Create a request for the method "images.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

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

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

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

* * @param project Project ID for this request. * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManagerAggregatedList.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ImageList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -59577,63 +58657,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -59647,7 +58727,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + public List setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -59788,45 +58868,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - return this; - } - /** * The maximum number of results per page that should be returned. If the number of available * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be @@ -59851,7 +58897,7 @@ public java.lang.Long getMaxResults() { * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public AggregatedList setMaxResults(java.lang.Long maxResults) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -59895,7 +58941,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -59918,7 +58964,7 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public AggregatedList setPageToken(java.lang.String pageToken) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -59950,158 +58996,157 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ + /** The zone query parameter. */ @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; + private java.lang.String zone; - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. + /** The zone query parameter. */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; + public java.lang.String getZone() { + return zone; } - /** - * 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; + /** The zone query parameter. */ + public List setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Applies changes to selected instances on the managed instance group. This method can be used to - * apply new overrides and/or new versions. + * Patches the specified image with the data included in the request. Only the following fields can + * be modified: family, description, deprecation status. * - * Create a request for the method "instanceGroupManagers.applyUpdatesToInstances". + * Create a request for the method "images.patch". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ApplyUpdatesToInstances#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of thezone - where the managed instance group is located. Should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group, should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersApplyUpdatesRequest} + * @param image Name of the image resource to patch. + * @param content the {@link com.google.api.services.compute.model.Image} * @return the request */ - public ApplyUpdatesToInstances applyUpdatesToInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersApplyUpdatesRequest content) throws java.io.IOException { - ApplyUpdatesToInstances result = new ApplyUpdatesToInstances(project, zone, instanceGroupManager, content); + public Patch patch(java.lang.String project, java.lang.String image, com.google.api.services.compute.model.Image content) throws java.io.IOException { + Patch result = new Patch(project, image, content); initialize(result); return result; } - public class ApplyUpdatesToInstances extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances"; + private static final String REST_PATH = "projects/{project}/global/images/{image}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern IMAGE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Applies changes to selected instances on the managed instance group. This method can be used to - * apply new overrides and/or new versions. + * Patches the specified image with the data included in the request. Only the following fields + * can be modified: family, description, deprecation status. * - * Create a request for the method "instanceGroupManagers.applyUpdatesToInstances". + * Create a request for the method "images.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ApplyUpdatesToInstances#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param zone The name of thezone - where the managed instance group is located. Should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group, should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersApplyUpdatesRequest} + * @param image Name of the image resource to patch. + * @param content the {@link com.google.api.services.compute.model.Image} * @since 1.13 */ - protected ApplyUpdatesToInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersApplyUpdatesRequest 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 image, com.google.api.services.compute.model.Image content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + this.image = com.google.api.client.util.Preconditions.checkNotNull(image, "Required parameter image must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), + "Parameter image must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public ApplyUpdatesToInstances set$Xgafv(java.lang.String $Xgafv) { - return (ApplyUpdatesToInstances) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public ApplyUpdatesToInstances setAccessToken(java.lang.String accessToken) { - return (ApplyUpdatesToInstances) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public ApplyUpdatesToInstances setAlt(java.lang.String alt) { - return (ApplyUpdatesToInstances) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public ApplyUpdatesToInstances setCallback(java.lang.String callback) { - return (ApplyUpdatesToInstances) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public ApplyUpdatesToInstances setFields(java.lang.String fields) { - return (ApplyUpdatesToInstances) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public ApplyUpdatesToInstances setKey(java.lang.String key) { - return (ApplyUpdatesToInstances) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public ApplyUpdatesToInstances setOauthToken(java.lang.String oauthToken) { - return (ApplyUpdatesToInstances) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public ApplyUpdatesToInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ApplyUpdatesToInstances) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public ApplyUpdatesToInstances setQuotaUser(java.lang.String quotaUser) { - return (ApplyUpdatesToInstances) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public ApplyUpdatesToInstances setUploadType(java.lang.String uploadType) { - return (ApplyUpdatesToInstances) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public ApplyUpdatesToInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (ApplyUpdatesToInstances) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public ApplyUpdatesToInstances setUserIp(java.lang.String userIp) { - return (ApplyUpdatesToInstances) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -60115,7 +59160,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ApplyUpdatesToInstances 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 " + @@ -60125,168 +59170,200 @@ public ApplyUpdatesToInstances setProject(java.lang.String project) { return this; } - /** - * The name of thezone where the managed instance group is located. Should conform to RFC1035. - */ + /** Name of the image resource to patch. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String image; - /** The name of thezone where the managed instance group is located. Should conform to RFC1035. + /** Name of the image resource to patch. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getImage() { + return image; } - /** - * The name of thezone where the managed instance group is located. Should conform to RFC1035. - */ - public ApplyUpdatesToInstances setZone(java.lang.String zone) { - this.zone = zone; + /** Name of the image resource to patch. */ + public Patch setImage(java.lang.String image) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(IMAGE_PATTERN.matcher(image).matches(), + "Parameter image must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.image = image; return this; } - /** The name of the managed instance group, should conform to RFC1035. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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 instanceGroupManager; + private java.lang.String requestId; - /** The name of the managed instance group, should conform to RFC1035. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating 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 getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getRequestId() { + return requestId; } - /** The name of the managed instance group, should conform to RFC1035. */ - public ApplyUpdatesToInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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 ApplyUpdatesToInstances set(String parameterName, Object value) { - return (ApplyUpdatesToInstances) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Updates the accelerator topologies configuration. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "instanceGroupManagers.configureAcceleratorTopologies". + * Create a request for the method "images.setIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ConfigureAcceleratorTopologies#execute()} method to invoke the remote - * operation. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of thezone - where the managed instance group is located. - It should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersConfigureAcceleratorTopologiesRequest} + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @return the request */ - public ConfigureAcceleratorTopologies configureAcceleratorTopologies(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersConfigureAcceleratorTopologiesRequest content) throws java.io.IOException { - ConfigureAcceleratorTopologies result = new ConfigureAcceleratorTopologies(project, zone, instanceGroupManager, content); + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); initialize(result); return result; } - public class ConfigureAcceleratorTopologies extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/configureAcceleratorTopologies"; + private static final String REST_PATH = "projects/{project}/global/images/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Updates the accelerator topologies configuration. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "instanceGroupManagers.configureAcceleratorTopologies". + * Create a request for the method "images.setIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ConfigureAcceleratorTopologies#execute()} method to invoke the - * remote operation.

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

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

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

* * @param project Project ID for this request. - * @param zone The name of thezone - where the managed instance group is located. - It should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersConfigureAcceleratorTopologiesRequest} + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @since 1.13 */ - protected ConfigureAcceleratorTopologies(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersConfigureAcceleratorTopologiesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public ConfigureAcceleratorTopologies set$Xgafv(java.lang.String $Xgafv) { - return (ConfigureAcceleratorTopologies) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public ConfigureAcceleratorTopologies setAccessToken(java.lang.String accessToken) { - return (ConfigureAcceleratorTopologies) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public ConfigureAcceleratorTopologies setAlt(java.lang.String alt) { - return (ConfigureAcceleratorTopologies) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public ConfigureAcceleratorTopologies setCallback(java.lang.String callback) { - return (ConfigureAcceleratorTopologies) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public ConfigureAcceleratorTopologies setFields(java.lang.String fields) { - return (ConfigureAcceleratorTopologies) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public ConfigureAcceleratorTopologies setKey(java.lang.String key) { - return (ConfigureAcceleratorTopologies) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public ConfigureAcceleratorTopologies setOauthToken(java.lang.String oauthToken) { - return (ConfigureAcceleratorTopologies) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public ConfigureAcceleratorTopologies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ConfigureAcceleratorTopologies) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public ConfigureAcceleratorTopologies setQuotaUser(java.lang.String quotaUser) { - return (ConfigureAcceleratorTopologies) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public ConfigureAcceleratorTopologies setUploadType(java.lang.String uploadType) { - return (ConfigureAcceleratorTopologies) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public ConfigureAcceleratorTopologies setUploadProtocol(java.lang.String uploadProtocol) { - return (ConfigureAcceleratorTopologies) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public ConfigureAcceleratorTopologies setUserIp(java.lang.String userIp) { - return (ConfigureAcceleratorTopologies) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -60300,7 +59377,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ConfigureAcceleratorTopologies setProject(java.lang.String project) { + public SetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -60310,159 +59387,80 @@ public ConfigureAcceleratorTopologies setProject(java.lang.String project) { return this; } - /** - * The name of thezone where the managed instance group is located. It should conform to - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the managed instance group is located. It should conform to RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the managed instance group is located. It should conform to - * RFC1035. - */ - public ConfigureAcceleratorTopologies setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the managed instance group. It should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. It should conform to RFC1035. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** - * The name of the managed instance group. It should conform to RFC1035. - */ - public ConfigureAcceleratorTopologies setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. + private java.lang.String resource; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public ConfigureAcceleratorTopologies setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } @Override - public ConfigureAcceleratorTopologies set(String parameterName, Object value) { - return (ConfigureAcceleratorTopologies) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Creates instances with per-instance configurations in this managed instance group. Instances are - * created using the current instance template. Thecreate instances operation is marked DONE if - * thecreateInstances request is successful. The underlying actions take additional time. You must - * separately verify the status of thecreating or actions with the listmanagedinstances method. + * Sets the labels on an image. To learn more about labels, read theLabeling Resources + * documentation. * - * Create a request for the method "instanceGroupManagers.createInstances". + * Create a request for the method "images.setLabels". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link CreateInstances#execute()} method to invoke the remote operation. + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of thezone - where the managed instance group is located. - It should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersCreateInstancesRequest} + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} * @return the request */ - public CreateInstances createInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersCreateInstancesRequest content) throws java.io.IOException { - CreateInstances result = new CreateInstances(project, zone, instanceGroupManager, content); + public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, resource, content); initialize(result); return result; } - public class CreateInstances extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances"; + private static final String REST_PATH = "projects/{project}/global/images/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Creates instances with per-instance configurations in this managed instance group. Instances - * are created using the current instance template. Thecreate instances operation is marked DONE - * if thecreateInstances request is successful. The underlying actions take additional time. You - * must separately verify the status of thecreating or actions with the listmanagedinstances - * method. + * Sets the labels on an image. To learn more about labels, read theLabeling Resources + * documentation. * - * Create a request for the method "instanceGroupManagers.createInstances". + * Create a request for the method "images.setLabels". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link CreateInstances#execute()} method to invoke the remote operation. - *

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

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

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

* * @param project Project ID for this request. - * @param zone The name of thezone - where the managed instance group is located. - It should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersCreateInstancesRequest} + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} * @since 1.13 */ - protected CreateInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersCreateInstancesRequest content) { + protected SetLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -60470,68 +59468,72 @@ protected CreateInstances(java.lang.String project, java.lang.String zone, java. "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public CreateInstances set$Xgafv(java.lang.String $Xgafv) { - return (CreateInstances) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public CreateInstances setAccessToken(java.lang.String accessToken) { - return (CreateInstances) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public CreateInstances setAlt(java.lang.String alt) { - return (CreateInstances) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public CreateInstances setCallback(java.lang.String callback) { - return (CreateInstances) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public CreateInstances setFields(java.lang.String fields) { - return (CreateInstances) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public CreateInstances setKey(java.lang.String key) { - return (CreateInstances) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public CreateInstances setOauthToken(java.lang.String oauthToken) { - return (CreateInstances) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public CreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CreateInstances) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public CreateInstances setQuotaUser(java.lang.String quotaUser) { - return (CreateInstances) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public CreateInstances setUploadType(java.lang.String uploadType) { - return (CreateInstances) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public CreateInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (CreateInstances) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public CreateInstances setUserIp(java.lang.String userIp) { - return (CreateInstances) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -60545,7 +59547,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public CreateInstances setProject(java.lang.String project) { + public SetLabels setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -60555,150 +59557,278 @@ public CreateInstances setProject(java.lang.String project) { return this; } - /** - * The name of thezone where the managed instance group is located. It should conform to - * RFC1035. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String resource; - /** The name of thezone where the managed instance group is located. It should conform to RFC1035. + /** Name or id of the resource for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getResource() { + return resource; } - /** - * The name of thezone where the managed instance group is located. It should conform to - * RFC1035. - */ - public CreateInstances setZone(java.lang.String zone) { - this.zone = zone; + /** Name or id of the resource for this request. */ + public SetLabels setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } + @Override + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "images.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/images/{resource}/testIamPermissions"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * The name of the managed instance group. It should conform to RFC1035. + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "images.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 */ + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String project; - /** The name of the managed instance group. It should conform to RFC1035. + /** Project ID for this request. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getProject() { + return project; } - /** - * The name of the managed instance group. It should conform to RFC1035. - */ - public CreateInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. + private java.lang.String resource; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public CreateInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } @Override - public CreateInstances set(String parameterName, Object value) { - return (CreateInstances) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the InstanceGroupManagerResizeRequests collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InstanceGroupManagerResizeRequests.List request = compute.instanceGroupManagerResizeRequests().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InstanceGroupManagerResizeRequests instanceGroupManagerResizeRequests() { + return new InstanceGroupManagerResizeRequests(); + } + + /** + * The "instanceGroupManagerResizeRequests" collection of methods. + */ + public class InstanceGroupManagerResizeRequests { + /** - * Deletes the specified managed instance group and all of the instances in that group. Note that - * the instance group must not belong to a backend service. Read Deleting an instance group for more - * information. + * Cancels the specified resize request and removes it from the queue. Cancelled resize request does + * no longer wait for the resources to be provisioned. Cancel is only possible for requests that are + * accepted in the queue. * - * Create a request for the method "instanceGroupManagers.delete". + * Create a request for the method "instanceGroupManagerResizeRequests.cancel". * * 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 Cancel#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group to delete. + instance group is located. The name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + The name should conform to RFC1035 or be a resource ID. + * @param resizeRequest The name of the resize request to cancel. + The name should conform to RFC1035 or be a resource ID. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { - Delete result = new Delete(project, zone, instanceGroupManager); + public Cancel cancel(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.String resizeRequest) throws java.io.IOException { + Cancel result = new Cancel(project, zone, instanceGroupManager, resizeRequest); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Cancel extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Deletes the specified managed instance group and all of the instances in that group. Note that - * the instance group must not belong to a backend service. Read Deleting an instance group for - * more information. + * Cancels the specified resize request and removes it from the queue. Cancelled resize request + * does no longer wait for the resources to be provisioned. Cancel is only possible for requests + * that are accepted in the queue. * - * Create a request for the method "instanceGroupManagers.delete". + * Create a request for the method "instanceGroupManagerResizeRequests.cancel". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group to delete. + instance group is located. The name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + The name should conform to RFC1035 or be a resource ID. + * @param resizeRequest The name of the resize request to cancel. + The name should conform to RFC1035 or be a resource ID. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Cancel(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.String resizeRequest) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -60707,66 +59837,67 @@ protected Delete(java.lang.String project, java.lang.String zone, java.lang.Stri } this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + this.resizeRequest = com.google.api.client.util.Preconditions.checkNotNull(resizeRequest, "Required parameter resizeRequest must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Cancel setUserIp(java.lang.String userIp) { + return (Cancel) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -60780,7 +59911,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public Cancel setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -60791,92 +59922,72 @@ public Delete setProject(java.lang.String project) { } /** - * The name of thezone where the managed instance group is located. + * The name of thezone where the managed instance group is located. The name should conform to + * RFC1035. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of thezone where the managed instance group is located. + /** The name of thezone where the managed instance group is located. The name should conform to + RFC1035. */ public java.lang.String getZone() { return zone; } /** - * The name of thezone where the managed instance group is located. + * The name of thezone where the managed instance group is located. The name should conform to + * RFC1035. */ - public Delete setZone(java.lang.String zone) { + public Cancel setZone(java.lang.String zone) { this.zone = zone; return this; } - /** The name of the managed instance group to delete. */ + /** + * The name of the managed instance group. The name should conform to RFC1035 or be a resource + * ID. + */ @com.google.api.client.util.Key private java.lang.String instanceGroupManager; - /** The name of the managed instance group to delete. + /** The name of the managed instance group. The name should conform to RFC1035 or be a resource ID. */ public java.lang.String getInstanceGroupManager() { return instanceGroupManager; } - /** The name of the managed instance group to delete. */ - public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { + /** + * The name of the managed instance group. The name should conform to RFC1035 or be a resource + * ID. + */ + public Cancel setInstanceGroupManager(java.lang.String instanceGroupManager) { this.instanceGroupManager = instanceGroupManager; return this; } /** - * When set, graceful shutdown is skipped for instance deletion even if it's configured for - * the instances. + * The name of the resize request to cancel. The name should conform to RFC1035 or be a + * resource ID. */ @com.google.api.client.util.Key - private java.lang.Boolean noGracefulShutdown; + private java.lang.String resizeRequest; - /** When set, graceful shutdown is skipped for instance deletion even if it's configured for the - instances. [default: false] + /** The name of the resize request to cancel. The name should conform to RFC1035 or be a resource ID. */ - public java.lang.Boolean getNoGracefulShutdown() { - return noGracefulShutdown; + public java.lang.String getResizeRequest() { + return resizeRequest; } /** - * When set, graceful shutdown is skipped for instance deletion even if it's configured for - * the instances. + * The name of the resize request to cancel. The name should conform to RFC1035 or be a + * resource ID. */ - public Delete setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { - this.noGracefulShutdown = noGracefulShutdown; + public Cancel setResizeRequest(java.lang.String resizeRequest) { + this.resizeRequest = resizeRequest; return this; } - /** - * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. - * - *

- * Boolean properties can have four possible values: - * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} - * or {@link Boolean#FALSE}. - *

- * - *

- * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} - * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and - * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - *

- * - *

- * When set, graceful shutdown is skipped for instance deletion even if it's configured for the - instances. - *

- */ - public boolean isNoGracefulShutdown() { - if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { - return false; - } - return noGracefulShutdown; - } - /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -60921,86 +60032,69 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Delete setRequestId(java.lang.String requestId) { + public Cancel setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); } } /** - * Flags the specified instances in the managed instance group for immediate deletion. The instances - * are also removed from any target pools of which they were a member. This method reduces - * thetargetSize of the managed instance group by the number of instances that you delete. This - * operation is marked as DONE when the action is scheduled even if the instances are still being - * deleted. You must separately verify the status of the deleting action with - * thelistmanagedinstances method. - * - * If the group is part of a backend service that has enabled connection draining, it can take up to - * 60 seconds after the connection draining duration has elapsed before the VM instance is removed - * or deleted. + * Deletes the specified, inactive resize request. Requests that are still active cannot be deleted. + * Deleting request does not delete instances that were provisioned previously. * - * You can specify a maximum of 1000 instances with this method per request. - * - * Create a request for the method "instanceGroupManagers.deleteInstances". + * Create a request for the method "instanceGroupManagerResizeRequests.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DeleteInstances#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of thezone where the managed - instance group is located. + instance group is located. The name should conform to RFC1035. * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersDeleteInstancesRequest} + The name should conform to RFC1035 or be a resource ID. + * @param resizeRequest The name of the resize request to delete. + The name should conform to RFC1035 or be a resource ID. * @return the request */ - public DeleteInstances deleteInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersDeleteInstancesRequest content) throws java.io.IOException { - DeleteInstances result = new DeleteInstances(project, zone, instanceGroupManager, content); + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.String resizeRequest) throws java.io.IOException { + Delete result = new Delete(project, zone, instanceGroupManager, resizeRequest); initialize(result); return result; } - public class DeleteInstances extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Flags the specified instances in the managed instance group for immediate deletion. The - * instances are also removed from any target pools of which they were a member. This method - * reduces thetargetSize of the managed instance group by the number of instances that you delete. - * This operation is marked as DONE when the action is scheduled even if the instances are still - * being deleted. You must separately verify the status of the deleting action with - * thelistmanagedinstances method. - * - * If the group is part of a backend service that has enabled connection draining, it can take up - * to 60 seconds after the connection draining duration has elapsed before the VM instance is - * removed or deleted. - * - * You can specify a maximum of 1000 instances with this method per request. + * Deletes the specified, inactive resize request. Requests that are still active cannot be + * deleted. Deleting request does not delete instances that were provisioned previously. * - * Create a request for the method "instanceGroupManagers.deleteInstances". + * Create a request for the method "instanceGroupManagerResizeRequests.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DeleteInstances#execute()} method to invoke the remote operation. - *

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

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

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

* * @param project Project ID for this request. * @param zone The name of thezone where the managed - instance group is located. + instance group is located. The name should conform to RFC1035. * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersDeleteInstancesRequest} + The name should conform to RFC1035 or be a resource ID. + * @param resizeRequest The name of the resize request to delete. + The name should conform to RFC1035 or be a resource ID. * @since 1.13 */ - protected DeleteInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersDeleteInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.String resizeRequest) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -61009,66 +60103,67 @@ protected DeleteInstances(java.lang.String project, java.lang.String zone, java. } this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + this.resizeRequest = com.google.api.client.util.Preconditions.checkNotNull(resizeRequest, "Required parameter resizeRequest must be specified."); } @Override - public DeleteInstances set$Xgafv(java.lang.String $Xgafv) { - return (DeleteInstances) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public DeleteInstances setAccessToken(java.lang.String accessToken) { - return (DeleteInstances) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public DeleteInstances setAlt(java.lang.String alt) { - return (DeleteInstances) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public DeleteInstances setCallback(java.lang.String callback) { - return (DeleteInstances) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public DeleteInstances setFields(java.lang.String fields) { - return (DeleteInstances) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public DeleteInstances setKey(java.lang.String key) { - return (DeleteInstances) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public DeleteInstances setOauthToken(java.lang.String oauthToken) { - return (DeleteInstances) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public DeleteInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteInstances) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public DeleteInstances setQuotaUser(java.lang.String quotaUser) { - return (DeleteInstances) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public DeleteInstances setUploadType(java.lang.String uploadType) { - return (DeleteInstances) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public DeleteInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteInstances) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public DeleteInstances setUserIp(java.lang.String userIp) { - return (DeleteInstances) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -61082,7 +60177,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DeleteInstances setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -61093,92 +60188,72 @@ public DeleteInstances setProject(java.lang.String project) { } /** - * The name of thezone where the managed instance group is located. + * The name of thezone where the managed instance group is located. The name should conform to + * RFC1035. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of thezone where the managed instance group is located. + /** The name of thezone where the managed instance group is located. The name should conform to + RFC1035. */ public java.lang.String getZone() { return zone; } /** - * The name of thezone where the managed instance group is located. + * The name of thezone where the managed instance group is located. The name should conform to + * RFC1035. */ - public DeleteInstances setZone(java.lang.String zone) { + public Delete setZone(java.lang.String zone) { this.zone = zone; return this; } - /** The name of the managed instance group. */ + /** + * The name of the managed instance group. The name should conform to RFC1035 or be a resource + * ID. + */ @com.google.api.client.util.Key private java.lang.String instanceGroupManager; - /** The name of the managed instance group. + /** The name of the managed instance group. The name should conform to RFC1035 or be a resource ID. */ public java.lang.String getInstanceGroupManager() { return instanceGroupManager; } - /** The name of the managed instance group. */ - public DeleteInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + /** + * The name of the managed instance group. The name should conform to RFC1035 or be a resource + * ID. + */ + public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { this.instanceGroupManager = instanceGroupManager; return this; } /** - * When set, graceful shutdown is skipped for instance deletion even if it's configured for - * the instances. + * The name of the resize request to delete. The name should conform to RFC1035 or be a + * resource ID. */ @com.google.api.client.util.Key - private java.lang.Boolean noGracefulShutdown; + private java.lang.String resizeRequest; - /** When set, graceful shutdown is skipped for instance deletion even if it's configured for the - instances. [default: false] + /** The name of the resize request to delete. The name should conform to RFC1035 or be a resource ID. */ - public java.lang.Boolean getNoGracefulShutdown() { - return noGracefulShutdown; + public java.lang.String getResizeRequest() { + return resizeRequest; } /** - * When set, graceful shutdown is skipped for instance deletion even if it's configured for - * the instances. + * The name of the resize request to delete. The name should conform to RFC1035 or be a + * resource ID. */ - public DeleteInstances setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { - this.noGracefulShutdown = noGracefulShutdown; + public Delete setResizeRequest(java.lang.String resizeRequest) { + this.resizeRequest = resizeRequest; return this; } - /** - * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. - * - *

- * Boolean properties can have four possible values: - * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} - * or {@link Boolean#FALSE}. - *

- * - *

- * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} - * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and - * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - *

- * - *

- * When set, graceful shutdown is skipped for instance deletion even if it's configured for the - instances. - *

- */ - public boolean isNoGracefulShutdown() { - if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { - return false; - } - return noGracefulShutdown; - } - /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -61223,71 +60298,69 @@ 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 DeleteInstances setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public DeleteInstances set(String parameterName, Object value) { - return (DeleteInstances) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Deletes selected per-instance configurations for the managed instance group. + * Returns all of the details about the specified resize request. * - * Create a request for the method "instanceGroupManagers.deletePerInstanceConfigs". + * Create a request for the method "instanceGroupManagerResizeRequests.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DeletePerInstanceConfigs#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of thezone - where the managed instance - group is located. - It should conform to RFC1035. + * @param zone Name of the href="/compute/docs/regions-zones/#available">zone + scoping this request. Name should + * conform to RFC1035. * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersDeletePerInstanceConfigsReq} + Name should conform to RFC1035 or be a resource ID. + * @param resizeRequest The name of the resize request. + Name should conform to RFC1035 or be a resource ID. * @return the request */ - public DeletePerInstanceConfigs deletePerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersDeletePerInstanceConfigsReq content) throws java.io.IOException { - DeletePerInstanceConfigs result = new DeletePerInstanceConfigs(project, zone, instanceGroupManager, content); + public Get get(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.String resizeRequest) throws java.io.IOException { + Get result = new Get(project, zone, instanceGroupManager, resizeRequest); initialize(result); return result; } - public class DeletePerInstanceConfigs extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Deletes selected per-instance configurations for the managed instance group. + * Returns all of the details about the specified resize request. * - * Create a request for the method "instanceGroupManagers.deletePerInstanceConfigs". + * Create a request for the method "instanceGroupManagerResizeRequests.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DeletePerInstanceConfigs#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param zone The name of thezone - where the managed instance - group is located. - It should conform to RFC1035. + * @param zone Name of the href="/compute/docs/regions-zones/#available">zone + scoping this request. Name should + * conform to RFC1035. * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersDeletePerInstanceConfigsReq} + Name should conform to RFC1035 or be a resource ID. + * @param resizeRequest The name of the resize request. + Name should conform to RFC1035 or be a resource ID. * @since 1.13 */ - protected DeletePerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersDeletePerInstanceConfigsReq 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 instanceGroupManager, java.lang.String resizeRequest) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManagerResizeRequest.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -61296,66 +60369,77 @@ protected DeletePerInstanceConfigs(java.lang.String project, java.lang.String zo } this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + this.resizeRequest = com.google.api.client.util.Preconditions.checkNotNull(resizeRequest, "Required parameter resizeRequest must be specified."); } @Override - public DeletePerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { - return (DeletePerInstanceConfigs) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public DeletePerInstanceConfigs setAccessToken(java.lang.String accessToken) { - return (DeletePerInstanceConfigs) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public DeletePerInstanceConfigs setAlt(java.lang.String alt) { - return (DeletePerInstanceConfigs) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public DeletePerInstanceConfigs setCallback(java.lang.String callback) { - return (DeletePerInstanceConfigs) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public DeletePerInstanceConfigs setFields(java.lang.String fields) { - return (DeletePerInstanceConfigs) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public DeletePerInstanceConfigs setKey(java.lang.String key) { - return (DeletePerInstanceConfigs) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public DeletePerInstanceConfigs setOauthToken(java.lang.String oauthToken) { - return (DeletePerInstanceConfigs) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public DeletePerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeletePerInstanceConfigs) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public DeletePerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { - return (DeletePerInstanceConfigs) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public DeletePerInstanceConfigs setUploadType(java.lang.String uploadType) { - return (DeletePerInstanceConfigs) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public DeletePerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { - return (DeletePerInstanceConfigs) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public DeletePerInstanceConfigs setUserIp(java.lang.String userIp) { - return (DeletePerInstanceConfigs) 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. */ @@ -61369,7 +60453,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DeletePerInstanceConfigs 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 " + @@ -61380,97 +60464,130 @@ public DeletePerInstanceConfigs setProject(java.lang.String project) { } /** - * The name of thezone where the managed instance group is located. It should conform to - * RFC1035. + * Name of the href="/compute/docs/regions-zones/#available">zone scoping this request. Name + * should conform to RFC1035. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of thezone where the managed instance group is located. It should conform to RFC1035. + /** Name of the href="/compute/docs/regions-zones/#available">zone scoping this request. Name should + conform to RFC1035. */ public java.lang.String getZone() { return zone; } /** - * The name of thezone where the managed instance group is located. It should conform to - * RFC1035. + * Name of the href="/compute/docs/regions-zones/#available">zone scoping this request. Name + * should conform to RFC1035. */ - public DeletePerInstanceConfigs setZone(java.lang.String zone) { + public Get setZone(java.lang.String zone) { this.zone = zone; return this; } /** - * The name of the managed instance group. It should conform to RFC1035. + * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. */ @com.google.api.client.util.Key private java.lang.String instanceGroupManager; - /** The name of the managed instance group. It should conform to RFC1035. + /** The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. */ public java.lang.String getInstanceGroupManager() { return instanceGroupManager; } /** - * The name of the managed instance group. It should conform to RFC1035. + * The name of the managed instance group. Name should conform to RFC1035 or be a resource ID. */ - public DeletePerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { + public Get setInstanceGroupManager(java.lang.String instanceGroupManager) { this.instanceGroupManager = instanceGroupManager; return this; } + /** + * The name of the resize request. Name should conform to RFC1035 or be a resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String resizeRequest; + + /** The name of the resize request. Name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getResizeRequest() { + return resizeRequest; + } + + /** + * The name of the resize request. Name should conform to RFC1035 or be a resource ID. + */ + public Get setResizeRequest(java.lang.String resizeRequest) { + this.resizeRequest = resizeRequest; + return this; + } + @Override - public DeletePerInstanceConfigs set(String parameterName, Object value) { - return (DeletePerInstanceConfigs) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Returns all of the details about the specified managed instance group. + * Creates a new resize request that starts provisioning VMs immediately or queues VM creation. * - * Create a request for the method "instanceGroupManagers.get". + * Create a request for the method "instanceGroupManagerResizeRequests.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. + instance group is located and where the resize request will be + * created. + Name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group to which the resize request will + be added. + Name should + * conform to RFC1035 or be a resource ID. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagerResizeRequest} * @return the request */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { - Get result = new Get(project, zone, instanceGroupManager); + public Insert insert(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagerResizeRequest content) throws java.io.IOException { + Insert result = new Insert(project, zone, instanceGroupManager, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Returns all of the details about the specified managed instance group. + * Creates a new resize request that starts provisioning VMs immediately or queues VM creation. * - * Create a request for the method "instanceGroupManagers.get". + * Create a request for the method "instanceGroupManagerResizeRequests.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. + instance group is located and where the resize request will be + * created. + Name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group to which the resize request will + be added. + Name should + * conform to RFC1035 or be a resource ID. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagerResizeRequest} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManager.class); + protected Insert(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagerResizeRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -61482,73 +60599,63 @@ protected Get(java.lang.String project, java.lang.String zone, java.lang.String } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -61562,7 +60669,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -61573,417 +60680,51 @@ public Get setProject(java.lang.String project) { } /** - * The name of thezone where the managed instance group is located. + * The name of thezone where the managed instance group is located and where the resize + * request will be created. Name should conform to RFC1035. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of thezone where the managed instance group is located. + /** The name of thezone where the managed instance group is located and where the resize request will + be created. Name should conform to RFC1035. */ public java.lang.String getZone() { return zone; } /** - * The name of thezone where the managed instance group is located. + * The name of thezone where the managed instance group is located and where the resize + * request will be created. Name should conform to RFC1035. */ - public Get setZone(java.lang.String zone) { + public Insert setZone(java.lang.String zone) { this.zone = zone; return this; } - /** The name of the managed instance group. */ + /** + * The name of the managed instance group to which the resize request will be added. Name + * should conform to RFC1035 or be a resource ID. + */ @com.google.api.client.util.Key private java.lang.String instanceGroupManager; - /** The name of the managed instance group. + /** The name of the managed instance group to which the resize request will be added. Name should + conform to RFC1035 or be a resource ID. */ public java.lang.String getInstanceGroupManager() { return instanceGroupManager; } - /** The name of the managed instance group. */ - public Get setInstanceGroupManager(java.lang.String instanceGroupManager) { + /** + * The name of the managed instance group to which the resize request will be added. Name + * should conform to RFC1035 or be a resource ID. + */ + public Insert setInstanceGroupManager(java.lang.String instanceGroupManager) { this.instanceGroupManager = instanceGroupManager; return this; } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Returns information about available accelerator topologies for a given MIG. - * - * Create a request for the method "instanceGroupManagers.getAvailableAcceleratorTopologies". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetAvailableAcceleratorTopologies#execute()} method to invoke the - * remote operation. - * - * @param project Required. Project ID for this request. - * @param zone Required. The name of thezone where the managed - instance group is located. - Name should conform to - * RFC1035. - * @param resourceId Required. The name of the managed instance group. - It should conform to RFC1035. - * @return the request - */ - public GetAvailableAcceleratorTopologies getAvailableAcceleratorTopologies(java.lang.String project, java.lang.String zone, java.lang.String resourceId) throws java.io.IOException { - GetAvailableAcceleratorTopologies result = new GetAvailableAcceleratorTopologies(project, zone, resourceId); - initialize(result); - return result; - } - - public class GetAvailableAcceleratorTopologies extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{resourceId}/getAvailableAcceleratorTopologies"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - /** - * Returns information about available accelerator topologies for a given MIG. - * - * Create a request for the method "instanceGroupManagers.getAvailableAcceleratorTopologies". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetAvailableAcceleratorTopologies#execute()} method to invoke the - * remote operation.

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

- * - * @param project Required. Project ID for this request. - * @param zone Required. The name of thezone where the managed - instance group is located. - Name should conform to - * RFC1035. - * @param resourceId Required. The name of the managed instance group. - It should conform to RFC1035. - * @since 1.13 - */ - protected GetAvailableAcceleratorTopologies(java.lang.String project, java.lang.String zone, java.lang.String resourceId) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.resourceId = com.google.api.client.util.Preconditions.checkNotNull(resourceId, "Required parameter resourceId 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 GetAvailableAcceleratorTopologies set$Xgafv(java.lang.String $Xgafv) { - return (GetAvailableAcceleratorTopologies) super.set$Xgafv($Xgafv); - } - - @Override - public GetAvailableAcceleratorTopologies setAccessToken(java.lang.String accessToken) { - return (GetAvailableAcceleratorTopologies) super.setAccessToken(accessToken); - } - - @Override - public GetAvailableAcceleratorTopologies setAlt(java.lang.String alt) { - return (GetAvailableAcceleratorTopologies) super.setAlt(alt); - } - - @Override - public GetAvailableAcceleratorTopologies setCallback(java.lang.String callback) { - return (GetAvailableAcceleratorTopologies) super.setCallback(callback); - } - - @Override - public GetAvailableAcceleratorTopologies setFields(java.lang.String fields) { - return (GetAvailableAcceleratorTopologies) super.setFields(fields); - } - - @Override - public GetAvailableAcceleratorTopologies setKey(java.lang.String key) { - return (GetAvailableAcceleratorTopologies) super.setKey(key); - } - - @Override - public GetAvailableAcceleratorTopologies setOauthToken(java.lang.String oauthToken) { - return (GetAvailableAcceleratorTopologies) super.setOauthToken(oauthToken); - } - - @Override - public GetAvailableAcceleratorTopologies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetAvailableAcceleratorTopologies) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetAvailableAcceleratorTopologies setQuotaUser(java.lang.String quotaUser) { - return (GetAvailableAcceleratorTopologies) super.setQuotaUser(quotaUser); - } - - @Override - public GetAvailableAcceleratorTopologies setUploadType(java.lang.String uploadType) { - return (GetAvailableAcceleratorTopologies) super.setUploadType(uploadType); - } - - @Override - public GetAvailableAcceleratorTopologies setUploadProtocol(java.lang.String uploadProtocol) { - return (GetAvailableAcceleratorTopologies) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetAvailableAcceleratorTopologies setUserIp(java.lang.String userIp) { - return (GetAvailableAcceleratorTopologies) super.setUserIp(userIp); - } - - /** Required. Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Required. Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Required. Project ID for this request. */ - public GetAvailableAcceleratorTopologies setProject(java.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; - } - - /** - * Required. The name of thezone where the managed instance group is located. Name should - * conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Required. The name of thezone where the managed instance group is located. Name should conform to - RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * Required. The name of thezone where the managed instance group is located. Name should - * conform to RFC1035. - */ - public GetAvailableAcceleratorTopologies setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * Required. The name of the managed instance group. It should conform to RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String resourceId; - - /** Required. The name of the managed instance group. It should conform to RFC1035. - */ - public java.lang.String getResourceId() { - return resourceId; - } - - /** - * Required. The name of the managed instance group. It should conform to RFC1035. - */ - public GetAvailableAcceleratorTopologies setResourceId(java.lang.String resourceId) { - this.resourceId = resourceId; - return this; - } - - @Override - public GetAvailableAcceleratorTopologies set(String parameterName, Object value) { - return (GetAvailableAcceleratorTopologies) super.set(parameterName, value); - } - } - /** - * Creates a managed instance group using the information that you specify in the request. After the - * group is created, instances in the group are created using the specified instance template. This - * operation is marked as DONE when the group is created even if the instances in the group have not - * yet been created. You must separately verify the status of the individual instances with - * thelistmanagedinstances method. - * - * A managed instance group can have up to 1000 VM instances per group. Please contact Cloud Support - * if you need an increase in this limit. - * - * Create a request for the method "instanceGroupManagers.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 zone The name of the zone - where you want to create the managed instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstanceGroupManager content) throws java.io.IOException { - Insert result = new Insert(project, zone, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - /** - * Creates a managed instance group using the information that you specify in the request. After - * the group is created, instances in the group are created using the specified instance template. - * This operation is marked as DONE when the group is created even if the instances in the group - * have not yet been created. You must separately verify the status of the individual instances - * with thelistmanagedinstances method. - * - * A managed instance group can have up to 1000 VM instances per group. Please contact Cloud - * Support if you need an increase in this limit. - * - * Create a request for the method "instanceGroupManagers.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param zone The name of the zone - where you want to create the managed instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstanceGroupManager content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** - * The name of the zone where you want to create the managed instance group. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone where you want to create the managed instance group. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of the zone where you want to create the managed instance group. - */ - public Insert setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -62039,37 +60780,36 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves a list of managed instance groups that are contained within the specified project and - * zone. + * Retrieves a list of resize requests that are contained in the managed instance group. * - * Create a request for the method "instanceGroupManagers.list". + * Create a request for the method "instanceGroupManagerResizeRequests.list". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of thezone where the managed - instance group is located. + instance group is located. The name should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. The name should conform to RFC1035. * @return the request */ - public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { - List result = new List(project, zone); + public List list(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { + List result = new List(project, zone, instanceGroupManager); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves a list of managed instance groups that are contained within the specified project and - * zone. + * Retrieves a list of resize requests that are contained in the managed instance group. * - * Create a request for the method "instanceGroupManagers.list". + * Create a request for the method "instanceGroupManagerResizeRequests.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link @@ -62078,11 +60818,12 @@ public class List extends ComputeRequestThe typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InstanceGroupManagers.List request = compute.instanceGroupManagers().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InstanceGroupManagers instanceGroupManagers() { + return new InstanceGroupManagers(); + } + + /** + * The "instanceGroupManagers" collection of methods. + */ + public class InstanceGroupManagers { + /** - * Lists all errors thrown by actions on instances for a given managed instance group. The filter - * and orderBy query parameters are not supported. + * Flags the specified instances to be removed from the managed instance group. Abandoning an + * instance does not delete the instance, but it does remove the instance from any target pools that + * are applied by the managed instance group. This method reduces thetargetSize of the managed + * instance group by the number of instances that you abandon. This operation is marked asDONE when + * the action is scheduled even if the instances have not yet been removed from the group. You must + * separately verify the status of the abandoning action with thelistmanagedinstances method. * - * Create a request for the method "instanceGroupManagers.listErrors". + * If the group is part of a backend service that has enabled connection draining, it can take up to + * 60 seconds after the connection draining duration has elapsed before the VM instance is removed + * or deleted. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.abandonInstances". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListErrors#execute()} method to invoke the remote operation. + * parameters, call the {@link AbandonInstances#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of thezone where the managed instance group is located. - It should conform to RFC1035. * @param instanceGroupManager The name of the managed instance group. - It must be a string that meets the requirements in RFC1035, - * or an - unsigned long integer: must match regexp pattern: - * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersAbandonInstancesRequest} * @return the request */ - public ListErrors listErrors(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { - ListErrors result = new ListErrors(project, zone, instanceGroupManager); + public AbandonInstances abandonInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersAbandonInstancesRequest content) throws java.io.IOException { + AbandonInstances result = new AbandonInstances(project, zone, instanceGroupManager, content); initialize(result); return result; } - public class ListErrors extends ComputeRequest { + public class AbandonInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Lists all errors thrown by actions on instances for a given managed instance group. The filter - * and orderBy query parameters are not supported. + * Flags the specified instances to be removed from the managed instance group. Abandoning an + * instance does not delete the instance, but it does remove the instance from any target pools + * that are applied by the managed instance group. This method reduces thetargetSize of the + * managed instance group by the number of instances that you abandon. This operation is marked + * asDONE when the action is scheduled even if the instances have not yet been removed from the + * group. You must separately verify the status of the abandoning action with + * thelistmanagedinstances method. * - * Create a request for the method "instanceGroupManagers.listErrors". + * If the group is part of a backend service that has enabled connection draining, it can take up + * to 60 seconds after the connection draining duration has elapsed before the VM instance is + * removed or deleted. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.abandonInstances". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListErrors#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. * @param zone The name of thezone where the managed instance group is located. - It should conform to RFC1035. * @param instanceGroupManager The name of the managed instance group. - It must be a string that meets the requirements in RFC1035, - * or an - unsigned long integer: must match regexp pattern: - * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersAbandonInstancesRequest} * @since 1.13 */ - protected ListErrors(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManagersListErrorsResponse.class); + protected AbandonInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersAbandonInstancesRequest 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(), @@ -62541,73 +61338,63 @@ protected ListErrors(java.lang.String project, java.lang.String zone, java.lang. } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public AbandonInstances set$Xgafv(java.lang.String $Xgafv) { + return (AbandonInstances) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public AbandonInstances setAccessToken(java.lang.String accessToken) { + return (AbandonInstances) super.setAccessToken(accessToken); } @Override - public ListErrors set$Xgafv(java.lang.String $Xgafv) { - return (ListErrors) super.set$Xgafv($Xgafv); + public AbandonInstances setAlt(java.lang.String alt) { + return (AbandonInstances) super.setAlt(alt); } @Override - public ListErrors setAccessToken(java.lang.String accessToken) { - return (ListErrors) super.setAccessToken(accessToken); + public AbandonInstances setCallback(java.lang.String callback) { + return (AbandonInstances) super.setCallback(callback); } @Override - public ListErrors setAlt(java.lang.String alt) { - return (ListErrors) super.setAlt(alt); + public AbandonInstances setFields(java.lang.String fields) { + return (AbandonInstances) super.setFields(fields); } @Override - public ListErrors setCallback(java.lang.String callback) { - return (ListErrors) super.setCallback(callback); + public AbandonInstances setKey(java.lang.String key) { + return (AbandonInstances) super.setKey(key); } @Override - public ListErrors setFields(java.lang.String fields) { - return (ListErrors) super.setFields(fields); + public AbandonInstances setOauthToken(java.lang.String oauthToken) { + return (AbandonInstances) super.setOauthToken(oauthToken); } @Override - public ListErrors setKey(java.lang.String key) { - return (ListErrors) super.setKey(key); - } - - @Override - public ListErrors setOauthToken(java.lang.String oauthToken) { - return (ListErrors) super.setOauthToken(oauthToken); - } - - @Override - public ListErrors setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListErrors) super.setPrettyPrint(prettyPrint); + public AbandonInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AbandonInstances) super.setPrettyPrint(prettyPrint); } @Override - public ListErrors setQuotaUser(java.lang.String quotaUser) { - return (ListErrors) super.setQuotaUser(quotaUser); + public AbandonInstances setQuotaUser(java.lang.String quotaUser) { + return (AbandonInstances) super.setQuotaUser(quotaUser); } @Override - public ListErrors setUploadType(java.lang.String uploadType) { - return (ListErrors) super.setUploadType(uploadType); + public AbandonInstances setUploadType(java.lang.String uploadType) { + return (AbandonInstances) super.setUploadType(uploadType); } @Override - public ListErrors setUploadProtocol(java.lang.String uploadProtocol) { - return (ListErrors) super.setUploadProtocol(uploadProtocol); + public AbandonInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (AbandonInstances) super.setUploadProtocol(uploadProtocol); } @Override - public ListErrors setUserIp(java.lang.String userIp) { - return (ListErrors) super.setUserIp(userIp); + public AbandonInstances setUserIp(java.lang.String userIp) { + return (AbandonInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -62621,7 +61408,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListErrors setProject(java.lang.String project) { + public AbandonInstances setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -62632,50 +61419,237 @@ public ListErrors setProject(java.lang.String project) { } /** - * The name of thezone where the managed instance group is located. It should conform to - * RFC1035. + * The name of thezone where the managed instance group is located. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of thezone where the managed instance group is located. It should conform to RFC1035. + /** The name of thezone where the managed instance group is located. */ public java.lang.String getZone() { return zone; } /** - * The name of thezone where the managed instance group is located. It should conform to - * RFC1035. + * The name of thezone where the managed instance group is located. */ - public ListErrors setZone(java.lang.String zone) { + public AbandonInstances setZone(java.lang.String zone) { this.zone = zone; return this; } - /** - * The name of the managed instance group. It must be a string that meets the requirements in - * RFC1035, or an unsigned long integer: must match regexp pattern: - * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. - */ + /** The name of the managed instance group. */ @com.google.api.client.util.Key private java.lang.String instanceGroupManager; - /** The name of the managed instance group. It must be a string that meets the requirements in RFC1035, - or an unsigned long integer: must match regexp pattern: - (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + /** The name of the managed instance group. */ public java.lang.String getInstanceGroupManager() { return instanceGroupManager; } + /** The name of the managed instance group. */ + public AbandonInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + /** - * The name of the managed instance group. It must be a string that meets the requirements in - * RFC1035, or an unsigned long integer: must match regexp pattern: - * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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 ListErrors setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public AbandonInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AbandonInstances set(String parameterName, Object value) { + return (AbandonInstances) super.set(parameterName, value); + } + } + /** + * Retrieves the list of managed instance groups and groups them by zone. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "instanceGroupManagers.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/instanceGroupManagers"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + /** + * Retrieves the list of managed instance groups and groups them by zone. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "instanceGroupManagers.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManagerAggregatedList.class); + this.project = com.google.api.client.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; } @@ -62810,11 +61784,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public ListErrors setFilter(java.lang.String filter) { + public AggregatedList setFilter(java.lang.String filter) { this.filter = filter; return this; } + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + return this; + } + /** * The maximum number of results per page that should be returned. If the number of available * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be @@ -62839,7 +61847,7 @@ public java.lang.Long getMaxResults() { * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public ListErrors setMaxResults(java.lang.Long maxResults) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -62883,7 +61891,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public ListErrors setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -62906,7 +61914,7 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public ListErrors setPageToken(java.lang.String pageToken) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -62938,73 +61946,90 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public ListErrors setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + @Override - public ListErrors set(String parameterName, Object value) { - return (ListErrors) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Lists all of the instances in the managed instance group. Each instance in the list has a - * currentAction, which indicates the action that the managed instance group is performing on the - * instance. For example, if the group is still creating an instance, the currentAction is CREATING. - * If a previous action failed, the list displays the errors for that failed action. The orderBy - * query parameter is not supported. The `pageToken` query parameter is supported only if the - * group's `listManagedInstancesResults` field is set to `PAGINATED`. + * Applies changes to selected instances on the managed instance group. This method can be used to + * apply new overrides and/or new versions. * - * Create a request for the method "instanceGroupManagers.listManagedInstances". + * Create a request for the method "instanceGroupManagers.applyUpdatesToInstances". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListManagedInstances#execute()} method to invoke the remote + * parameters, call the {@link ApplyUpdatesToInstances#execute()} method to invoke the remote * operation. * * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. + * @param zone The name of thezone + where the managed instance group is located. Should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group, should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersApplyUpdatesRequest} * @return the request */ - public ListManagedInstances listManagedInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { - ListManagedInstances result = new ListManagedInstances(project, zone, instanceGroupManager); + public ApplyUpdatesToInstances applyUpdatesToInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersApplyUpdatesRequest content) throws java.io.IOException { + ApplyUpdatesToInstances result = new ApplyUpdatesToInstances(project, zone, instanceGroupManager, content); initialize(result); return result; } - public class ListManagedInstances extends ComputeRequest { + public class ApplyUpdatesToInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Lists all of the instances in the managed instance group. Each instance in the list has a - * currentAction, which indicates the action that the managed instance group is performing on the - * instance. For example, if the group is still creating an instance, the currentAction is - * CREATING. If a previous action failed, the list displays the errors for that failed action. The - * orderBy query parameter is not supported. The `pageToken` query parameter is supported only if - * the group's `listManagedInstancesResults` field is set to `PAGINATED`. + * Applies changes to selected instances on the managed instance group. This method can be used to + * apply new overrides and/or new versions. * - * Create a request for the method "instanceGroupManagers.listManagedInstances". + * Create a request for the method "instanceGroupManagers.applyUpdatesToInstances". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListManagedInstances#execute()} method to invoke the remote - * operation.

{@link ListManagedInstances#initialize(com.google.api.client.googleapis.services - * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * parameters, call the {@link ApplyUpdatesToInstances#execute()} method to invoke the remote + * operation.

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

* * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. + * @param zone The name of thezone + where the managed instance group is located. Should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group, should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersApplyUpdatesRequest} * @since 1.13 */ - protected ListManagedInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManagersListManagedInstancesResponse.class); + protected ApplyUpdatesToInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersApplyUpdatesRequest 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(), @@ -63016,63 +62041,63 @@ protected ListManagedInstances(java.lang.String project, java.lang.String zone, } @Override - public ListManagedInstances set$Xgafv(java.lang.String $Xgafv) { - return (ListManagedInstances) super.set$Xgafv($Xgafv); + public ApplyUpdatesToInstances set$Xgafv(java.lang.String $Xgafv) { + return (ApplyUpdatesToInstances) super.set$Xgafv($Xgafv); } @Override - public ListManagedInstances setAccessToken(java.lang.String accessToken) { - return (ListManagedInstances) super.setAccessToken(accessToken); + public ApplyUpdatesToInstances setAccessToken(java.lang.String accessToken) { + return (ApplyUpdatesToInstances) super.setAccessToken(accessToken); } @Override - public ListManagedInstances setAlt(java.lang.String alt) { - return (ListManagedInstances) super.setAlt(alt); + public ApplyUpdatesToInstances setAlt(java.lang.String alt) { + return (ApplyUpdatesToInstances) super.setAlt(alt); } @Override - public ListManagedInstances setCallback(java.lang.String callback) { - return (ListManagedInstances) super.setCallback(callback); + public ApplyUpdatesToInstances setCallback(java.lang.String callback) { + return (ApplyUpdatesToInstances) super.setCallback(callback); } @Override - public ListManagedInstances setFields(java.lang.String fields) { - return (ListManagedInstances) super.setFields(fields); + public ApplyUpdatesToInstances setFields(java.lang.String fields) { + return (ApplyUpdatesToInstances) super.setFields(fields); } @Override - public ListManagedInstances setKey(java.lang.String key) { - return (ListManagedInstances) super.setKey(key); + public ApplyUpdatesToInstances setKey(java.lang.String key) { + return (ApplyUpdatesToInstances) super.setKey(key); } @Override - public ListManagedInstances setOauthToken(java.lang.String oauthToken) { - return (ListManagedInstances) super.setOauthToken(oauthToken); + public ApplyUpdatesToInstances setOauthToken(java.lang.String oauthToken) { + return (ApplyUpdatesToInstances) super.setOauthToken(oauthToken); } @Override - public ListManagedInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListManagedInstances) super.setPrettyPrint(prettyPrint); + public ApplyUpdatesToInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ApplyUpdatesToInstances) super.setPrettyPrint(prettyPrint); } @Override - public ListManagedInstances setQuotaUser(java.lang.String quotaUser) { - return (ListManagedInstances) super.setQuotaUser(quotaUser); + public ApplyUpdatesToInstances setQuotaUser(java.lang.String quotaUser) { + return (ApplyUpdatesToInstances) super.setQuotaUser(quotaUser); } @Override - public ListManagedInstances setUploadType(java.lang.String uploadType) { - return (ListManagedInstances) super.setUploadType(uploadType); + public ApplyUpdatesToInstances setUploadType(java.lang.String uploadType) { + return (ApplyUpdatesToInstances) super.setUploadType(uploadType); } @Override - public ListManagedInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (ListManagedInstances) super.setUploadProtocol(uploadProtocol); + public ApplyUpdatesToInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (ApplyUpdatesToInstances) super.setUploadProtocol(uploadProtocol); } @Override - public ListManagedInstances setUserIp(java.lang.String userIp) { - return (ListManagedInstances) super.setUserIp(userIp); + public ApplyUpdatesToInstances setUserIp(java.lang.String userIp) { + return (ApplyUpdatesToInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -63086,7 +62111,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListManagedInstances setProject(java.lang.String project) { + public ApplyUpdatesToInstances setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -63097,361 +62122,344 @@ public ListManagedInstances setProject(java.lang.String project) { } /** - * The name of thezone where the managed instance group is located. + * The name of thezone where the managed instance group is located. Should conform to RFC1035. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of thezone where the managed instance group is located. + /** The name of thezone where the managed instance group is located. Should conform to RFC1035. */ public java.lang.String getZone() { return zone; } /** - * The name of thezone where the managed instance group is located. + * The name of thezone where the managed instance group is located. Should conform to RFC1035. */ - public ListManagedInstances setZone(java.lang.String zone) { + public ApplyUpdatesToInstances setZone(java.lang.String zone) { this.zone = zone; return this; } - /** The name of the managed instance group. */ + /** The name of the managed instance group, should conform to RFC1035. */ @com.google.api.client.util.Key private java.lang.String instanceGroupManager; - /** The name of the managed instance group. + /** The name of the managed instance group, should conform to RFC1035. */ public java.lang.String getInstanceGroupManager() { return instanceGroupManager; } - /** The name of the managed instance group. */ - public ListManagedInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + /** The name of the managed instance group, should conform to RFC1035. */ + public ApplyUpdatesToInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { this.instanceGroupManager = instanceGroupManager; return this; } + @Override + public ApplyUpdatesToInstances set(String parameterName, Object value) { + return (ApplyUpdatesToInstances) super.set(parameterName, value); + } + } + /** + * Updates the accelerator topologies configuration. + * + * Create a request for the method "instanceGroupManagers.configureAcceleratorTopologies". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link ConfigureAcceleratorTopologies#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone + where the managed instance group is located. + It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersConfigureAcceleratorTopologiesRequest} + * @return the request + */ + public ConfigureAcceleratorTopologies configureAcceleratorTopologies(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersConfigureAcceleratorTopologiesRequest content) throws java.io.IOException { + ConfigureAcceleratorTopologies result = new ConfigureAcceleratorTopologies(project, zone, instanceGroupManager, content); + initialize(result); + return result; + } + + public class ConfigureAcceleratorTopologies extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/configureAcceleratorTopologies"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. + * Updates the accelerator topologies configuration. * - * 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:* ``` + * Create a request for the method "instanceGroupManagers.configureAcceleratorTopologies". * - * 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. + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link ConfigureAcceleratorTopologies#execute()} method to invoke the + * remote operation.

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

* - * 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. + * @param project Project ID for this request. + * @param zone The name of thezone + where the managed instance group is located. + It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersConfigureAcceleratorTopologiesRequest} + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.String filter; + protected ConfigureAcceleratorTopologies(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersConfigureAcceleratorTopologiesRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + } - /** 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. + @Override + public ConfigureAcceleratorTopologies set$Xgafv(java.lang.String $Xgafv) { + return (ConfigureAcceleratorTopologies) super.set$Xgafv($Xgafv); + } - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + @Override + public ConfigureAcceleratorTopologies setAccessToken(java.lang.String accessToken) { + return (ConfigureAcceleratorTopologies) super.setAccessToken(accessToken); + } - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + @Override + public ConfigureAcceleratorTopologies setAlt(java.lang.String alt) { + return (ConfigureAcceleratorTopologies) super.setAlt(alt); + } - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` + @Override + public ConfigureAcceleratorTopologies setCallback(java.lang.String callback) { + return (ConfigureAcceleratorTopologies) super.setCallback(callback); + } - 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. + @Override + public ConfigureAcceleratorTopologies setFields(java.lang.String fields) { + return (ConfigureAcceleratorTopologies) super.setFields(fields); + } - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` + @Override + public ConfigureAcceleratorTopologies setKey(java.lang.String key) { + return (ConfigureAcceleratorTopologies) super.setKey(key); + } - 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: + @Override + public ConfigureAcceleratorTopologies setOauthToken(java.lang.String oauthToken) { + return (ConfigureAcceleratorTopologies) super.setOauthToken(oauthToken); + } - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + @Override + public ConfigureAcceleratorTopologies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ConfigureAcceleratorTopologies) super.setPrettyPrint(prettyPrint); + } - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + @Override + public ConfigureAcceleratorTopologies setQuotaUser(java.lang.String quotaUser) { + return (ConfigureAcceleratorTopologies) super.setQuotaUser(quotaUser); + } - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + @Override + public ConfigureAcceleratorTopologies setUploadType(java.lang.String uploadType) { + return (ConfigureAcceleratorTopologies) super.setUploadType(uploadType); + } - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; + @Override + public ConfigureAcceleratorTopologies setUploadProtocol(java.lang.String uploadProtocol) { + return (ConfigureAcceleratorTopologies) super.setUploadProtocol(uploadProtocol); } - /** - * 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 ListManagedInstances setFilter(java.lang.String filter) { - this.filter = filter; - return this; + @Override + public ConfigureAcceleratorTopologies setUserIp(java.lang.String userIp) { + return (ConfigureAcceleratorTopologies) super.setUserIp(userIp); } - /** - * 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`) - */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String project; - /** 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] + /** Project ID for this request. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getProject() { + return project; } - /** - * 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 ListManagedInstances setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; + /** Project ID for this request. */ + public ConfigureAcceleratorTopologies setProject(java.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; } /** - * 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. + * The name of thezone where the managed instance group is located. It should conform to + * RFC1035. */ @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. + private java.lang.String zone; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** The name of thezone where the managed instance group is located. It should conform to RFC1035. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getZone() { + return zone; } /** - * 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. + * The name of thezone where the managed instance group is located. It should conform to + * RFC1035. */ - public ListManagedInstances setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; + public ConfigureAcceleratorTopologies setZone(java.lang.String zone) { + this.zone = zone; return this; } /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + * The name of the managed instance group. It should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String instanceGroupManager; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** The name of the managed instance group. It should conform to RFC1035. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + * The name of the managed instance group. It should conform to RFC1035. */ - public ListManagedInstances setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + public ConfigureAcceleratorTopologies setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public ListManagedInstances setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public ConfigureAcceleratorTopologies setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public ListManagedInstances set(String parameterName, Object value) { - return (ListManagedInstances) super.set(parameterName, value); + public ConfigureAcceleratorTopologies set(String parameterName, Object value) { + return (ConfigureAcceleratorTopologies) super.set(parameterName, value); } } /** - * Lists all of the per-instance configurations defined for the managed instance group. The orderBy - * query parameter is not supported. + * Creates instances with per-instance configurations in this managed instance group. Instances are + * created using the current instance template. Thecreate instances operation is marked DONE if + * thecreateInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of thecreating or actions with the listmanagedinstances method. * - * Create a request for the method "instanceGroupManagers.listPerInstanceConfigs". + * Create a request for the method "instanceGroupManagers.createInstances". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListPerInstanceConfigs#execute()} method to invoke the remote - * operation. + * parameters, call the {@link CreateInstances#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of thezone where the managed instance group is located. It should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersCreateInstancesRequest} * @return the request */ - public ListPerInstanceConfigs listPerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { - ListPerInstanceConfigs result = new ListPerInstanceConfigs(project, zone, instanceGroupManager); + public CreateInstances createInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersCreateInstancesRequest content) throws java.io.IOException { + CreateInstances result = new CreateInstances(project, zone, instanceGroupManager, content); initialize(result); return result; } - public class ListPerInstanceConfigs extends ComputeRequest { + public class CreateInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Lists all of the per-instance configurations defined for the managed instance group. The - * orderBy query parameter is not supported. + * Creates instances with per-instance configurations in this managed instance group. Instances + * are created using the current instance template. Thecreate instances operation is marked DONE + * if thecreateInstances request is successful. The underlying actions take additional time. You + * must separately verify the status of thecreating or actions with the listmanagedinstances + * method. * - * Create a request for the method "instanceGroupManagers.listPerInstanceConfigs". + * Create a request for the method "instanceGroupManagers.createInstances". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListPerInstanceConfigs#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. * @param zone The name of thezone where the managed instance group is located. It should conform to RFC1035. - * @param instanceGroupManager The name of the managed instance group. It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersCreateInstancesRequest} * @since 1.13 */ - protected ListPerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManagersListPerInstanceConfigsResp.class); + protected CreateInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersCreateInstancesRequest 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(), @@ -63463,63 +62471,63 @@ protected ListPerInstanceConfigs(java.lang.String project, java.lang.String zone } @Override - public ListPerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { - return (ListPerInstanceConfigs) super.set$Xgafv($Xgafv); + public CreateInstances set$Xgafv(java.lang.String $Xgafv) { + return (CreateInstances) super.set$Xgafv($Xgafv); } @Override - public ListPerInstanceConfigs setAccessToken(java.lang.String accessToken) { - return (ListPerInstanceConfigs) super.setAccessToken(accessToken); + public CreateInstances setAccessToken(java.lang.String accessToken) { + return (CreateInstances) super.setAccessToken(accessToken); } @Override - public ListPerInstanceConfigs setAlt(java.lang.String alt) { - return (ListPerInstanceConfigs) super.setAlt(alt); + public CreateInstances setAlt(java.lang.String alt) { + return (CreateInstances) super.setAlt(alt); } @Override - public ListPerInstanceConfigs setCallback(java.lang.String callback) { - return (ListPerInstanceConfigs) super.setCallback(callback); + public CreateInstances setCallback(java.lang.String callback) { + return (CreateInstances) super.setCallback(callback); } @Override - public ListPerInstanceConfigs setFields(java.lang.String fields) { - return (ListPerInstanceConfigs) super.setFields(fields); + public CreateInstances setFields(java.lang.String fields) { + return (CreateInstances) super.setFields(fields); } @Override - public ListPerInstanceConfigs setKey(java.lang.String key) { - return (ListPerInstanceConfigs) super.setKey(key); + public CreateInstances setKey(java.lang.String key) { + return (CreateInstances) super.setKey(key); } @Override - public ListPerInstanceConfigs setOauthToken(java.lang.String oauthToken) { - return (ListPerInstanceConfigs) super.setOauthToken(oauthToken); + public CreateInstances setOauthToken(java.lang.String oauthToken) { + return (CreateInstances) super.setOauthToken(oauthToken); } @Override - public ListPerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListPerInstanceConfigs) super.setPrettyPrint(prettyPrint); + public CreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateInstances) super.setPrettyPrint(prettyPrint); } @Override - public ListPerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { - return (ListPerInstanceConfigs) super.setQuotaUser(quotaUser); + public CreateInstances setQuotaUser(java.lang.String quotaUser) { + return (CreateInstances) super.setQuotaUser(quotaUser); } @Override - public ListPerInstanceConfigs setUploadType(java.lang.String uploadType) { - return (ListPerInstanceConfigs) super.setUploadType(uploadType); + public CreateInstances setUploadType(java.lang.String uploadType) { + return (CreateInstances) super.setUploadType(uploadType); } @Override - public ListPerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { - return (ListPerInstanceConfigs) super.setUploadProtocol(uploadProtocol); + public CreateInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateInstances) super.setUploadProtocol(uploadProtocol); } @Override - public ListPerInstanceConfigs setUserIp(java.lang.String userIp) { - return (ListPerInstanceConfigs) super.setUserIp(userIp); + public CreateInstances setUserIp(java.lang.String userIp) { + return (CreateInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -63533,7 +62541,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListPerInstanceConfigs setProject(java.lang.String project) { + public CreateInstances setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -63560,12 +62568,14 @@ public java.lang.String getZone() { * The name of thezone where the managed instance group is located. It should conform to * RFC1035. */ - public ListPerInstanceConfigs setZone(java.lang.String zone) { + public CreateInstances setZone(java.lang.String zone) { this.zone = zone; return this; } - /** The name of the managed instance group. It should conform to RFC1035. */ + /** + * The name of the managed instance group. It should conform to RFC1035. + */ @com.google.api.client.util.Key private java.lang.String instanceGroupManager; @@ -63575,312 +62585,90 @@ public java.lang.String getInstanceGroupManager() { return instanceGroupManager; } - /** The name of the managed instance group. It should conform to RFC1035. */ - public ListPerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + public CreateInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { this.instanceGroupManager = instanceGroupManager; return this; } /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. * - * You cannot combine constraints on multiple fields using regular expressions. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. + private java.lang.String requestId; - 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 `:`. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. - 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:* ``` + 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; + } - 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 ListPerInstanceConfigs 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 ListPerInstanceConfigs 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 ListPerInstanceConfigs 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 ListPerInstanceConfigs 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 ListPerInstanceConfigs setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public CreateInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } @Override - public ListPerInstanceConfigs set(String parameterName, Object value) { - return (ListPerInstanceConfigs) super.set(parameterName, value); + public CreateInstances set(String parameterName, Object value) { + return (CreateInstances) super.set(parameterName, value); } } /** - * Updates a managed instance group using the information that you specify in the request. This - * operation is marked as DONE when the group is patched even if the instances in the group are - * still in the process of being patched. You must separately verify the status of the individual - * instances with thelistManagedInstances method. This method supportsPATCH semantics and uses - * theJSON merge patch format and processing rules. - * - * If you update your group to specify a new template or instance configuration, it's possible that - * your intended specification for each VM in the group is different from the current state of that - * VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating instances in - * a MIG. + * Deletes the specified managed instance group and all of the instances in that group. Note that + * the instance group must not belong to a backend service. Read Deleting an instance group for more + * information. * - * Create a request for the method "instanceGroupManagers.patch". + * Create a request for the method "instanceGroupManagers.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone where - you want to create the managed instance group. - * @param instanceGroupManager The name of the instance group manager. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group to delete. * @return the request */ - public Patch patch(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManager content) throws java.io.IOException { - Patch result = new Patch(project, zone, instanceGroupManager, content); + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { + Delete result = new Delete(project, zone, instanceGroupManager); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class Delete extends ComputeRequest { private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}"; @@ -63888,33 +62676,25 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

* * @param project Project ID for this request. - * @param zone The name of the zone where - you want to create the managed instance group. - * @param instanceGroupManager The name of the instance group manager. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group to delete. * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManager content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -63926,63 +62706,63 @@ protected Patch(java.lang.String project, java.lang.String zone, java.lang.Strin } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -63996,7 +62776,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -64007,41 +62787,92 @@ public Patch setProject(java.lang.String project) { } /** - * The name of the zone where you want to create the managed instance group. + * The name of thezone where the managed instance group is located. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of the zone where you want to create the managed instance group. + /** The name of thezone where the managed instance group is located. */ public java.lang.String getZone() { return zone; } /** - * The name of the zone where you want to create the managed instance group. + * The name of thezone where the managed instance group is located. */ - public Patch setZone(java.lang.String zone) { + public Delete setZone(java.lang.String zone) { this.zone = zone; return this; } - /** The name of the instance group manager. */ + /** The name of the managed instance group to delete. */ @com.google.api.client.util.Key private java.lang.String instanceGroupManager; - /** The name of the instance group manager. + /** The name of the managed instance group to delete. */ public java.lang.String getInstanceGroupManager() { return instanceGroupManager; } - /** The name of the instance group manager. */ - public Patch setInstanceGroupManager(java.lang.String instanceGroupManager) { + /** The name of the managed instance group to delete. */ + public Delete setInstanceGroupManager(java.lang.String instanceGroupManager) { this.instanceGroupManager = instanceGroupManager; return this; } + /** + * When set, graceful shutdown is skipped for instance deletion even if it's configured for + * the instances. + */ + @com.google.api.client.util.Key + private java.lang.Boolean noGracefulShutdown; + + /** When set, graceful shutdown is skipped for instance deletion even if it's configured for the + instances. [default: false] + */ + public java.lang.Boolean getNoGracefulShutdown() { + return noGracefulShutdown; + } + + /** + * When set, graceful shutdown is skipped for instance deletion even if it's configured for + * the instances. + */ + public Delete setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { + this.noGracefulShutdown = noGracefulShutdown; + return this; + } + + /** + * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. + * + *

+ * Boolean properties can have four possible values: + * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} + * or {@link Boolean#FALSE}. + *

+ * + *

+ * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} + * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and + * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + *

+ * + *

+ * When set, graceful shutdown is skipped for instance deletion even if it's configured for the + instances. + *

+ */ + public boolean isNoGracefulShutdown() { + if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { + return false; + } + return noGracefulShutdown; + } + /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -64086,70 +62917,85 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Patch setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Inserts or patches per-instance configurations for the managed instance group. - * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. + * Flags the specified instances in the managed instance group for immediate deletion. The instances + * are also removed from any target pools of which they were a member. This method reduces + * thetargetSize of the managed instance group by the number of instances that you delete. This + * operation is marked as DONE when the action is scheduled even if the instances are still being + * deleted. You must separately verify the status of the deleting action with + * thelistmanagedinstances method. * - * Create a request for the method "instanceGroupManagers.patchPerInstanceConfigs". + * If the group is part of a backend service that has enabled connection draining, it can take up to + * 60 seconds after the connection draining duration has elapsed before the VM instance is removed + * or deleted. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.deleteInstances". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PatchPerInstanceConfigs#execute()} method to invoke the remote - * operation. + * parameters, call the {@link DeleteInstances#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of thezone - where the managed instance group is located. - It should conform to RFC1035. + * @param zone The name of thezone where the managed + instance group is located. * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersPatchPerInstanceConfigsReq} + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersDeleteInstancesRequest} * @return the request */ - public PatchPerInstanceConfigs patchPerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersPatchPerInstanceConfigsReq content) throws java.io.IOException { - PatchPerInstanceConfigs result = new PatchPerInstanceConfigs(project, zone, instanceGroupManager, content); + public DeleteInstances deleteInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersDeleteInstancesRequest content) throws java.io.IOException { + DeleteInstances result = new DeleteInstances(project, zone, instanceGroupManager, content); initialize(result); return result; } - public class PatchPerInstanceConfigs extends ComputeRequest { + public class DeleteInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Inserts or patches per-instance configurations for the managed instance group. - * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. + * Flags the specified instances in the managed instance group for immediate deletion. The + * instances are also removed from any target pools of which they were a member. This method + * reduces thetargetSize of the managed instance group by the number of instances that you delete. + * This operation is marked as DONE when the action is scheduled even if the instances are still + * being deleted. You must separately verify the status of the deleting action with + * thelistmanagedinstances method. * - * Create a request for the method "instanceGroupManagers.patchPerInstanceConfigs". + * If the group is part of a backend service that has enabled connection draining, it can take up + * to 60 seconds after the connection draining duration has elapsed before the VM instance is + * removed or deleted. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.deleteInstances". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link PatchPerInstanceConfigs#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param zone The name of thezone - where the managed instance group is located. - It should conform to RFC1035. + * @param zone The name of thezone where the managed + instance group is located. * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersPatchPerInstanceConfigsReq} + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersDeleteInstancesRequest} * @since 1.13 */ - protected PatchPerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersPatchPerInstanceConfigsReq content) { + protected DeleteInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersDeleteInstancesRequest 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()) { @@ -64162,63 +63008,63 @@ protected PatchPerInstanceConfigs(java.lang.String project, java.lang.String zon } @Override - public PatchPerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { - return (PatchPerInstanceConfigs) super.set$Xgafv($Xgafv); + public DeleteInstances set$Xgafv(java.lang.String $Xgafv) { + return (DeleteInstances) super.set$Xgafv($Xgafv); } @Override - public PatchPerInstanceConfigs setAccessToken(java.lang.String accessToken) { - return (PatchPerInstanceConfigs) super.setAccessToken(accessToken); + public DeleteInstances setAccessToken(java.lang.String accessToken) { + return (DeleteInstances) super.setAccessToken(accessToken); } @Override - public PatchPerInstanceConfigs setAlt(java.lang.String alt) { - return (PatchPerInstanceConfigs) super.setAlt(alt); + public DeleteInstances setAlt(java.lang.String alt) { + return (DeleteInstances) super.setAlt(alt); } @Override - public PatchPerInstanceConfigs setCallback(java.lang.String callback) { - return (PatchPerInstanceConfigs) super.setCallback(callback); + public DeleteInstances setCallback(java.lang.String callback) { + return (DeleteInstances) super.setCallback(callback); } @Override - public PatchPerInstanceConfigs setFields(java.lang.String fields) { - return (PatchPerInstanceConfigs) super.setFields(fields); + public DeleteInstances setFields(java.lang.String fields) { + return (DeleteInstances) super.setFields(fields); } @Override - public PatchPerInstanceConfigs setKey(java.lang.String key) { - return (PatchPerInstanceConfigs) super.setKey(key); + public DeleteInstances setKey(java.lang.String key) { + return (DeleteInstances) super.setKey(key); } @Override - public PatchPerInstanceConfigs setOauthToken(java.lang.String oauthToken) { - return (PatchPerInstanceConfigs) super.setOauthToken(oauthToken); + public DeleteInstances setOauthToken(java.lang.String oauthToken) { + return (DeleteInstances) super.setOauthToken(oauthToken); } @Override - public PatchPerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchPerInstanceConfigs) super.setPrettyPrint(prettyPrint); + public DeleteInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteInstances) super.setPrettyPrint(prettyPrint); } @Override - public PatchPerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { - return (PatchPerInstanceConfigs) super.setQuotaUser(quotaUser); + public DeleteInstances setQuotaUser(java.lang.String quotaUser) { + return (DeleteInstances) super.setQuotaUser(quotaUser); } @Override - public PatchPerInstanceConfigs setUploadType(java.lang.String uploadType) { - return (PatchPerInstanceConfigs) super.setUploadType(uploadType); + public DeleteInstances setUploadType(java.lang.String uploadType) { + return (DeleteInstances) super.setUploadType(uploadType); } @Override - public PatchPerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchPerInstanceConfigs) super.setUploadProtocol(uploadProtocol); + public DeleteInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteInstances) super.setUploadProtocol(uploadProtocol); } @Override - public PatchPerInstanceConfigs setUserIp(java.lang.String userIp) { - return (PatchPerInstanceConfigs) super.setUserIp(userIp); + public DeleteInstances setUserIp(java.lang.String userIp) { + return (DeleteInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -64232,7 +63078,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchPerInstanceConfigs setProject(java.lang.String project) { + public DeleteInstances setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -64243,47 +63089,92 @@ public PatchPerInstanceConfigs setProject(java.lang.String project) { } /** - * The name of thezone where the managed instance group is located. It should conform to - * RFC1035. + * The name of thezone where the managed instance group is located. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of thezone where the managed instance group is located. It should conform to RFC1035. + /** The name of thezone where the managed instance group is located. */ public java.lang.String getZone() { return zone; } /** - * The name of thezone where the managed instance group is located. It should conform to - * RFC1035. + * The name of thezone where the managed instance group is located. */ - public PatchPerInstanceConfigs setZone(java.lang.String zone) { + public DeleteInstances setZone(java.lang.String zone) { this.zone = zone; return this; } - /** - * The name of the managed instance group. It should conform to RFC1035. - */ + /** The name of the managed instance group. */ @com.google.api.client.util.Key private java.lang.String instanceGroupManager; - /** The name of the managed instance group. It should conform to RFC1035. + /** The name of the managed instance group. */ public java.lang.String getInstanceGroupManager() { return instanceGroupManager; } + /** The name of the managed instance group. */ + public DeleteInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + /** - * The name of the managed instance group. It should conform to RFC1035. + * When set, graceful shutdown is skipped for instance deletion even if it's configured for + * the instances. */ - public PatchPerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + @com.google.api.client.util.Key + private java.lang.Boolean noGracefulShutdown; + + /** When set, graceful shutdown is skipped for instance deletion even if it's configured for the + instances. [default: false] + */ + public java.lang.Boolean getNoGracefulShutdown() { + return noGracefulShutdown; + } + + /** + * When set, graceful shutdown is skipped for instance deletion even if it's configured for + * the instances. + */ + public DeleteInstances setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { + this.noGracefulShutdown = noGracefulShutdown; return this; } + /** + * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. + * + *

+ * Boolean properties can have four possible values: + * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} + * or {@link Boolean#FALSE}. + *

+ * + *

+ * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} + * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and + * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + *

+ * + *

+ * When set, graceful shutdown is skipped for instance deletion even if it's configured for the + instances. + *

+ */ + public boolean isNoGracefulShutdown() { + if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { + return false; + } + return noGracefulShutdown; + } + /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -64328,83 +63219,70 @@ 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 PatchPerInstanceConfigs setRequestId(java.lang.String requestId) { + public DeleteInstances setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public PatchPerInstanceConfigs set(String parameterName, Object value) { - return (PatchPerInstanceConfigs) super.set(parameterName, value); + public DeleteInstances set(String parameterName, Object value) { + return (DeleteInstances) super.set(parameterName, value); } } /** - * Flags the specified VM instances in the managed instance group to be immediately recreated. Each - * instance is recreated using the group's current configuration. This operation is marked as DONE - * when the flag is set even if the instances have not yet been recreated. You must separately - * verify the status of each instance by checking itscurrentAction field; for more information, see - * Checking the status of managed instances. - * - * If the group is part of a backend service that has enabled connection draining, it can take up to - * 60 seconds after the connection draining duration has elapsed before the VM instance is removed - * or deleted. - * - * You can specify a maximum of 1000 instances with this method per request. + * Deletes selected per-instance configurations for the managed instance group. * - * Create a request for the method "instanceGroupManagers.recreateInstances". + * Create a request for the method "instanceGroupManagers.deletePerInstanceConfigs". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RecreateInstances#execute()} method to invoke the remote operation. + * parameters, call the {@link DeletePerInstanceConfigs#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. + * @param zone The name of thezone + where the managed instance + group is located. + It should conform to RFC1035. * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersRecreateInstancesRequest} + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersDeletePerInstanceConfigsReq} * @return the request */ - public RecreateInstances recreateInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersRecreateInstancesRequest content) throws java.io.IOException { - RecreateInstances result = new RecreateInstances(project, zone, instanceGroupManager, content); + public DeletePerInstanceConfigs deletePerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersDeletePerInstanceConfigsReq content) throws java.io.IOException { + DeletePerInstanceConfigs result = new DeletePerInstanceConfigs(project, zone, instanceGroupManager, content); initialize(result); return result; } - public class RecreateInstances extends ComputeRequest { + public class DeletePerInstanceConfigs extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Flags the specified VM instances in the managed instance group to be immediately recreated. - * Each instance is recreated using the group's current configuration. This operation is marked as - * DONE when the flag is set even if the instances have not yet been recreated. You must - * separately verify the status of each instance by checking itscurrentAction field; for more - * information, see Checking the status of managed instances. - * - * If the group is part of a backend service that has enabled connection draining, it can take up - * to 60 seconds after the connection draining duration has elapsed before the VM instance is - * removed or deleted. - * - * You can specify a maximum of 1000 instances with this method per request. + * Deletes selected per-instance configurations for the managed instance group. * - * Create a request for the method "instanceGroupManagers.recreateInstances". + * Create a request for the method "instanceGroupManagers.deletePerInstanceConfigs". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RecreateInstances#execute()} method to invoke the remote operation. - *

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

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

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

* * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. + * @param zone The name of thezone + where the managed instance + group is located. + It should conform to RFC1035. * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersRecreateInstancesRequest} + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersDeletePerInstanceConfigsReq} * @since 1.13 */ - protected RecreateInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersRecreateInstancesRequest content) { + protected DeletePerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersDeletePerInstanceConfigsReq 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()) { @@ -64417,63 +63295,63 @@ protected RecreateInstances(java.lang.String project, java.lang.String zone, jav } @Override - public RecreateInstances set$Xgafv(java.lang.String $Xgafv) { - return (RecreateInstances) super.set$Xgafv($Xgafv); + public DeletePerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { + return (DeletePerInstanceConfigs) super.set$Xgafv($Xgafv); } @Override - public RecreateInstances setAccessToken(java.lang.String accessToken) { - return (RecreateInstances) super.setAccessToken(accessToken); + public DeletePerInstanceConfigs setAccessToken(java.lang.String accessToken) { + return (DeletePerInstanceConfigs) super.setAccessToken(accessToken); } @Override - public RecreateInstances setAlt(java.lang.String alt) { - return (RecreateInstances) super.setAlt(alt); + public DeletePerInstanceConfigs setAlt(java.lang.String alt) { + return (DeletePerInstanceConfigs) super.setAlt(alt); } @Override - public RecreateInstances setCallback(java.lang.String callback) { - return (RecreateInstances) super.setCallback(callback); + public DeletePerInstanceConfigs setCallback(java.lang.String callback) { + return (DeletePerInstanceConfigs) super.setCallback(callback); } @Override - public RecreateInstances setFields(java.lang.String fields) { - return (RecreateInstances) super.setFields(fields); + public DeletePerInstanceConfigs setFields(java.lang.String fields) { + return (DeletePerInstanceConfigs) super.setFields(fields); } @Override - public RecreateInstances setKey(java.lang.String key) { - return (RecreateInstances) super.setKey(key); + public DeletePerInstanceConfigs setKey(java.lang.String key) { + return (DeletePerInstanceConfigs) super.setKey(key); } @Override - public RecreateInstances setOauthToken(java.lang.String oauthToken) { - return (RecreateInstances) super.setOauthToken(oauthToken); + public DeletePerInstanceConfigs setOauthToken(java.lang.String oauthToken) { + return (DeletePerInstanceConfigs) super.setOauthToken(oauthToken); } @Override - public RecreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RecreateInstances) super.setPrettyPrint(prettyPrint); + public DeletePerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeletePerInstanceConfigs) super.setPrettyPrint(prettyPrint); } @Override - public RecreateInstances setQuotaUser(java.lang.String quotaUser) { - return (RecreateInstances) super.setQuotaUser(quotaUser); + public DeletePerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { + return (DeletePerInstanceConfigs) super.setQuotaUser(quotaUser); } @Override - public RecreateInstances setUploadType(java.lang.String uploadType) { - return (RecreateInstances) super.setUploadType(uploadType); + public DeletePerInstanceConfigs setUploadType(java.lang.String uploadType) { + return (DeletePerInstanceConfigs) super.setUploadType(uploadType); } @Override - public RecreateInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (RecreateInstances) super.setUploadProtocol(uploadProtocol); + public DeletePerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { + return (DeletePerInstanceConfigs) super.setUploadProtocol(uploadProtocol); } @Override - public RecreateInstances setUserIp(java.lang.String userIp) { - return (RecreateInstances) super.setUserIp(userIp); + public DeletePerInstanceConfigs setUserIp(java.lang.String userIp) { + return (DeletePerInstanceConfigs) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -64487,7 +63365,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RecreateInstances setProject(java.lang.String project) { + public DeletePerInstanceConfigs setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -64498,234 +63376,97 @@ public RecreateInstances setProject(java.lang.String project) { } /** - * The name of thezone where the managed instance group is located. + * The name of thezone where the managed instance group is located. It should conform to + * RFC1035. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of thezone where the managed instance group is located. + /** The name of thezone where the managed instance group is located. It should conform to RFC1035. */ public java.lang.String getZone() { return zone; } /** - * The name of thezone where the managed instance group is located. + * The name of thezone where the managed instance group is located. It should conform to + * RFC1035. */ - public RecreateInstances setZone(java.lang.String zone) { + public DeletePerInstanceConfigs setZone(java.lang.String zone) { this.zone = zone; return this; } - /** The name of the managed instance group. */ + /** + * The name of the managed instance group. It should conform to RFC1035. + */ @com.google.api.client.util.Key private java.lang.String instanceGroupManager; - /** The name of the managed instance group. + /** The name of the managed instance group. It should conform to RFC1035. */ public java.lang.String getInstanceGroupManager() { return instanceGroupManager; } - /** The name of the managed instance group. */ - public RecreateInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - - /** - * When set, graceful shutdown is skipped for instance recreation even if it's configured for - * the instances. - */ - @com.google.api.client.util.Key - private java.lang.Boolean noGracefulShutdown; - - /** When set, graceful shutdown is skipped for instance recreation even if it's configured for the - instances. [default: false] - */ - public java.lang.Boolean getNoGracefulShutdown() { - return noGracefulShutdown; - } - - /** - * When set, graceful shutdown is skipped for instance recreation even if it's configured for - * the instances. - */ - public RecreateInstances setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { - this.noGracefulShutdown = noGracefulShutdown; - return this; - } - - /** - * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. - * - *

- * Boolean properties can have four possible values: - * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} - * or {@link Boolean#FALSE}. - *

- * - *

- * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} - * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and - * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - *

- * - *

- * When set, graceful shutdown is skipped for instance recreation even if it's configured for the - instances. - *

- */ - public boolean isNoGracefulShutdown() { - if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { - return false; - } - return noGracefulShutdown; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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). + * The name of the managed instance group. It should conform to RFC1035. */ - public RecreateInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public DeletePerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } @Override - public RecreateInstances set(String parameterName, Object value) { - return (RecreateInstances) super.set(parameterName, value); + public DeletePerInstanceConfigs set(String parameterName, Object value) { + return (DeletePerInstanceConfigs) super.set(parameterName, value); } } /** - * Resizes the managed instance group. If you increase the size, the group creates new instances - * using the current instance template. If you decrease the size, the group deletes instances. The - * resize operation is markedDONE when the resize actions are scheduled even if the group has not - * yet added or deleted any instances. You must separately verify the status of the creating or - * deleting actions with thelistmanagedinstances method. - * - * When resizing down, the instance group arbitrarily chooses the order in which VMs are deleted. - * The group takes into account some VM attributes when making the selection including: - * - * + The status of the VM instance. + The health of the VM instance. + The instance template version - * the VM is based on. + For regional managed instance groups, the location of the VM instance. - * - * This list is subject to change. - * - * If the group is part of a backend service that has enabled connection draining, it can take up to - * 60 seconds after the connection draining duration has elapsed before the VM instance is removed - * or deleted. + * Returns all of the details about the specified managed instance group. * - * Create a request for the method "instanceGroupManagers.resize". + * Create a request for the method "instanceGroupManagers.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Resize#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of thezone where the managed instance group is located. * @param instanceGroupManager The name of the managed instance group. - * @param size The number of running instances that the managed instance group should - maintain at any given time. - * The group automatically adds or removes - instances to maintain the number of instances - * specified by this parameter. * @return the request */ - public Resize resize(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.Integer size) throws java.io.IOException { - Resize result = new Resize(project, zone, instanceGroupManager, size); + public Get get(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { + Get result = new Get(project, zone, instanceGroupManager); initialize(result); return result; } - public class Resize extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Resizes the managed instance group. If you increase the size, the group creates new instances - * using the current instance template. If you decrease the size, the group deletes instances. The - * resize operation is markedDONE when the resize actions are scheduled even if the group has not - * yet added or deleted any instances. You must separately verify the status of the creating or - * deleting actions with thelistmanagedinstances method. - * - * When resizing down, the instance group arbitrarily chooses the order in which VMs are deleted. - * The group takes into account some VM attributes when making the selection including: - * - * + The status of the VM instance. + The health of the VM instance. + The instance template - * version the VM is based on. + For regional managed instance groups, the location of the VM - * instance. - * - * This list is subject to change. - * - * If the group is part of a backend service that has enabled connection draining, it can take up - * to 60 seconds after the connection draining duration has elapsed before the VM instance is - * removed or deleted. + * Returns all of the details about the specified managed instance group. * - * Create a request for the method "instanceGroupManagers.resize". + * Create a request for the method "instanceGroupManagers.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Resize#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. * @param zone The name of thezone where the managed instance group is located. * @param instanceGroupManager The name of the managed instance group. - * @param size The number of running instances that the managed instance group should - maintain at any given time. - * The group automatically adds or removes - instances to maintain the number of instances - * specified by this parameter. * @since 1.13 */ - protected Resize(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.Integer size) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Get(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManager.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -64734,67 +63475,76 @@ protected Resize(java.lang.String project, java.lang.String zone, java.lang.Stri } this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - this.size = com.google.api.client.util.Preconditions.checkNotNull(size, "Required parameter size must be specified."); } @Override - public Resize set$Xgafv(java.lang.String $Xgafv) { - return (Resize) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Resize setAccessToken(java.lang.String accessToken) { - return (Resize) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Resize setAlt(java.lang.String alt) { - return (Resize) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Resize setCallback(java.lang.String callback) { - return (Resize) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Resize setFields(java.lang.String fields) { - return (Resize) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Resize setKey(java.lang.String key) { - return (Resize) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Resize setOauthToken(java.lang.String oauthToken) { - return (Resize) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Resize) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Resize setQuotaUser(java.lang.String quotaUser) { - return (Resize) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Resize setUploadType(java.lang.String uploadType) { - return (Resize) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Resize setUploadProtocol(java.lang.String uploadProtocol) { - return (Resize) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Resize setUserIp(java.lang.String userIp) { - return (Resize) 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. */ @@ -64808,7 +63558,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Resize 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 " + @@ -64833,7 +63583,7 @@ public java.lang.String getZone() { /** * The name of thezone where the managed instance group is located. */ - public Resize setZone(java.lang.String zone) { + public Get setZone(java.lang.String zone) { this.zone = zone; return this; } @@ -64849,162 +63599,69 @@ public java.lang.String getInstanceGroupManager() { } /** The name of the managed instance group. */ - public Resize setInstanceGroupManager(java.lang.String instanceGroupManager) { + public Get setInstanceGroupManager(java.lang.String instanceGroupManager) { this.instanceGroupManager = instanceGroupManager; return this; } - /** - * The number of running instances that the managed instance group should maintain at any - * given time. The group automatically adds or removes instances to maintain the number of - * instances specified by this parameter. - */ - @com.google.api.client.util.Key - private java.lang.Integer size; - - /** The number of running instances that the managed instance group should maintain at any given time. - The group automatically adds or removes instances to maintain the number of instances specified by - this parameter. - */ - public java.lang.Integer getSize() { - return size; + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } + } + /** + * Returns information about available accelerator topologies for a given MIG. + * + * Create a request for the method "instanceGroupManagers.getAvailableAcceleratorTopologies". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetAvailableAcceleratorTopologies#execute()} method to invoke the + * remote operation. + * + * @param project Required. Project ID for this request. + * @param zone Required. The name of thezone where the managed + instance group is located. + Name should conform to + * RFC1035. + * @param resourceId Required. The name of the managed instance group. + It should conform to RFC1035. + * @return the request + */ + public GetAvailableAcceleratorTopologies getAvailableAcceleratorTopologies(java.lang.String project, java.lang.String zone, java.lang.String resourceId) throws java.io.IOException { + GetAvailableAcceleratorTopologies result = new GetAvailableAcceleratorTopologies(project, zone, resourceId); + initialize(result); + return result; + } - /** - * The number of running instances that the managed instance group should maintain at any - * given time. The group automatically adds or removes instances to maintain the number of - * instances specified by this parameter. - */ - public Resize setSize(java.lang.Integer size) { - this.size = size; - return this; - } + public class GetAvailableAcceleratorTopologies extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{resourceId}/getAvailableAcceleratorTopologies"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * Returns information about available accelerator topologies for a given MIG. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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 Resize setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public Resize set(String parameterName, Object value) { - return (Resize) super.set(parameterName, value); - } - } - /** - * Resizes the managed instance group with advanced configuration options like disabling creation - * retries. This is an extended version of theresize method. - * - * If you increase the size of the instance group, the group creates new instances using the current - * instance template. If you decrease the size, the group deletes instances. The resize operation is - * markedDONE when the resize actions are scheduled even if the group has not yet added or deleted - * any instances. You must separately verify the status of the creating,creatingWithoutRetries, or - * deleting actions with the get orlistmanagedinstances method. - * - * If the group is part of a backend service that has enabled connection draining, it can take up to - * 60 seconds after the connection draining duration has elapsed before the VM instance is removed - * or deleted. - * - * Create a request for the method "instanceGroupManagers.resizeAdvanced". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ResizeAdvanced#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersResizeAdvancedRequest} - * @return the request - */ - public ResizeAdvanced resizeAdvanced(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersResizeAdvancedRequest content) throws java.io.IOException { - ResizeAdvanced result = new ResizeAdvanced(project, zone, instanceGroupManager, content); - initialize(result); - return result; - } - - public class ResizeAdvanced extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - /** - * Resizes the managed instance group with advanced configuration options like disabling creation - * retries. This is an extended version of theresize method. - * - * If you increase the size of the instance group, the group creates new instances using the - * current instance template. If you decrease the size, the group deletes instances. The resize - * operation is markedDONE when the resize actions are scheduled even if the group has not yet - * added or deleted any instances. You must separately verify the status of the - * creating,creatingWithoutRetries, or deleting actions with the get orlistmanagedinstances - * method. - * - * If the group is part of a backend service that has enabled connection draining, it can take up - * to 60 seconds after the connection draining duration has elapsed before the VM instance is - * removed or deleted. - * - * Create a request for the method "instanceGroupManagers.resizeAdvanced". + * Create a request for the method "instanceGroupManagers.getAvailableAcceleratorTopologies". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ResizeAdvanced#execute()} method to invoke the remote operation. - *

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

{@link GetAvailableAcceleratorTopologies#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 thezone where the managed + * @param project Required. Project ID for this request. + * @param zone Required. The name of thezone where the managed instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersResizeAdvancedRequest} + Name should conform to + * RFC1035. + * @param resourceId Required. The name of the managed instance group. + It should conform to RFC1035. * @since 1.13 */ - protected ResizeAdvanced(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersResizeAdvancedRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected GetAvailableAcceleratorTopologies(java.lang.String project, java.lang.String zone, java.lang.String resourceId) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -65012,81 +63669,91 @@ protected ResizeAdvanced(java.lang.String project, java.lang.String zone, java.l "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + this.resourceId = com.google.api.client.util.Preconditions.checkNotNull(resourceId, "Required parameter resourceId must be specified."); } @Override - public ResizeAdvanced set$Xgafv(java.lang.String $Xgafv) { - return (ResizeAdvanced) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public ResizeAdvanced setAccessToken(java.lang.String accessToken) { - return (ResizeAdvanced) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public ResizeAdvanced setAlt(java.lang.String alt) { - return (ResizeAdvanced) super.setAlt(alt); + public GetAvailableAcceleratorTopologies set$Xgafv(java.lang.String $Xgafv) { + return (GetAvailableAcceleratorTopologies) super.set$Xgafv($Xgafv); } @Override - public ResizeAdvanced setCallback(java.lang.String callback) { - return (ResizeAdvanced) super.setCallback(callback); + public GetAvailableAcceleratorTopologies setAccessToken(java.lang.String accessToken) { + return (GetAvailableAcceleratorTopologies) super.setAccessToken(accessToken); } @Override - public ResizeAdvanced setFields(java.lang.String fields) { - return (ResizeAdvanced) super.setFields(fields); + public GetAvailableAcceleratorTopologies setAlt(java.lang.String alt) { + return (GetAvailableAcceleratorTopologies) super.setAlt(alt); } @Override - public ResizeAdvanced setKey(java.lang.String key) { - return (ResizeAdvanced) super.setKey(key); + public GetAvailableAcceleratorTopologies setCallback(java.lang.String callback) { + return (GetAvailableAcceleratorTopologies) super.setCallback(callback); } @Override - public ResizeAdvanced setOauthToken(java.lang.String oauthToken) { - return (ResizeAdvanced) super.setOauthToken(oauthToken); + public GetAvailableAcceleratorTopologies setFields(java.lang.String fields) { + return (GetAvailableAcceleratorTopologies) super.setFields(fields); } @Override - public ResizeAdvanced setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ResizeAdvanced) super.setPrettyPrint(prettyPrint); + public GetAvailableAcceleratorTopologies setKey(java.lang.String key) { + return (GetAvailableAcceleratorTopologies) super.setKey(key); } @Override - public ResizeAdvanced setQuotaUser(java.lang.String quotaUser) { - return (ResizeAdvanced) super.setQuotaUser(quotaUser); + public GetAvailableAcceleratorTopologies setOauthToken(java.lang.String oauthToken) { + return (GetAvailableAcceleratorTopologies) super.setOauthToken(oauthToken); } @Override - public ResizeAdvanced setUploadType(java.lang.String uploadType) { - return (ResizeAdvanced) super.setUploadType(uploadType); + public GetAvailableAcceleratorTopologies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetAvailableAcceleratorTopologies) super.setPrettyPrint(prettyPrint); } @Override - public ResizeAdvanced setUploadProtocol(java.lang.String uploadProtocol) { - return (ResizeAdvanced) super.setUploadProtocol(uploadProtocol); + public GetAvailableAcceleratorTopologies setQuotaUser(java.lang.String quotaUser) { + return (GetAvailableAcceleratorTopologies) super.setQuotaUser(quotaUser); } @Override - public ResizeAdvanced setUserIp(java.lang.String userIp) { - return (ResizeAdvanced) super.setUserIp(userIp); + public GetAvailableAcceleratorTopologies setUploadType(java.lang.String uploadType) { + return (GetAvailableAcceleratorTopologies) super.setUploadType(uploadType); } - /** Project ID for this request. */ + @Override + public GetAvailableAcceleratorTopologies setUploadProtocol(java.lang.String uploadProtocol) { + return (GetAvailableAcceleratorTopologies) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetAvailableAcceleratorTopologies setUserIp(java.lang.String userIp) { + return (GetAvailableAcceleratorTopologies) super.setUserIp(userIp); + } + + /** Required. Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Required. Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ - public ResizeAdvanced setProject(java.lang.String project) { + /** Required. Project ID for this request. */ + public GetAvailableAcceleratorTopologies setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -65097,168 +63764,111 @@ public ResizeAdvanced setProject(java.lang.String project) { } /** - * The name of thezone where the managed instance group is located. + * Required. The name of thezone where the managed instance group is located. Name should + * conform to RFC1035. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of thezone where the managed instance group is located. + /** Required. The name of thezone where the managed instance group is located. Name should conform to + RFC1035. */ public java.lang.String getZone() { return zone; } /** - * The name of thezone where the managed instance group is located. + * Required. The name of thezone where the managed instance group is located. Name should + * conform to RFC1035. */ - public ResizeAdvanced setZone(java.lang.String zone) { + public GetAvailableAcceleratorTopologies setZone(java.lang.String zone) { this.zone = zone; return this; } - /** The name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group. */ - public ResizeAdvanced setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Required. The name of the managed instance group. It should conform to RFC1035. */ @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 resourceId; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Required. The name of the managed instance group. It should conform to RFC1035. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResourceId() { + return resourceId; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Required. The name of the managed instance group. It should conform to RFC1035. */ - public ResizeAdvanced setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public GetAvailableAcceleratorTopologies setResourceId(java.lang.String resourceId) { + this.resourceId = resourceId; return this; } @Override - public ResizeAdvanced set(String parameterName, Object value) { - return (ResizeAdvanced) super.set(parameterName, value); + public GetAvailableAcceleratorTopologies set(String parameterName, Object value) { + return (GetAvailableAcceleratorTopologies) super.set(parameterName, value); } } /** - * Flags the specified instances in the managed instance group to be resumed. This method increases - * thetargetSize and decreases the targetSuspendedSize of the managed instance group by the number - * of instances that you resume. The resumeInstances operation is marked DONE if the resumeInstances - * request is successful. The underlying actions take additional time. You must separately verify - * the status of theRESUMING action with thelistmanagedinstances method. - * - * In this request, you can only specify instances that are suspended. For example, if an instance - * was previously suspended using the suspendInstances method, it can be resumed using the - * resumeInstances method. - * - * If a health check is attached to the managed instance group, the specified instances will be - * verified as healthy after they are resumed. + * Creates a managed instance group using the information that you specify in the request. After the + * group is created, instances in the group are created using the specified instance template. This + * operation is marked as DONE when the group is created even if the instances in the group have not + * yet been created. You must separately verify the status of the individual instances with + * thelistmanagedinstances method. * - * You can specify a maximum of 1000 instances with this method per request. + * A managed instance group can have up to 1000 VM instances per group. Please contact Cloud Support + * if you need an increase in this limit. * - * Create a request for the method "instanceGroupManagers.resumeInstances". + * Create a request for the method "instanceGroupManagers.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ResumeInstances#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersResumeInstancesRequest} + * @param zone The name of the zone + where you want to create the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} * @return the request */ - public ResumeInstances resumeInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersResumeInstancesRequest content) throws java.io.IOException { - ResumeInstances result = new ResumeInstances(project, zone, instanceGroupManager, content); + public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstanceGroupManager content) throws java.io.IOException { + Insert result = new Insert(project, zone, content); initialize(result); return result; } - public class ResumeInstances extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resumeInstances"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Flags the specified instances in the managed instance group to be resumed. This method - * increases thetargetSize and decreases the targetSuspendedSize of the managed instance group by - * the number of instances that you resume. The resumeInstances operation is marked DONE if the - * resumeInstances request is successful. The underlying actions take additional time. You must - * separately verify the status of theRESUMING action with thelistmanagedinstances method. - * - * In this request, you can only specify instances that are suspended. For example, if an instance - * was previously suspended using the suspendInstances method, it can be resumed using the - * resumeInstances method. - * - * If a health check is attached to the managed instance group, the specified instances will be - * verified as healthy after they are resumed. + * Creates a managed instance group using the information that you specify in the request. After + * the group is created, instances in the group are created using the specified instance template. + * This operation is marked as DONE when the group is created even if the instances in the group + * have not yet been created. You must separately verify the status of the individual instances + * with thelistmanagedinstances method. * - * You can specify a maximum of 1000 instances with this method per request. + * A managed instance group can have up to 1000 VM instances per group. Please contact Cloud + * Support if you need an increase in this limit. * - * Create a request for the method "instanceGroupManagers.resumeInstances". + * Create a request for the method "instanceGroupManagers.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ResumeInstances#execute()} method to invoke the remote operation. - *

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

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

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

* * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersResumeInstancesRequest} + * @param zone The name of the zone + where you want to create the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} * @since 1.13 */ - protected ResumeInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersResumeInstancesRequest content) { + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstanceGroupManager content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -65267,67 +63877,66 @@ protected ResumeInstances(java.lang.String project, java.lang.String zone, java. "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public ResumeInstances set$Xgafv(java.lang.String $Xgafv) { - return (ResumeInstances) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public ResumeInstances setAccessToken(java.lang.String accessToken) { - return (ResumeInstances) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public ResumeInstances setAlt(java.lang.String alt) { - return (ResumeInstances) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public ResumeInstances setCallback(java.lang.String callback) { - return (ResumeInstances) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public ResumeInstances setFields(java.lang.String fields) { - return (ResumeInstances) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public ResumeInstances setKey(java.lang.String key) { - return (ResumeInstances) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public ResumeInstances setOauthToken(java.lang.String oauthToken) { - return (ResumeInstances) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public ResumeInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ResumeInstances) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public ResumeInstances setQuotaUser(java.lang.String quotaUser) { - return (ResumeInstances) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public ResumeInstances setUploadType(java.lang.String uploadType) { - return (ResumeInstances) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public ResumeInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (ResumeInstances) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public ResumeInstances setUserIp(java.lang.String userIp) { - return (ResumeInstances) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -65341,7 +63950,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ResumeInstances setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -65352,41 +63961,25 @@ public ResumeInstances setProject(java.lang.String project) { } /** - * The name of thezone where the managed instance group is located. + * The name of the zone where you want to create the managed instance group. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of thezone where the managed instance group is located. + /** The name of the zone where you want to create the managed instance group. */ public java.lang.String getZone() { return zone; } /** - * The name of thezone where the managed instance group is located. + * The name of the zone where you want to create the managed instance group. */ - public ResumeInstances setZone(java.lang.String zone) { + public Insert setZone(java.lang.String zone) { this.zone = zone; return this; } - /** The name of the managed instance group. */ - @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; - - /** The name of the managed instance group. - */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; - } - - /** The name of the managed instance group. */ - public ResumeInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; - return this; - } - /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -65431,67 +64024,61 @@ 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 ResumeInstances setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public ResumeInstances set(String parameterName, Object value) { - return (ResumeInstances) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Motifies the autohealing policy for the instances in this managed instance group. [Deprecated] - * This method is deprecated. UseinstanceGroupManagers.patch instead. + * Retrieves a list of managed instance groups that are contained within the specified project and + * zone. * - * Create a request for the method "instanceGroupManagers.setAutoHealingPolicies". + * Create a request for the method "instanceGroupManagers.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetAutoHealingPolicies#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 thezone where the managed instance group is located. - * @param instanceGroupManager The name of the instance group manager. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersSetAutoHealingRequest} * @return the request */ - public SetAutoHealingPolicies setAutoHealingPolicies(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersSetAutoHealingRequest content) throws java.io.IOException { - SetAutoHealingPolicies result = new SetAutoHealingPolicies(project, zone, instanceGroupManager, 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 SetAutoHealingPolicies extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Motifies the autohealing policy for the instances in this managed instance group. [Deprecated] - * This method is deprecated. UseinstanceGroupManagers.patch instead. + * Retrieves a list of managed instance groups that are contained within the specified project and + * zone. * - * Create a request for the method "instanceGroupManagers.setAutoHealingPolicies". + * Create a request for the method "instanceGroupManagers.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetAutoHealingPolicies#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. * @param zone The name of thezone where the managed instance group is located. - * @param instanceGroupManager The name of the instance group manager. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersSetAutoHealingRequest} * @since 1.13 */ - protected SetAutoHealingPolicies(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersSetAutoHealingRequest 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.InstanceGroupManagerList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -65499,70 +64086,79 @@ protected SetAutoHealingPolicies(java.lang.String project, java.lang.String zone "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public SetAutoHealingPolicies set$Xgafv(java.lang.String $Xgafv) { - return (SetAutoHealingPolicies) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetAutoHealingPolicies setAccessToken(java.lang.String accessToken) { - return (SetAutoHealingPolicies) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetAutoHealingPolicies setAlt(java.lang.String alt) { - return (SetAutoHealingPolicies) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public SetAutoHealingPolicies setCallback(java.lang.String callback) { - return (SetAutoHealingPolicies) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public SetAutoHealingPolicies setFields(java.lang.String fields) { - return (SetAutoHealingPolicies) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public SetAutoHealingPolicies setKey(java.lang.String key) { - return (SetAutoHealingPolicies) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public SetAutoHealingPolicies setOauthToken(java.lang.String oauthToken) { - return (SetAutoHealingPolicies) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public SetAutoHealingPolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetAutoHealingPolicies) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public SetAutoHealingPolicies setQuotaUser(java.lang.String quotaUser) { - return (SetAutoHealingPolicies) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public SetAutoHealingPolicies setUploadType(java.lang.String uploadType) { - return (SetAutoHealingPolicies) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public SetAutoHealingPolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (SetAutoHealingPolicies) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public SetAutoHealingPolicies setUserIp(java.lang.String userIp) { - return (SetAutoHealingPolicies) super.setUserIp(userIp); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } - /** Project ID for this request. */ + @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; @@ -65573,7 +64169,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetAutoHealingPolicies 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 " + @@ -65598,133 +64194,338 @@ public java.lang.String getZone() { /** * The name of thezone where the managed instance group is located. */ - public SetAutoHealingPolicies setZone(java.lang.String zone) { + public List setZone(java.lang.String zone) { this.zone = zone; return this; } - /** The name of the instance group manager. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String instanceGroupManager; + private java.lang.String filter; - /** The name of the instance group manager. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getFilter() { + return filter; } - /** The name of the instance group manager. */ - public SetAutoHealingPolicies setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; return this; } /** - * An optional request ID to identify requests. Specify a unique 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 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. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original 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 SetAutoHealingPolicies setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public SetAutoHealingPolicies set(String parameterName, Object value) { - return (SetAutoHealingPolicies) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Specifies the instance template to use when creating new instances in this group. The templates - * for existing instances in the group do not change unless you run recreateInstances, - * runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. + * Lists all errors thrown by actions on instances for a given managed instance group. The filter + * and orderBy query parameters are not supported. * - * Create a request for the method "instanceGroupManagers.setInstanceTemplate". + * Create a request for the method "instanceGroupManagers.listErrors". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetInstanceTemplate#execute()} method to invoke the remote operation. + * parameters, call the {@link ListErrors#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of thezone where the managed instance group is located. + It should conform to RFC1035. * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersSetInstanceTemplateRequest} + It must be a string that meets the requirements in RFC1035, + * or an + unsigned long integer: must match regexp pattern: + * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. * @return the request */ - public SetInstanceTemplate setInstanceTemplate(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersSetInstanceTemplateRequest content) throws java.io.IOException { - SetInstanceTemplate result = new SetInstanceTemplate(project, zone, instanceGroupManager, content); + public ListErrors listErrors(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { + ListErrors result = new ListErrors(project, zone, instanceGroupManager); initialize(result); return result; } - public class SetInstanceTemplate extends ComputeRequest { + public class ListErrors extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Specifies the instance template to use when creating new instances in this group. The templates - * for existing instances in the group do not change unless you run recreateInstances, - * runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. + * Lists all errors thrown by actions on instances for a given managed instance group. The filter + * and orderBy query parameters are not supported. * - * Create a request for the method "instanceGroupManagers.setInstanceTemplate". + * Create a request for the method "instanceGroupManagers.listErrors". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetInstanceTemplate#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. * @param zone The name of thezone where the managed instance group is located. + It should conform to RFC1035. * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersSetInstanceTemplateRequest} + It must be a string that meets the requirements in RFC1035, + * or an + unsigned long integer: must match regexp pattern: + * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. * @since 1.13 */ - protected SetInstanceTemplate(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersSetInstanceTemplateRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected ListErrors(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManagersListErrorsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -65736,63 +64537,73 @@ protected SetInstanceTemplate(java.lang.String project, java.lang.String zone, j } @Override - public SetInstanceTemplate set$Xgafv(java.lang.String $Xgafv) { - return (SetInstanceTemplate) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetInstanceTemplate setAccessToken(java.lang.String accessToken) { - return (SetInstanceTemplate) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetInstanceTemplate setAlt(java.lang.String alt) { - return (SetInstanceTemplate) super.setAlt(alt); + public ListErrors set$Xgafv(java.lang.String $Xgafv) { + return (ListErrors) super.set$Xgafv($Xgafv); } @Override - public SetInstanceTemplate setCallback(java.lang.String callback) { - return (SetInstanceTemplate) super.setCallback(callback); + public ListErrors setAccessToken(java.lang.String accessToken) { + return (ListErrors) super.setAccessToken(accessToken); } @Override - public SetInstanceTemplate setFields(java.lang.String fields) { - return (SetInstanceTemplate) super.setFields(fields); + public ListErrors setAlt(java.lang.String alt) { + return (ListErrors) super.setAlt(alt); } @Override - public SetInstanceTemplate setKey(java.lang.String key) { - return (SetInstanceTemplate) super.setKey(key); + public ListErrors setCallback(java.lang.String callback) { + return (ListErrors) super.setCallback(callback); } @Override - public SetInstanceTemplate setOauthToken(java.lang.String oauthToken) { - return (SetInstanceTemplate) super.setOauthToken(oauthToken); + public ListErrors setFields(java.lang.String fields) { + return (ListErrors) super.setFields(fields); } @Override - public SetInstanceTemplate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetInstanceTemplate) super.setPrettyPrint(prettyPrint); + public ListErrors setKey(java.lang.String key) { + return (ListErrors) super.setKey(key); } @Override - public SetInstanceTemplate setQuotaUser(java.lang.String quotaUser) { - return (SetInstanceTemplate) super.setQuotaUser(quotaUser); + public ListErrors setOauthToken(java.lang.String oauthToken) { + return (ListErrors) super.setOauthToken(oauthToken); } @Override - public SetInstanceTemplate setUploadType(java.lang.String uploadType) { - return (SetInstanceTemplate) super.setUploadType(uploadType); + public ListErrors setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListErrors) super.setPrettyPrint(prettyPrint); } @Override - public SetInstanceTemplate setUploadProtocol(java.lang.String uploadProtocol) { - return (SetInstanceTemplate) super.setUploadProtocol(uploadProtocol); + public ListErrors setQuotaUser(java.lang.String quotaUser) { + return (ListErrors) super.setQuotaUser(quotaUser); } @Override - public SetInstanceTemplate setUserIp(java.lang.String userIp) { - return (SetInstanceTemplate) super.setUserIp(userIp); + public ListErrors setUploadType(java.lang.String uploadType) { + return (ListErrors) super.setUploadType(uploadType); + } + + @Override + public ListErrors setUploadProtocol(java.lang.String uploadProtocol) { + return (ListErrors) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListErrors setUserIp(java.lang.String userIp) { + return (ListErrors) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -65806,7 +64617,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetInstanceTemplate setProject(java.lang.String project) { + public ListErrors setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -65817,406 +64628,379 @@ public SetInstanceTemplate setProject(java.lang.String project) { } /** - * The name of thezone where the managed instance group is located. + * The name of thezone where the managed instance group is located. It should conform to + * RFC1035. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of thezone where the managed instance group is located. + /** The name of thezone where the managed instance group is located. It should conform to RFC1035. */ public java.lang.String getZone() { return zone; } /** - * The name of thezone where the managed instance group is located. + * The name of thezone where the managed instance group is located. It should conform to + * RFC1035. */ - public SetInstanceTemplate setZone(java.lang.String zone) { + public ListErrors setZone(java.lang.String zone) { this.zone = zone; return this; } - /** The name of the managed instance group. */ + /** + * The name of the managed instance group. It must be a string that meets the requirements in + * RFC1035, or an unsigned long integer: must match regexp pattern: + * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + */ @com.google.api.client.util.Key private java.lang.String instanceGroupManager; - /** The name of the managed instance group. + /** The name of the managed instance group. It must be a string that meets the requirements in RFC1035, + or an unsigned long integer: must match regexp pattern: + (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. */ public java.lang.String getInstanceGroupManager() { return instanceGroupManager; } - /** The name of the managed instance group. */ - public SetInstanceTemplate setInstanceGroupManager(java.lang.String instanceGroupManager) { + /** + * The name of the managed instance group. It must be a string that meets the requirements in + * RFC1035, or an unsigned long integer: must match regexp pattern: + * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. + */ + public ListErrors setInstanceGroupManager(java.lang.String instanceGroupManager) { this.instanceGroupManager = instanceGroupManager; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String filter; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public SetInstanceTemplate setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - @Override - public SetInstanceTemplate set(String parameterName, Object value) { - return (SetInstanceTemplate) super.set(parameterName, value); - } - } - /** - * Modifies the target pools to which all instances in this managed instance group are assigned. The - * target pools automatically apply to all of the instances in the managed instance group. This - * operation is markedDONE when you make the request even if the instances have not yet been added - * to their target pools. The change might take some time to apply to all of the instances in the - * group depending on the size of the group. - * - * Create a request for the method "instanceGroupManagers.setTargetPools". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetTargetPools#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersSetTargetPoolsRequest} - * @return the request - */ - public SetTargetPools setTargetPools(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersSetTargetPoolsRequest content) throws java.io.IOException { - SetTargetPools result = new SetTargetPools(project, zone, instanceGroupManager, content); - initialize(result); - return result; - } + 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. - public class SetTargetPools extends ComputeRequest { + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools"; + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + `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; + } /** - * Modifies the target pools to which all instances in this managed instance group are assigned. - * The target pools automatically apply to all of the instances in the managed instance group. - * This operation is markedDONE when you make the request even if the instances have not yet been - * added to their target pools. The change might take some time to apply to all of the instances - * in the group depending on the size of the group. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "instanceGroupManagers.setTargetPools". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetTargetPools#execute()} method to invoke the remote operation. - *

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

+ * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersSetTargetPoolsRequest} - * @since 1.13 + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - protected SetTargetPools(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersSetTargetPoolsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); - } - - @Override - public SetTargetPools set$Xgafv(java.lang.String $Xgafv) { - return (SetTargetPools) super.set$Xgafv($Xgafv); - } - - @Override - public SetTargetPools setAccessToken(java.lang.String accessToken) { - return (SetTargetPools) super.setAccessToken(accessToken); - } - - @Override - public SetTargetPools setAlt(java.lang.String alt) { - return (SetTargetPools) super.setAlt(alt); - } - - @Override - public SetTargetPools setCallback(java.lang.String callback) { - return (SetTargetPools) super.setCallback(callback); - } - - @Override - public SetTargetPools setFields(java.lang.String fields) { - return (SetTargetPools) super.setFields(fields); - } - - @Override - public SetTargetPools setKey(java.lang.String key) { - return (SetTargetPools) super.setKey(key); - } - - @Override - public SetTargetPools setOauthToken(java.lang.String oauthToken) { - return (SetTargetPools) super.setOauthToken(oauthToken); - } - - @Override - public SetTargetPools setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetTargetPools) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetTargetPools setQuotaUser(java.lang.String quotaUser) { - return (SetTargetPools) super.setQuotaUser(quotaUser); - } - - @Override - public SetTargetPools setUploadType(java.lang.String uploadType) { - return (SetTargetPools) super.setUploadType(uploadType); - } - - @Override - public SetTargetPools setUploadProtocol(java.lang.String uploadProtocol) { - return (SetTargetPools) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetTargetPools setUserIp(java.lang.String userIp) { - return (SetTargetPools) super.setUserIp(userIp); + public ListErrors setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - /** Project ID 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 project; + private java.lang.Long maxResults; - /** Project ID 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 getProject() { - return project; + public java.lang.Long getMaxResults() { + return maxResults; } - /** Project ID for this request. */ - public SetTargetPools setProject(java.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; + /** + * 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 ListErrors setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; return this; } /** - * The name of thezone where the managed instance group is located. + * 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 zone; + private java.lang.String orderBy; - /** The name of thezone where the managed instance group is located. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getOrderBy() { + return orderBy; } /** - * The name of thezone where the managed instance group is located. + * 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 SetTargetPools setZone(java.lang.String zone) { - this.zone = zone; + public ListErrors setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; return this; } - /** The name of the managed instance group. */ + /** + * 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 instanceGroupManager; + private java.lang.String pageToken; - /** The name of the managed instance group. + /** 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 getInstanceGroupManager() { - return instanceGroupManager; + public java.lang.String getPageToken() { + return pageToken; } - /** The name of the managed instance group. */ - public SetTargetPools setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + /** + * 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 ListErrors setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public SetTargetPools setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public ListErrors setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public SetTargetPools set(String parameterName, Object value) { - return (SetTargetPools) super.set(parameterName, value); + public ListErrors set(String parameterName, Object value) { + return (ListErrors) super.set(parameterName, value); } } /** - * Flags the specified instances in the managed instance group to be started. This method increases - * thetargetSize and decreases the targetStoppedSize of the managed instance group by the number of - * instances that you start. The startInstances operation is marked DONE if the startInstances - * request is successful. The underlying actions take additional time. You must separately verify - * the status of theSTARTING action with thelistmanagedinstances method. - * - * In this request, you can only specify instances that are stopped. For example, if an instance was - * previously stopped using the stopInstances method, it can be started using the startInstances - * method. - * - * If a health check is attached to the managed instance group, the specified instances will be - * verified as healthy after they are started. - * - * You can specify a maximum of 1000 instances with this method per request. + * Lists all of the instances in the managed instance group. Each instance in the list has a + * currentAction, which indicates the action that the managed instance group is performing on the + * instance. For example, if the group is still creating an instance, the currentAction is CREATING. + * If a previous action failed, the list displays the errors for that failed action. The orderBy + * query parameter is not supported. The `pageToken` query parameter is supported only if the + * group's `listManagedInstancesResults` field is set to `PAGINATED`. * - * Create a request for the method "instanceGroupManagers.startInstances". + * Create a request for the method "instanceGroupManagers.listManagedInstances". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link StartInstances#execute()} method to invoke the remote operation. + * parameters, call the {@link ListManagedInstances#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. * @param zone The name of thezone where the managed instance group is located. * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersStartInstancesRequest} * @return the request */ - public StartInstances startInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersStartInstancesRequest content) throws java.io.IOException { - StartInstances result = new StartInstances(project, zone, instanceGroupManager, content); + public ListManagedInstances listManagedInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { + ListManagedInstances result = new ListManagedInstances(project, zone, instanceGroupManager); initialize(result); return result; } - public class StartInstances extends ComputeRequest { + public class ListManagedInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/startInstances"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Flags the specified instances in the managed instance group to be started. This method - * increases thetargetSize and decreases the targetStoppedSize of the managed instance group by - * the number of instances that you start. The startInstances operation is marked DONE if the - * startInstances request is successful. The underlying actions take additional time. You must - * separately verify the status of theSTARTING action with thelistmanagedinstances method. - * - * In this request, you can only specify instances that are stopped. For example, if an instance - * was previously stopped using the stopInstances method, it can be started using the - * startInstances method. - * - * If a health check is attached to the managed instance group, the specified instances will be - * verified as healthy after they are started. - * - * You can specify a maximum of 1000 instances with this method per request. + * Lists all of the instances in the managed instance group. Each instance in the list has a + * currentAction, which indicates the action that the managed instance group is performing on the + * instance. For example, if the group is still creating an instance, the currentAction is + * CREATING. If a previous action failed, the list displays the errors for that failed action. The + * orderBy query parameter is not supported. The `pageToken` query parameter is supported only if + * the group's `listManagedInstancesResults` field is set to `PAGINATED`. * - * Create a request for the method "instanceGroupManagers.startInstances". + * Create a request for the method "instanceGroupManagers.listManagedInstances". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link StartInstances#execute()} method to invoke the remote operation. - *

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

{@link ListManagedInstances#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 thezone where the managed instance group is located. * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersStartInstancesRequest} * @since 1.13 */ - protected StartInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersStartInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected ListManagedInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManagersListManagedInstancesResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -66228,63 +65012,63 @@ protected StartInstances(java.lang.String project, java.lang.String zone, java.l } @Override - public StartInstances set$Xgafv(java.lang.String $Xgafv) { - return (StartInstances) super.set$Xgafv($Xgafv); + public ListManagedInstances set$Xgafv(java.lang.String $Xgafv) { + return (ListManagedInstances) super.set$Xgafv($Xgafv); } @Override - public StartInstances setAccessToken(java.lang.String accessToken) { - return (StartInstances) super.setAccessToken(accessToken); + public ListManagedInstances setAccessToken(java.lang.String accessToken) { + return (ListManagedInstances) super.setAccessToken(accessToken); } @Override - public StartInstances setAlt(java.lang.String alt) { - return (StartInstances) super.setAlt(alt); + public ListManagedInstances setAlt(java.lang.String alt) { + return (ListManagedInstances) super.setAlt(alt); } @Override - public StartInstances setCallback(java.lang.String callback) { - return (StartInstances) super.setCallback(callback); + public ListManagedInstances setCallback(java.lang.String callback) { + return (ListManagedInstances) super.setCallback(callback); } @Override - public StartInstances setFields(java.lang.String fields) { - return (StartInstances) super.setFields(fields); + public ListManagedInstances setFields(java.lang.String fields) { + return (ListManagedInstances) super.setFields(fields); } @Override - public StartInstances setKey(java.lang.String key) { - return (StartInstances) super.setKey(key); + public ListManagedInstances setKey(java.lang.String key) { + return (ListManagedInstances) super.setKey(key); } @Override - public StartInstances setOauthToken(java.lang.String oauthToken) { - return (StartInstances) super.setOauthToken(oauthToken); + public ListManagedInstances setOauthToken(java.lang.String oauthToken) { + return (ListManagedInstances) super.setOauthToken(oauthToken); } @Override - public StartInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StartInstances) super.setPrettyPrint(prettyPrint); + public ListManagedInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListManagedInstances) super.setPrettyPrint(prettyPrint); } @Override - public StartInstances setQuotaUser(java.lang.String quotaUser) { - return (StartInstances) super.setQuotaUser(quotaUser); + public ListManagedInstances setQuotaUser(java.lang.String quotaUser) { + return (ListManagedInstances) super.setQuotaUser(quotaUser); } @Override - public StartInstances setUploadType(java.lang.String uploadType) { - return (StartInstances) super.setUploadType(uploadType); + public ListManagedInstances setUploadType(java.lang.String uploadType) { + return (ListManagedInstances) super.setUploadType(uploadType); } @Override - public StartInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (StartInstances) super.setUploadProtocol(uploadProtocol); + public ListManagedInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (ListManagedInstances) super.setUploadProtocol(uploadProtocol); } @Override - public StartInstances setUserIp(java.lang.String userIp) { - return (StartInstances) super.setUserIp(userIp); + public ListManagedInstances setUserIp(java.lang.String userIp) { + return (ListManagedInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -66298,7 +65082,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public StartInstances setProject(java.lang.String project) { + public ListManagedInstances setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -66323,7 +65107,7 @@ public java.lang.String getZone() { /** * The name of thezone where the managed instance group is located. */ - public StartInstances setZone(java.lang.String zone) { + public ListManagedInstances setZone(java.lang.String zone) { this.zone = zone; return this; } @@ -66339,150 +65123,331 @@ public java.lang.String getInstanceGroupManager() { } /** The name of the managed instance group. */ - public StartInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + public ListManagedInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { this.instanceGroupManager = instanceGroupManager; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * 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). - */ - @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, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * 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:* ``` * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * 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 StartInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; + @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 ListManagedInstances 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 ListManagedInstances 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 ListManagedInstances 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 ListManagedInstances 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 ListManagedInstances setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public StartInstances set(String parameterName, Object value) { - return (StartInstances) super.set(parameterName, value); + public ListManagedInstances set(String parameterName, Object value) { + return (ListManagedInstances) super.set(parameterName, value); } } /** - * Flags the specified instances in the managed instance group to be immediately stopped. You can - * only specify instances that are running in this request. This method reduces thetargetSize and - * increases the targetStoppedSize of the managed instance group by the number of instances that you - * stop. The stopInstances operation is marked DONE if the stopInstances request is successful. The - * underlying actions take additional time. You must separately verify the status of theSTOPPING - * action with thelistmanagedinstances method. - * - * If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until - * initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was - * created). This delay gives your application time to set itself up and initialize on the instance. - * If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method - * is called, there will be zero delay. - * - * If the group is part of a backend service that has enabled connection draining, it can take up to - * 60 seconds after the connection draining duration has elapsed before the VM instance is stopped. - * - * Stopped instances can be started using the startInstances method. - * - * You can specify a maximum of 1000 instances with this method per request. + * Lists all of the per-instance configurations defined for the managed instance group. The orderBy + * query parameter is not supported. * - * Create a request for the method "instanceGroupManagers.stopInstances". + * Create a request for the method "instanceGroupManagers.listPerInstanceConfigs". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link StopInstances#execute()} method to invoke the remote operation. + * parameters, call the {@link ListPerInstanceConfigs#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersStopInstancesRequest} + * @param zone The name of thezone + where the managed instance group is located. + It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. It should conform to RFC1035. * @return the request */ - public StopInstances stopInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersStopInstancesRequest content) throws java.io.IOException { - StopInstances result = new StopInstances(project, zone, instanceGroupManager, content); + public ListPerInstanceConfigs listPerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) throws java.io.IOException { + ListPerInstanceConfigs result = new ListPerInstanceConfigs(project, zone, instanceGroupManager); initialize(result); return result; } - public class StopInstances extends ComputeRequest { + public class ListPerInstanceConfigs extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/stopInstances"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Flags the specified instances in the managed instance group to be immediately stopped. You can - * only specify instances that are running in this request. This method reduces thetargetSize and - * increases the targetStoppedSize of the managed instance group by the number of instances that - * you stop. The stopInstances operation is marked DONE if the stopInstances request is - * successful. The underlying actions take additional time. You must separately verify the status - * of theSTOPPING action with thelistmanagedinstances method. - * - * If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances - * until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance - * was created). This delay gives your application time to set itself up and initialize on the - * instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when - * this method is called, there will be zero delay. - * - * If the group is part of a backend service that has enabled connection draining, it can take up - * to 60 seconds after the connection draining duration has elapsed before the VM instance is - * stopped. - * - * Stopped instances can be started using the startInstances method. - * - * You can specify a maximum of 1000 instances with this method per request. + * Lists all of the per-instance configurations defined for the managed instance group. The + * orderBy query parameter is not supported. * - * Create a request for the method "instanceGroupManagers.stopInstances". + * Create a request for the method "instanceGroupManagers.listPerInstanceConfigs". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link StopInstances#execute()} method to invoke the remote operation.

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

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

{@link ListPerInstanceConfigs#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 thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersStopInstancesRequest} + * @param zone The name of thezone + where the managed instance group is located. + It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. It should conform to RFC1035. * @since 1.13 */ - protected StopInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersStopInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected ListPerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupManagersListPerInstanceConfigsResp.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -66494,63 +65459,63 @@ protected StopInstances(java.lang.String project, java.lang.String zone, java.la } @Override - public StopInstances set$Xgafv(java.lang.String $Xgafv) { - return (StopInstances) super.set$Xgafv($Xgafv); + public ListPerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { + return (ListPerInstanceConfigs) super.set$Xgafv($Xgafv); } @Override - public StopInstances setAccessToken(java.lang.String accessToken) { - return (StopInstances) super.setAccessToken(accessToken); + public ListPerInstanceConfigs setAccessToken(java.lang.String accessToken) { + return (ListPerInstanceConfigs) super.setAccessToken(accessToken); } @Override - public StopInstances setAlt(java.lang.String alt) { - return (StopInstances) super.setAlt(alt); + public ListPerInstanceConfigs setAlt(java.lang.String alt) { + return (ListPerInstanceConfigs) super.setAlt(alt); } @Override - public StopInstances setCallback(java.lang.String callback) { - return (StopInstances) super.setCallback(callback); + public ListPerInstanceConfigs setCallback(java.lang.String callback) { + return (ListPerInstanceConfigs) super.setCallback(callback); } @Override - public StopInstances setFields(java.lang.String fields) { - return (StopInstances) super.setFields(fields); + public ListPerInstanceConfigs setFields(java.lang.String fields) { + return (ListPerInstanceConfigs) super.setFields(fields); } @Override - public StopInstances setKey(java.lang.String key) { - return (StopInstances) super.setKey(key); + public ListPerInstanceConfigs setKey(java.lang.String key) { + return (ListPerInstanceConfigs) super.setKey(key); } @Override - public StopInstances setOauthToken(java.lang.String oauthToken) { - return (StopInstances) super.setOauthToken(oauthToken); + public ListPerInstanceConfigs setOauthToken(java.lang.String oauthToken) { + return (ListPerInstanceConfigs) super.setOauthToken(oauthToken); } @Override - public StopInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StopInstances) super.setPrettyPrint(prettyPrint); + public ListPerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListPerInstanceConfigs) super.setPrettyPrint(prettyPrint); } @Override - public StopInstances setQuotaUser(java.lang.String quotaUser) { - return (StopInstances) super.setQuotaUser(quotaUser); + public ListPerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { + return (ListPerInstanceConfigs) super.setQuotaUser(quotaUser); } @Override - public StopInstances setUploadType(java.lang.String uploadType) { - return (StopInstances) super.setUploadType(uploadType); + public ListPerInstanceConfigs setUploadType(java.lang.String uploadType) { + return (ListPerInstanceConfigs) super.setUploadType(uploadType); } @Override - public StopInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (StopInstances) super.setUploadProtocol(uploadProtocol); + public ListPerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { + return (ListPerInstanceConfigs) super.setUploadProtocol(uploadProtocol); } @Override - public StopInstances setUserIp(java.lang.String userIp) { - return (StopInstances) super.setUserIp(userIp); + public ListPerInstanceConfigs setUserIp(java.lang.String userIp) { + return (ListPerInstanceConfigs) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -66564,7 +65529,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public StopInstances setProject(java.lang.String project) { + public ListPerInstanceConfigs setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -66575,232 +65540,377 @@ public StopInstances setProject(java.lang.String project) { } /** - * The name of thezone where the managed instance group is located. + * The name of thezone where the managed instance group is located. It should conform to + * RFC1035. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of thezone where the managed instance group is located. + /** The name of thezone where the managed instance group is located. It should conform to RFC1035. */ public java.lang.String getZone() { return zone; } /** - * The name of thezone where the managed instance group is located. + * The name of thezone where the managed instance group is located. It should conform to + * RFC1035. */ - public StopInstances setZone(java.lang.String zone) { + public ListPerInstanceConfigs setZone(java.lang.String zone) { this.zone = zone; return this; } - /** The name of the managed instance group. */ + /** The name of the managed instance group. It should conform to RFC1035. */ @com.google.api.client.util.Key private java.lang.String instanceGroupManager; - /** The name of the managed instance group. + /** The name of the managed instance group. It should conform to RFC1035. */ public java.lang.String getInstanceGroupManager() { return instanceGroupManager; } - /** The name of the managed instance group. */ - public StopInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + /** The name of the managed instance group. It should conform to RFC1035. */ + public ListPerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { this.instanceGroupManager = instanceGroupManager; return this; } /** - * When set, graceful shutdown is skipped for instance stopping even if it's configured for - * the instances. - */ - @com.google.api.client.util.Key - private java.lang.Boolean noGracefulShutdown; - - /** When set, graceful shutdown is skipped for instance stopping even if it's configured for the - instances. [default: false] - */ - public java.lang.Boolean getNoGracefulShutdown() { - return noGracefulShutdown; - } - - /** - * When set, graceful shutdown is skipped for instance stopping even if it's configured for - * the instances. - */ - public StopInstances setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { - this.noGracefulShutdown = noGracefulShutdown; - return this; - } - - /** - * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. + * 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. * - *

- * Boolean properties can have four possible values: - * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} - * or {@link Boolean#FALSE}. - *

+ * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - *

- * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} - * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and - * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - *

+ * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - *

- * When set, graceful shutdown is skipped for instance stopping even if it's configured for the - instances. - *

- */ - public boolean isNoGracefulShutdown() { - if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { - return false; - } - return noGracefulShutdown; - } - - /** - * An optional request ID to identify requests. Specify a unique 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 `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original 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 filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * 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 StopInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public ListPerInstanceConfigs 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 ListPerInstanceConfigs 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 ListPerInstanceConfigs 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 ListPerInstanceConfigs 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 ListPerInstanceConfigs setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public StopInstances set(String parameterName, Object value) { - return (StopInstances) super.set(parameterName, value); + public ListPerInstanceConfigs set(String parameterName, Object value) { + return (ListPerInstanceConfigs) super.set(parameterName, value); } } /** - * Flags the specified instances in the managed instance group to be immediately suspended. You can - * only specify instances that are running in this request. This method reduces thetargetSize and - * increases the targetSuspendedSize of the managed instance group by the number of instances that - * you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is - * successful. The underlying actions take additional time. You must separately verify the status of - * theSUSPENDING action with thelistmanagedinstances method. - * - * If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances - * until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was - * created). This delay gives your application time to set itself up and initialize on the instance. - * If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method - * is called, there will be zero delay. - * - * If the group is part of a backend service that has enabled connection draining, it can take up to - * 60 seconds after the connection draining duration has elapsed before the VM instance is - * suspended. - * - * Suspended instances can be resumed using the resumeInstances method. + * Updates a managed instance group using the information that you specify in the request. This + * operation is marked as DONE when the group is patched even if the instances in the group are + * still in the process of being patched. You must separately verify the status of the individual + * instances with thelistManagedInstances method. This method supportsPATCH semantics and uses + * theJSON merge patch format and processing rules. * - * You can specify a maximum of 1000 instances with this method per request. + * If you update your group to specify a new template or instance configuration, it's possible that + * your intended specification for each VM in the group is different from the current state of that + * VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating instances in + * a MIG. * - * Create a request for the method "instanceGroupManagers.suspendInstances". + * Create a request for the method "instanceGroupManagers.patch". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SuspendInstances#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 thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersSuspendInstancesRequest} + * @param zone The name of the zone where + you want to create the managed instance group. + * @param instanceGroupManager The name of the instance group manager. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} * @return the request */ - public SuspendInstances suspendInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersSuspendInstancesRequest content) throws java.io.IOException { - SuspendInstances result = new SuspendInstances(project, zone, instanceGroupManager, content); + public Patch patch(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManager content) throws java.io.IOException { + Patch result = new Patch(project, zone, instanceGroupManager, content); initialize(result); return result; } - public class SuspendInstances extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/suspendInstances"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Flags the specified instances in the managed instance group to be immediately suspended. You - * can only specify instances that are running in this request. This method reduces thetargetSize - * and increases the targetSuspendedSize of the managed instance group by the number of instances - * that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request - * is successful. The underlying actions take additional time. You must separately verify the - * status of theSUSPENDING action with thelistmanagedinstances method. - * - * If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances - * until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance - * was created). This delay gives your application time to set itself up and initialize on the - * instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when - * this method is called, there will be zero delay. - * - * If the group is part of a backend service that has enabled connection draining, it can take up - * to 60 seconds after the connection draining duration has elapsed before the VM instance is - * suspended. - * - * Suspended instances can be resumed using the resumeInstances method. + * Updates a managed instance group using the information that you specify in the request. This + * operation is marked as DONE when the group is patched even if the instances in the group are + * still in the process of being patched. You must separately verify the status of the individual + * instances with thelistManagedInstances method. This method supportsPATCH semantics and uses + * theJSON merge patch format and processing rules. * - * You can specify a maximum of 1000 instances with this method per request. + * If you update your group to specify a new template or instance configuration, it's possible + * that your intended specification for each VM in the group is different from the current state + * of that VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating + * instances in a MIG. * - * Create a request for the method "instanceGroupManagers.suspendInstances". + * Create a request for the method "instanceGroupManagers.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SuspendInstances#execute()} method to invoke the remote operation. - *

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

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

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

* * @param project Project ID for this request. - * @param zone The name of thezone where the managed - instance group is located. - * @param instanceGroupManager The name of the managed instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersSuspendInstancesRequest} + * @param zone The name of the zone where + you want to create the managed instance group. + * @param instanceGroupManager The name of the instance group manager. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} * @since 1.13 */ - protected SuspendInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersSuspendInstancesRequest 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, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManager 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(), @@ -66812,63 +65922,63 @@ protected SuspendInstances(java.lang.String project, java.lang.String zone, java } @Override - public SuspendInstances set$Xgafv(java.lang.String $Xgafv) { - return (SuspendInstances) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public SuspendInstances setAccessToken(java.lang.String accessToken) { - return (SuspendInstances) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public SuspendInstances setAlt(java.lang.String alt) { - return (SuspendInstances) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public SuspendInstances setCallback(java.lang.String callback) { - return (SuspendInstances) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public SuspendInstances setFields(java.lang.String fields) { - return (SuspendInstances) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public SuspendInstances setKey(java.lang.String key) { - return (SuspendInstances) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public SuspendInstances setOauthToken(java.lang.String oauthToken) { - return (SuspendInstances) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public SuspendInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SuspendInstances) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public SuspendInstances setQuotaUser(java.lang.String quotaUser) { - return (SuspendInstances) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public SuspendInstances setUploadType(java.lang.String uploadType) { - return (SuspendInstances) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public SuspendInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (SuspendInstances) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public SuspendInstances setUserIp(java.lang.String userIp) { - return (SuspendInstances) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -66882,7 +65992,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SuspendInstances 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 " + @@ -66893,37 +66003,37 @@ public SuspendInstances setProject(java.lang.String project) { } /** - * The name of thezone where the managed instance group is located. + * The name of the zone where you want to create the managed instance group. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of thezone where the managed instance group is located. + /** The name of the zone where you want to create the managed instance group. */ public java.lang.String getZone() { return zone; } /** - * The name of thezone where the managed instance group is located. + * The name of the zone where you want to create the managed instance group. */ - public SuspendInstances setZone(java.lang.String zone) { + public Patch setZone(java.lang.String zone) { this.zone = zone; return this; } - /** The name of the managed instance group. */ + /** The name of the instance group manager. */ @com.google.api.client.util.Key private java.lang.String instanceGroupManager; - /** The name of the managed instance group. + /** The name of the instance group manager. */ public java.lang.String getInstanceGroupManager() { return instanceGroupManager; } - /** The name of the managed instance group. */ - public SuspendInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + /** The name of the instance group manager. */ + public Patch setInstanceGroupManager(java.lang.String instanceGroupManager) { this.instanceGroupManager = instanceGroupManager; return this; } @@ -66972,68 +66082,71 @@ 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 SuspendInstances setRequestId(java.lang.String requestId) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SuspendInstances set(String parameterName, Object value) { - return (SuspendInstances) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Inserts or patches per-instance configurations for the managed instance group. + * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. * - * Create a request for the method "instanceGroupManagers.testIamPermissions". + * Create a request for the method "instanceGroupManagers.patchPerInstanceConfigs". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link PatchPerInstanceConfigs#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param zone The name of thezone + where the managed instance group is located. + It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersPatchPerInstanceConfigsReq} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); + public PatchPerInstanceConfigs patchPerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersPatchPerInstanceConfigsReq content) throws java.io.IOException { + PatchPerInstanceConfigs result = new PatchPerInstanceConfigs(project, zone, instanceGroupManager, content); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class PatchPerInstanceConfigs extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Returns permissions that a caller has on the specified resource. + * Inserts or patches per-instance configurations for the managed instance group. + * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. * - * Create a request for the method "instanceGroupManagers.testIamPermissions". + * Create a request for the method "instanceGroupManagers.patchPerInstanceConfigs". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * parameters, call the {@link PatchPerInstanceConfigs#execute()} method to invoke the remote + * operation.

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

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param zone The name of thezone + where the managed instance group is located. + It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersPatchPerInstanceConfigsReq} * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected PatchPerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersPatchPerInstanceConfigsReq 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(), @@ -67041,77 +66154,67 @@ protected TestIamPermissions(java.lang.String project, java.lang.String zone, ja "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.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}"); - } + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public PatchPerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { + return (PatchPerInstanceConfigs) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public PatchPerInstanceConfigs setAccessToken(java.lang.String accessToken) { + return (PatchPerInstanceConfigs) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public PatchPerInstanceConfigs setAlt(java.lang.String alt) { + return (PatchPerInstanceConfigs) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public PatchPerInstanceConfigs setCallback(java.lang.String callback) { + return (PatchPerInstanceConfigs) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public PatchPerInstanceConfigs setFields(java.lang.String fields) { + return (PatchPerInstanceConfigs) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public PatchPerInstanceConfigs setKey(java.lang.String key) { + return (PatchPerInstanceConfigs) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public PatchPerInstanceConfigs setOauthToken(java.lang.String oauthToken) { + return (PatchPerInstanceConfigs) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public PatchPerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchPerInstanceConfigs) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public PatchPerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { + return (PatchPerInstanceConfigs) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public PatchPerInstanceConfigs setUploadType(java.lang.String uploadType) { + return (PatchPerInstanceConfigs) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public PatchPerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchPerInstanceConfigs) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public PatchPerInstanceConfigs setUserIp(java.lang.String userIp) { + return (PatchPerInstanceConfigs) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -67125,7 +66228,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + public PatchPerInstanceConfigs setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -67135,116 +66238,170 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key + /** + * The name of thezone where the managed instance group is located. It should conform to + * RFC1035. + */ + @com.google.api.client.util.Key private java.lang.String zone; - /** The name of the zone for this request. + /** The name of thezone where the managed instance group is located. It should conform to RFC1035. */ public java.lang.String getZone() { return zone; } - /** The name of the zone for this request. */ - public TestIamPermissions setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } + /** + * The name of thezone where the managed instance group is located. It should conform to + * RFC1035. + */ + public PatchPerInstanceConfigs setZone(java.lang.String zone) { this.zone = zone; return this; } - /** Name or id of the resource for this request. */ + /** + * The name of the managed instance group. It should conform to RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String instanceGroupManager; - /** Name or id of the resource for this request. + /** The name of the managed instance group. It should conform to RFC1035. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + public PatchPerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public PatchPerInstanceConfigs setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public PatchPerInstanceConfigs set(String parameterName, Object value) { + return (PatchPerInstanceConfigs) super.set(parameterName, value); } } /** - * Updates a managed instance group using the information that you specify in the request. This - * operation is marked as DONE when the group is updated even if the instances in the group have not - * yet been updated. You must separately verify the status of the individual instances with - * thelistManagedInstances method. + * Flags the specified VM instances in the managed instance group to be immediately recreated. Each + * instance is recreated using the group's current configuration. This operation is marked as DONE + * when the flag is set even if the instances have not yet been recreated. You must separately + * verify the status of each instance by checking itscurrentAction field; for more information, see + * Checking the status of managed instances. * - * If you update your group to specify a new template or instance configuration, it's possible that - * your intended specification for each VM in the group is different from the current state of that - * VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating instances in - * a MIG. + * If the group is part of a backend service that has enabled connection draining, it can take up to + * 60 seconds after the connection draining duration has elapsed before the VM instance is removed + * or deleted. * - * Create a request for the method "instanceGroupManagers.update". + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.recreateInstances". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link RecreateInstances#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone - where you want to create the managed instance group. - * @param instanceGroupManager The name of the instance group manager. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersRecreateInstancesRequest} * @return the request */ - public Update update(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManager content) throws java.io.IOException { - Update result = new Update(project, zone, instanceGroupManager, content); + public RecreateInstances recreateInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersRecreateInstancesRequest content) throws java.io.IOException { + RecreateInstances result = new RecreateInstances(project, zone, instanceGroupManager, content); initialize(result); return result; } - public class Update extends ComputeRequest { + public class RecreateInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Updates a managed instance group using the information that you specify in the request. This - * operation is marked as DONE when the group is updated even if the instances in the group have - * not yet been updated. You must separately verify the status of the individual instances with - * thelistManagedInstances method. + * Flags the specified VM instances in the managed instance group to be immediately recreated. + * Each instance is recreated using the group's current configuration. This operation is marked as + * DONE when the flag is set even if the instances have not yet been recreated. You must + * separately verify the status of each instance by checking itscurrentAction field; for more + * information, see Checking the status of managed instances. * - * If you update your group to specify a new template or instance configuration, it's possible - * that your intended specification for each VM in the group is different from the current state - * of that VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating - * instances in a MIG. + * If the group is part of a backend service that has enabled connection draining, it can take up + * to 60 seconds after the connection draining duration has elapsed before the VM instance is + * removed or deleted. * - * Create a request for the method "instanceGroupManagers.update". + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.recreateInstances". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param zone The name of the zone - where you want to create the managed instance group. - * @param instanceGroupManager The name of the instance group manager. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersRecreateInstancesRequest} * @since 1.13 */ - protected Update(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManager content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected RecreateInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersRecreateInstancesRequest 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(), @@ -67256,63 +66413,63 @@ protected Update(java.lang.String project, java.lang.String zone, java.lang.Stri } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public RecreateInstances set$Xgafv(java.lang.String $Xgafv) { + return (RecreateInstances) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public RecreateInstances setAccessToken(java.lang.String accessToken) { + return (RecreateInstances) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public RecreateInstances setAlt(java.lang.String alt) { + return (RecreateInstances) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public RecreateInstances setCallback(java.lang.String callback) { + return (RecreateInstances) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public RecreateInstances setFields(java.lang.String fields) { + return (RecreateInstances) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public RecreateInstances setKey(java.lang.String key) { + return (RecreateInstances) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public RecreateInstances setOauthToken(java.lang.String oauthToken) { + return (RecreateInstances) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public RecreateInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RecreateInstances) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public RecreateInstances setQuotaUser(java.lang.String quotaUser) { + return (RecreateInstances) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public RecreateInstances setUploadType(java.lang.String uploadType) { + return (RecreateInstances) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public RecreateInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (RecreateInstances) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public RecreateInstances setUserIp(java.lang.String userIp) { + return (RecreateInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -67326,7 +66483,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + public RecreateInstances setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -67337,41 +66494,92 @@ public Update setProject(java.lang.String project) { } /** - * The name of the zone where you want to create the managed instance group. + * The name of thezone where the managed instance group is located. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of the zone where you want to create the managed instance group. + /** The name of thezone where the managed instance group is located. */ public java.lang.String getZone() { return zone; } /** - * The name of the zone where you want to create the managed instance group. + * The name of thezone where the managed instance group is located. */ - public Update setZone(java.lang.String zone) { + public RecreateInstances setZone(java.lang.String zone) { this.zone = zone; return this; } - /** The name of the instance group manager. */ + /** The name of the managed instance group. */ @com.google.api.client.util.Key private java.lang.String instanceGroupManager; - /** The name of the instance group manager. + /** The name of the managed instance group. */ public java.lang.String getInstanceGroupManager() { return instanceGroupManager; } - /** The name of the instance group manager. */ - public Update setInstanceGroupManager(java.lang.String instanceGroupManager) { + /** The name of the managed instance group. */ + public RecreateInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { this.instanceGroupManager = instanceGroupManager; return this; } + /** + * When set, graceful shutdown is skipped for instance recreation even if it's configured for + * the instances. + */ + @com.google.api.client.util.Key + private java.lang.Boolean noGracefulShutdown; + + /** When set, graceful shutdown is skipped for instance recreation even if it's configured for the + instances. [default: false] + */ + public java.lang.Boolean getNoGracefulShutdown() { + return noGracefulShutdown; + } + + /** + * When set, graceful shutdown is skipped for instance recreation even if it's configured for + * the instances. + */ + public RecreateInstances setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { + this.noGracefulShutdown = noGracefulShutdown; + return this; + } + + /** + * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. + * + *

+ * Boolean properties can have four possible values: + * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} + * or {@link Boolean#FALSE}. + *

+ * + *

+ * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} + * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and + * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + *

+ * + *

+ * When set, graceful shutdown is skipped for instance recreation even if it's configured for the + instances. + *

+ */ + public boolean isNoGracefulShutdown() { + if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { + return false; + } + return noGracefulShutdown; + } + /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -67416,71 +66624,104 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Update setRequestId(java.lang.String requestId) { + public RecreateInstances setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public RecreateInstances set(String parameterName, Object value) { + return (RecreateInstances) super.set(parameterName, value); } } /** - * Inserts or updates per-instance configurations for the managed instance group. - * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. + * Resizes the managed instance group. If you increase the size, the group creates new instances + * using the current instance template. If you decrease the size, the group deletes instances. The + * resize operation is markedDONE when the resize actions are scheduled even if the group has not + * yet added or deleted any instances. You must separately verify the status of the creating or + * deleting actions with thelistmanagedinstances method. * - * Create a request for the method "instanceGroupManagers.updatePerInstanceConfigs". + * When resizing down, the instance group arbitrarily chooses the order in which VMs are deleted. + * The group takes into account some VM attributes when making the selection including: + * + * + The status of the VM instance. + The health of the VM instance. + The instance template version + * the VM is based on. + For regional managed instance groups, the location of the VM instance. + * + * This list is subject to change. + * + * If the group is part of a backend service that has enabled connection draining, it can take up to + * 60 seconds after the connection draining duration has elapsed before the VM instance is removed + * or deleted. + * + * Create a request for the method "instanceGroupManagers.resize". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link UpdatePerInstanceConfigs#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Resize#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of thezone - where the managed instance group is located. - It should conform to RFC1035. + * @param zone The name of thezone where the managed + instance group is located. * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersUpdatePerInstanceConfigsReq} + * @param size The number of running instances that the managed instance group should + maintain at any given time. + * The group automatically adds or removes + instances to maintain the number of instances + * specified by this parameter. * @return the request */ - public UpdatePerInstanceConfigs updatePerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersUpdatePerInstanceConfigsReq content) throws java.io.IOException { - UpdatePerInstanceConfigs result = new UpdatePerInstanceConfigs(project, zone, instanceGroupManager, content); + public Resize resize(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.Integer size) throws java.io.IOException { + Resize result = new Resize(project, zone, instanceGroupManager, size); initialize(result); return result; } - public class UpdatePerInstanceConfigs extends ComputeRequest { + public class Resize extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Inserts or updates per-instance configurations for the managed instance group. - * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. + * Resizes the managed instance group. If you increase the size, the group creates new instances + * using the current instance template. If you decrease the size, the group deletes instances. The + * resize operation is markedDONE when the resize actions are scheduled even if the group has not + * yet added or deleted any instances. You must separately verify the status of the creating or + * deleting actions with thelistmanagedinstances method. * - * Create a request for the method "instanceGroupManagers.updatePerInstanceConfigs". + * When resizing down, the instance group arbitrarily chooses the order in which VMs are deleted. + * The group takes into account some VM attributes when making the selection including: + * + * + The status of the VM instance. + The health of the VM instance. + The instance template + * version the VM is based on. + For regional managed instance groups, the location of the VM + * instance. + * + * This list is subject to change. + * + * If the group is part of a backend service that has enabled connection draining, it can take up + * to 60 seconds after the connection draining duration has elapsed before the VM instance is + * removed or deleted. + * + * Create a request for the method "instanceGroupManagers.resize". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link UpdatePerInstanceConfigs#execute()} method to invoke the remote - * operation.

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

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

* * @param project Project ID for this request. - * @param zone The name of thezone - where the managed instance group is located. - It should conform to RFC1035. + * @param zone The name of thezone where the managed + instance group is located. * @param instanceGroupManager The name of the managed instance group. - It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersUpdatePerInstanceConfigsReq} + * @param size The number of running instances that the managed instance group should + maintain at any given time. + * The group automatically adds or removes + instances to maintain the number of instances + * specified by this parameter. * @since 1.13 */ - protected UpdatePerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersUpdatePerInstanceConfigsReq content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Resize(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, java.lang.Integer size) { + 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(), @@ -67489,66 +66730,67 @@ protected UpdatePerInstanceConfigs(java.lang.String project, java.lang.String zo } this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); + this.size = com.google.api.client.util.Preconditions.checkNotNull(size, "Required parameter size must be specified."); } @Override - public UpdatePerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { - return (UpdatePerInstanceConfigs) super.set$Xgafv($Xgafv); + public Resize set$Xgafv(java.lang.String $Xgafv) { + return (Resize) super.set$Xgafv($Xgafv); } @Override - public UpdatePerInstanceConfigs setAccessToken(java.lang.String accessToken) { - return (UpdatePerInstanceConfigs) super.setAccessToken(accessToken); + public Resize setAccessToken(java.lang.String accessToken) { + return (Resize) super.setAccessToken(accessToken); } @Override - public UpdatePerInstanceConfigs setAlt(java.lang.String alt) { - return (UpdatePerInstanceConfigs) super.setAlt(alt); + public Resize setAlt(java.lang.String alt) { + return (Resize) super.setAlt(alt); } @Override - public UpdatePerInstanceConfigs setCallback(java.lang.String callback) { - return (UpdatePerInstanceConfigs) super.setCallback(callback); + public Resize setCallback(java.lang.String callback) { + return (Resize) super.setCallback(callback); } @Override - public UpdatePerInstanceConfigs setFields(java.lang.String fields) { - return (UpdatePerInstanceConfigs) super.setFields(fields); + public Resize setFields(java.lang.String fields) { + return (Resize) super.setFields(fields); } @Override - public UpdatePerInstanceConfigs setKey(java.lang.String key) { - return (UpdatePerInstanceConfigs) super.setKey(key); + public Resize setKey(java.lang.String key) { + return (Resize) super.setKey(key); } @Override - public UpdatePerInstanceConfigs setOauthToken(java.lang.String oauthToken) { - return (UpdatePerInstanceConfigs) super.setOauthToken(oauthToken); + public Resize setOauthToken(java.lang.String oauthToken) { + return (Resize) super.setOauthToken(oauthToken); } @Override - public UpdatePerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdatePerInstanceConfigs) super.setPrettyPrint(prettyPrint); + public Resize setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Resize) super.setPrettyPrint(prettyPrint); } @Override - public UpdatePerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { - return (UpdatePerInstanceConfigs) super.setQuotaUser(quotaUser); + public Resize setQuotaUser(java.lang.String quotaUser) { + return (Resize) super.setQuotaUser(quotaUser); } @Override - public UpdatePerInstanceConfigs setUploadType(java.lang.String uploadType) { - return (UpdatePerInstanceConfigs) super.setUploadType(uploadType); + public Resize setUploadType(java.lang.String uploadType) { + return (Resize) super.setUploadType(uploadType); } @Override - public UpdatePerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdatePerInstanceConfigs) super.setUploadProtocol(uploadProtocol); + public Resize setUploadProtocol(java.lang.String uploadProtocol) { + return (Resize) super.setUploadProtocol(uploadProtocol); } @Override - public UpdatePerInstanceConfigs setUserIp(java.lang.String userIp) { - return (UpdatePerInstanceConfigs) super.setUserIp(userIp); + public Resize setUserIp(java.lang.String userIp) { + return (Resize) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -67562,7 +66804,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public UpdatePerInstanceConfigs setProject(java.lang.String project) { + public Resize setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -67573,44 +66815,64 @@ public UpdatePerInstanceConfigs setProject(java.lang.String project) { } /** - * The name of thezone where the managed instance group is located. It should conform to - * RFC1035. + * The name of thezone where the managed instance group is located. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of thezone where the managed instance group is located. It should conform to RFC1035. + /** The name of thezone where the managed instance group is located. */ public java.lang.String getZone() { return zone; } /** - * The name of thezone where the managed instance group is located. It should conform to - * RFC1035. + * The name of thezone where the managed instance group is located. */ - public UpdatePerInstanceConfigs setZone(java.lang.String zone) { + public Resize setZone(java.lang.String zone) { this.zone = zone; return this; } - /** - * The name of the managed instance group. It should conform to RFC1035. - */ + /** The name of the managed instance group. */ @com.google.api.client.util.Key private java.lang.String instanceGroupManager; - /** The name of the managed instance group. It should conform to RFC1035. + /** The name of the managed instance group. */ public java.lang.String getInstanceGroupManager() { return instanceGroupManager; } + /** The name of the managed instance group. */ + public Resize setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + /** - * The name of the managed instance group. It should conform to RFC1035. + * The number of running instances that the managed instance group should maintain at any + * given time. The group automatically adds or removes instances to maintain the number of + * instances specified by this parameter. */ - public UpdatePerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { - this.instanceGroupManager = instanceGroupManager; + @com.google.api.client.util.Key + private java.lang.Integer size; + + /** The number of running instances that the managed instance group should maintain at any given time. + The group automatically adds or removes instances to maintain the number of instances specified by + this parameter. + */ + public java.lang.Integer getSize() { + return size; + } + + /** + * The number of running instances that the managed instance group should maintain at any + * given time. The group automatically adds or removes instances to maintain the number of + * instances specified by this parameter. + */ + public Resize setSize(java.lang.Integer size) { + this.size = size; return this; } @@ -67658,88 +66920,86 @@ 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 UpdatePerInstanceConfigs setRequestId(java.lang.String requestId) { + public Resize setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public UpdatePerInstanceConfigs set(String parameterName, Object value) { - return (UpdatePerInstanceConfigs) super.set(parameterName, value); + public Resize set(String parameterName, Object value) { + return (Resize) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the InstanceGroups collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InstanceGroups.List request = compute.instanceGroups().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public InstanceGroups instanceGroups() { - return new InstanceGroups(); - } - - /** - * The "instanceGroups" collection of methods. - */ - public class InstanceGroups { - /** - * Adds a list of instances to the specified instance group. All of the instances in the instance - * group must be in the same network/subnetwork. Read Adding instances for more information. + * Resizes the managed instance group with advanced configuration options like disabling creation + * retries. This is an extended version of theresize method. * - * Create a request for the method "instanceGroups.addInstances". + * If you increase the size of the instance group, the group creates new instances using the current + * instance template. If you decrease the size, the group deletes instances. The resize operation is + * markedDONE when the resize actions are scheduled even if the group has not yet added or deleted + * any instances. You must separately verify the status of the creating,creatingWithoutRetries, or + * deleting actions with the get orlistmanagedinstances method. + * + * If the group is part of a backend service that has enabled connection draining, it can take up to + * 60 seconds after the connection draining duration has elapsed before the VM instance is removed + * or deleted. + * + * Create a request for the method "instanceGroupManagers.resizeAdvanced". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddInstances#execute()} method to invoke the remote operation. + * parameters, call the {@link ResizeAdvanced#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone - where the instance group is located. - * @param instanceGroup The name of the instance group where you are adding instances. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupsAddInstancesRequest} + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersResizeAdvancedRequest} * @return the request */ - public AddInstances addInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsAddInstancesRequest content) throws java.io.IOException { - AddInstances result = new AddInstances(project, zone, instanceGroup, content); + public ResizeAdvanced resizeAdvanced(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersResizeAdvancedRequest content) throws java.io.IOException { + ResizeAdvanced result = new ResizeAdvanced(project, zone, instanceGroupManager, content); initialize(result); return result; } - public class AddInstances extends ComputeRequest { + public class ResizeAdvanced extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Adds a list of instances to the specified instance group. All of the instances in the instance - * group must be in the same network/subnetwork. Read Adding instances for more information. + * Resizes the managed instance group with advanced configuration options like disabling creation + * retries. This is an extended version of theresize method. * - * Create a request for the method "instanceGroups.addInstances". + * If you increase the size of the instance group, the group creates new instances using the + * current instance template. If you decrease the size, the group deletes instances. The resize + * operation is markedDONE when the resize actions are scheduled even if the group has not yet + * added or deleted any instances. You must separately verify the status of the + * creating,creatingWithoutRetries, or deleting actions with the get orlistmanagedinstances + * method. + * + * If the group is part of a backend service that has enabled connection draining, it can take up + * to 60 seconds after the connection draining duration has elapsed before the VM instance is + * removed or deleted. + * + * Create a request for the method "instanceGroupManagers.resizeAdvanced". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddInstances#execute()} method to invoke the remote operation.

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

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

{@link ResizeAdvanced#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 - where the instance group is located. - * @param instanceGroup The name of the instance group where you are adding instances. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupsAddInstancesRequest} + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersResizeAdvancedRequest} * @since 1.13 */ - protected AddInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsAddInstancesRequest content) { + protected ResizeAdvanced(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersResizeAdvancedRequest 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()) { @@ -67748,67 +67008,67 @@ protected AddInstances(java.lang.String project, java.lang.String zone, java.lan "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public AddInstances set$Xgafv(java.lang.String $Xgafv) { - return (AddInstances) super.set$Xgafv($Xgafv); + public ResizeAdvanced set$Xgafv(java.lang.String $Xgafv) { + return (ResizeAdvanced) super.set$Xgafv($Xgafv); } @Override - public AddInstances setAccessToken(java.lang.String accessToken) { - return (AddInstances) super.setAccessToken(accessToken); + public ResizeAdvanced setAccessToken(java.lang.String accessToken) { + return (ResizeAdvanced) super.setAccessToken(accessToken); } @Override - public AddInstances setAlt(java.lang.String alt) { - return (AddInstances) super.setAlt(alt); + public ResizeAdvanced setAlt(java.lang.String alt) { + return (ResizeAdvanced) super.setAlt(alt); } @Override - public AddInstances setCallback(java.lang.String callback) { - return (AddInstances) super.setCallback(callback); + public ResizeAdvanced setCallback(java.lang.String callback) { + return (ResizeAdvanced) super.setCallback(callback); } @Override - public AddInstances setFields(java.lang.String fields) { - return (AddInstances) super.setFields(fields); + public ResizeAdvanced setFields(java.lang.String fields) { + return (ResizeAdvanced) super.setFields(fields); } @Override - public AddInstances setKey(java.lang.String key) { - return (AddInstances) super.setKey(key); + public ResizeAdvanced setKey(java.lang.String key) { + return (ResizeAdvanced) super.setKey(key); } @Override - public AddInstances setOauthToken(java.lang.String oauthToken) { - return (AddInstances) super.setOauthToken(oauthToken); + public ResizeAdvanced setOauthToken(java.lang.String oauthToken) { + return (ResizeAdvanced) super.setOauthToken(oauthToken); } @Override - public AddInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddInstances) super.setPrettyPrint(prettyPrint); + public ResizeAdvanced setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ResizeAdvanced) super.setPrettyPrint(prettyPrint); } @Override - public AddInstances setQuotaUser(java.lang.String quotaUser) { - return (AddInstances) super.setQuotaUser(quotaUser); + public ResizeAdvanced setQuotaUser(java.lang.String quotaUser) { + return (ResizeAdvanced) super.setQuotaUser(quotaUser); } @Override - public AddInstances setUploadType(java.lang.String uploadType) { - return (AddInstances) super.setUploadType(uploadType); + public ResizeAdvanced setUploadType(java.lang.String uploadType) { + return (ResizeAdvanced) super.setUploadType(uploadType); } @Override - public AddInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (AddInstances) super.setUploadProtocol(uploadProtocol); + public ResizeAdvanced setUploadProtocol(java.lang.String uploadProtocol) { + return (ResizeAdvanced) super.setUploadProtocol(uploadProtocol); } @Override - public AddInstances setUserIp(java.lang.String userIp) { - return (AddInstances) super.setUserIp(userIp); + public ResizeAdvanced setUserIp(java.lang.String userIp) { + return (ResizeAdvanced) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -67822,7 +67082,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddInstances setProject(java.lang.String project) { + public ResizeAdvanced setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -67833,38 +67093,38 @@ public AddInstances setProject(java.lang.String project) { } /** - * The name of the zone where the instance group is located. + * The name of thezone where the managed instance group is located. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of the zone where the instance group is located. + /** The name of thezone where the managed instance group is located. */ public java.lang.String getZone() { return zone; } /** - * The name of the zone where the instance group is located. + * The name of thezone where the managed instance group is located. */ - public AddInstances setZone(java.lang.String zone) { + public ResizeAdvanced setZone(java.lang.String zone) { this.zone = zone; return this; } - /** The name of the instance group where you are adding instances. */ + /** The name of the managed instance group. */ @com.google.api.client.util.Key - private java.lang.String instanceGroup; + private java.lang.String instanceGroupManager; - /** The name of the instance group where you are adding instances. + /** The name of the managed instance group. */ - public java.lang.String getInstanceGroup() { - return instanceGroup; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** The name of the instance group where you are adding instances. */ - public AddInstances setInstanceGroup(java.lang.String instanceGroup) { - this.instanceGroup = instanceGroup; + /** The name of the managed instance group. */ + public ResizeAdvanced setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } @@ -67912,138 +67172,158 @@ 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 AddInstances setRequestId(java.lang.String requestId) { + public ResizeAdvanced setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddInstances set(String parameterName, Object value) { - return (AddInstances) super.set(parameterName, value); + public ResizeAdvanced set(String parameterName, Object value) { + return (ResizeAdvanced) super.set(parameterName, value); } } /** - * Retrieves the list of instance groups and sorts them by zone. + * Flags the specified instances in the managed instance group to be resumed. This method increases + * thetargetSize and decreases the targetSuspendedSize of the managed instance group by the number + * of instances that you resume. The resumeInstances operation is marked DONE if the resumeInstances + * request is successful. The underlying actions take additional time. You must separately verify + * the status of theRESUMING action with thelistmanagedinstances method. * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * In this request, you can only specify instances that are suspended. For example, if an instance + * was previously suspended using the suspendInstances method, it can be resumed using the + * resumeInstances method. * - * Create a request for the method "instanceGroups.aggregatedList". + * If a health check is attached to the managed instance group, the specified instances will be + * verified as healthy after they are resumed. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.resumeInstances". * * 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 ResumeInstances#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersResumeInstancesRequest} * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + public ResumeInstances resumeInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersResumeInstancesRequest content) throws java.io.IOException { + ResumeInstances result = new ResumeInstances(project, zone, instanceGroupManager, content); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class ResumeInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/instanceGroups"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resumeInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves the list of instance groups and sorts them by zone. + * Flags the specified instances in the managed instance group to be resumed. This method + * increases thetargetSize and decreases the targetSuspendedSize of the managed instance group by + * the number of instances that you resume. The resumeInstances operation is marked DONE if the + * resumeInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of theRESUMING action with thelistmanagedinstances method. * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * In this request, you can only specify instances that are suspended. For example, if an instance + * was previously suspended using the suspendInstances method, it can be resumed using the + * resumeInstances method. * - * Create a request for the method "instanceGroups.aggregatedList". + * If a health check is attached to the managed instance group, the specified instances will be + * verified as healthy after they are resumed. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.resumeInstances". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

{@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} must be called to initialize this instance immediately after invoking the + * parameters, call the {@link ResumeInstances#execute()} method to invoke the remote operation. + *

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

* * @param project Project ID for this request. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersResumeInstancesRequest} * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupAggregatedList.class); + protected ResumeInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersResumeInstancesRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public ResumeInstances set$Xgafv(java.lang.String $Xgafv) { + return (ResumeInstances) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public ResumeInstances setAccessToken(java.lang.String accessToken) { + return (ResumeInstances) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public ResumeInstances setAlt(java.lang.String alt) { + return (ResumeInstances) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public ResumeInstances setCallback(java.lang.String callback) { + return (ResumeInstances) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public ResumeInstances setFields(java.lang.String fields) { + return (ResumeInstances) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public ResumeInstances setKey(java.lang.String key) { + return (ResumeInstances) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public ResumeInstances setOauthToken(java.lang.String oauthToken) { + return (ResumeInstances) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public ResumeInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ResumeInstances) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public ResumeInstances setQuotaUser(java.lang.String quotaUser) { + return (ResumeInstances) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public ResumeInstances setUploadType(java.lang.String uploadType) { + return (ResumeInstances) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public ResumeInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (ResumeInstances) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public ResumeInstances setUserIp(java.lang.String userIp) { + return (ResumeInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -68057,7 +67337,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + public ResumeInstances setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -68068,380 +67348,146 @@ public AggregatedList setProject(java.lang.String project) { } /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. + * The name of thezone where the managed instance group is located. */ @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + private java.lang.String zone; - You cannot combine constraints on multiple fields using regular expressions. + /** The name of thezone where the managed instance group is located. */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getZone() { + return 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. + * The name of thezone where the managed instance group is located. */ - public AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; + public ResumeInstances setZone(java.lang.String zone) { + this.zone = zone; 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. - */ + /** The name of the managed instance group. */ @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; + private java.lang.String instanceGroupManager; - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. + /** The name of the managed instance group. */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; + /** The name of the managed instance group. */ + public ResumeInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; 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`) + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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.Long maxResults; + private java.lang.String requestId; - /** 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; - } + /** An optional request ID to identify requests. Specify a unique 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`) + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating 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 AggregatedList setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public AggregatedList setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * 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; - } + public ResumeInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public ResumeInstances set(String parameterName, Object value) { + return (ResumeInstances) super.set(parameterName, value); } } /** - * Deletes the specified instance group. The instances in the group are not deleted. Note that - * instance group must not belong to a backend service. Read Deleting an instance group for more - * information. + * Motifies the autohealing policy for the instances in this managed instance group. [Deprecated] + * This method is deprecated. UseinstanceGroupManagers.patch instead. * - * Create a request for the method "instanceGroups.delete". + * Create a request for the method "instanceGroupManagers.setAutoHealingPolicies". * * 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 SetAutoHealingPolicies#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param zone The name of the zone - where the instance group is located. - * @param instanceGroup The name of the instance group to delete. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the instance group manager. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersSetAutoHealingRequest} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup) throws java.io.IOException { - Delete result = new Delete(project, zone, instanceGroup); + public SetAutoHealingPolicies setAutoHealingPolicies(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersSetAutoHealingRequest content) throws java.io.IOException { + SetAutoHealingPolicies result = new SetAutoHealingPolicies(project, zone, instanceGroupManager, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class SetAutoHealingPolicies extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Deletes the specified instance group. The instances in the group are not deleted. Note that - * instance group must not belong to a backend service. Read Deleting an instance group for more - * information. + * Motifies the autohealing policy for the instances in this managed instance group. [Deprecated] + * This method is deprecated. UseinstanceGroupManagers.patch instead. * - * Create a request for the method "instanceGroups.delete". + * Create a request for the method "instanceGroupManagers.setAutoHealingPolicies". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

{@link SetAutoHealingPolicies#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 - where the instance group is located. - * @param instanceGroup The name of the instance group to delete. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the instance group manager. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersSetAutoHealingRequest} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected SetAutoHealingPolicies(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersSetAutoHealingRequest 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(), @@ -68449,67 +67495,67 @@ protected Delete(java.lang.String project, java.lang.String zone, java.lang.Stri "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public SetAutoHealingPolicies set$Xgafv(java.lang.String $Xgafv) { + return (SetAutoHealingPolicies) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public SetAutoHealingPolicies setAccessToken(java.lang.String accessToken) { + return (SetAutoHealingPolicies) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public SetAutoHealingPolicies setAlt(java.lang.String alt) { + return (SetAutoHealingPolicies) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public SetAutoHealingPolicies setCallback(java.lang.String callback) { + return (SetAutoHealingPolicies) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public SetAutoHealingPolicies setFields(java.lang.String fields) { + return (SetAutoHealingPolicies) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public SetAutoHealingPolicies setKey(java.lang.String key) { + return (SetAutoHealingPolicies) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public SetAutoHealingPolicies setOauthToken(java.lang.String oauthToken) { + return (SetAutoHealingPolicies) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public SetAutoHealingPolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetAutoHealingPolicies) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public SetAutoHealingPolicies setQuotaUser(java.lang.String quotaUser) { + return (SetAutoHealingPolicies) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public SetAutoHealingPolicies setUploadType(java.lang.String uploadType) { + return (SetAutoHealingPolicies) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public SetAutoHealingPolicies setUploadProtocol(java.lang.String uploadProtocol) { + return (SetAutoHealingPolicies) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public SetAutoHealingPolicies setUserIp(java.lang.String userIp) { + return (SetAutoHealingPolicies) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -68523,7 +67569,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public SetAutoHealingPolicies setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -68534,38 +67580,38 @@ public Delete setProject(java.lang.String project) { } /** - * The name of the zone where the instance group is located. + * The name of thezone where the managed instance group is located. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of the zone where the instance group is located. + /** The name of thezone where the managed instance group is located. */ public java.lang.String getZone() { return zone; } /** - * The name of the zone where the instance group is located. + * The name of thezone where the managed instance group is located. */ - public Delete setZone(java.lang.String zone) { + public SetAutoHealingPolicies setZone(java.lang.String zone) { this.zone = zone; return this; } - /** The name of the instance group to delete. */ + /** The name of the instance group manager. */ @com.google.api.client.util.Key - private java.lang.String instanceGroup; + private java.lang.String instanceGroupManager; - /** The name of the instance group to delete. + /** The name of the instance group manager. */ - public java.lang.String getInstanceGroup() { - return instanceGroup; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** The name of the instance group to delete. */ - public Delete setInstanceGroup(java.lang.String instanceGroup) { - this.instanceGroup = instanceGroup; + /** The name of the instance group manager. */ + public SetAutoHealingPolicies setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } @@ -68613,69 +67659,68 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Delete setRequestId(java.lang.String requestId) { + public SetAutoHealingPolicies setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public SetAutoHealingPolicies set(String parameterName, Object value) { + return (SetAutoHealingPolicies) super.set(parameterName, value); } } /** - * Returns the specified zonal instance group. Get a list of available zonal instance groups by - * making a list() request. - * - * For managed instance groups, use theinstanceGroupManagers or regionInstanceGroupManagers methods - * instead. + * Specifies the instance template to use when creating new instances in this group. The templates + * for existing instances in the group do not change unless you run recreateInstances, + * runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. * - * Create a request for the method "instanceGroups.get". + * Create a request for the method "instanceGroupManagers.setInstanceTemplate". * * 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 SetInstanceTemplate#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone - where the instance group is located. - * @param instanceGroup The name of the instance group. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersSetInstanceTemplateRequest} * @return the request */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup) throws java.io.IOException { - Get result = new Get(project, zone, instanceGroup); + public SetInstanceTemplate setInstanceTemplate(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersSetInstanceTemplateRequest content) throws java.io.IOException { + SetInstanceTemplate result = new SetInstanceTemplate(project, zone, instanceGroupManager, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class SetInstanceTemplate extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Returns the specified zonal instance group. Get a list of available zonal instance groups by - * making a list() request. - * - * For managed instance groups, use theinstanceGroupManagers or regionInstanceGroupManagers - * methods instead. + * Specifies the instance template to use when creating new instances in this group. The templates + * for existing instances in the group do not change unless you run recreateInstances, + * runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE. * - * Create a request for the method "instanceGroups.get". + * Create a request for the method "instanceGroupManagers.setInstanceTemplate". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

{@link SetInstanceTemplate#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 - where the instance group is located. - * @param instanceGroup The name of the instance group. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersSetInstanceTemplateRequest} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroup.class); + protected SetInstanceTemplate(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersSetInstanceTemplateRequest 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(), @@ -68683,77 +67728,67 @@ protected Get(java.lang.String project, java.lang.String zone, java.lang.String "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public SetInstanceTemplate set$Xgafv(java.lang.String $Xgafv) { + return (SetInstanceTemplate) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public SetInstanceTemplate setAccessToken(java.lang.String accessToken) { + return (SetInstanceTemplate) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public SetInstanceTemplate setAlt(java.lang.String alt) { + return (SetInstanceTemplate) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public SetInstanceTemplate setCallback(java.lang.String callback) { + return (SetInstanceTemplate) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public SetInstanceTemplate setFields(java.lang.String fields) { + return (SetInstanceTemplate) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public SetInstanceTemplate setKey(java.lang.String key) { + return (SetInstanceTemplate) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public SetInstanceTemplate setOauthToken(java.lang.String oauthToken) { + return (SetInstanceTemplate) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public SetInstanceTemplate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetInstanceTemplate) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public SetInstanceTemplate setQuotaUser(java.lang.String quotaUser) { + return (SetInstanceTemplate) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public SetInstanceTemplate setUploadType(java.lang.String uploadType) { + return (SetInstanceTemplate) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public SetInstanceTemplate setUploadProtocol(java.lang.String uploadProtocol) { + return (SetInstanceTemplate) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public SetInstanceTemplate setUserIp(java.lang.String userIp) { + return (SetInstanceTemplate) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -68767,7 +67802,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public SetInstanceTemplate setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -68778,92 +67813,150 @@ public Get setProject(java.lang.String project) { } /** - * The name of the zone where the instance group is located. + * The name of thezone where the managed instance group is located. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of the zone where the instance group is located. + /** The name of thezone where the managed instance group is located. */ public java.lang.String getZone() { return zone; } /** - * The name of the zone where the instance group is located. + * The name of thezone where the managed instance group is located. */ - public Get setZone(java.lang.String zone) { + public SetInstanceTemplate setZone(java.lang.String zone) { this.zone = zone; return this; } - /** The name of the instance group. */ + /** The name of the managed instance group. */ @com.google.api.client.util.Key - private java.lang.String instanceGroup; + private java.lang.String instanceGroupManager; - /** The name of the instance group. + /** The name of the managed instance group. */ - public java.lang.String getInstanceGroup() { - return instanceGroup; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** The name of the instance group. */ - public Get setInstanceGroup(java.lang.String instanceGroup) { - this.instanceGroup = instanceGroup; + /** The name of the managed instance group. */ + public SetInstanceTemplate setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public SetInstanceTemplate 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 SetInstanceTemplate set(String parameterName, Object value) { + return (SetInstanceTemplate) super.set(parameterName, value); } } /** - * Creates an instance group in the specified project using the parameters that are included in the - * request. + * Modifies the target pools to which all instances in this managed instance group are assigned. The + * target pools automatically apply to all of the instances in the managed instance group. This + * operation is markedDONE when you make the request even if the instances have not yet been added + * to their target pools. The change might take some time to apply to all of the instances in the + * group depending on the size of the group. * - * Create a request for the method "instanceGroups.insert". + * Create a request for the method "instanceGroupManagers.setTargetPools". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link SetTargetPools#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone - where you want to create the instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroup} + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersSetTargetPoolsRequest} * @return the request */ - public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstanceGroup content) throws java.io.IOException { - Insert result = new Insert(project, zone, content); + public SetTargetPools setTargetPools(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersSetTargetPoolsRequest content) throws java.io.IOException { + SetTargetPools result = new SetTargetPools(project, zone, instanceGroupManager, content); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class SetTargetPools extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Creates an instance group in the specified project using the parameters that are included in - * the request. + * Modifies the target pools to which all instances in this managed instance group are assigned. + * The target pools automatically apply to all of the instances in the managed instance group. + * This operation is markedDONE when you make the request even if the instances have not yet been + * added to their target pools. The change might take some time to apply to all of the instances + * in the group depending on the size of the group. * - * Create a request for the method "instanceGroups.insert". + * Create a request for the method "instanceGroupManagers.setTargetPools". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

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

{@link SetTargetPools#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 - where you want to create the instance group. - * @param content the {@link com.google.api.services.compute.model.InstanceGroup} + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersSetTargetPoolsRequest} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstanceGroup content) { + protected SetTargetPools(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersSetTargetPoolsRequest 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()) { @@ -68872,66 +67965,67 @@ protected Insert(java.lang.String project, java.lang.String zone, com.google.api "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public SetTargetPools set$Xgafv(java.lang.String $Xgafv) { + return (SetTargetPools) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public SetTargetPools setAccessToken(java.lang.String accessToken) { + return (SetTargetPools) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public SetTargetPools setAlt(java.lang.String alt) { + return (SetTargetPools) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public SetTargetPools setCallback(java.lang.String callback) { + return (SetTargetPools) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public SetTargetPools setFields(java.lang.String fields) { + return (SetTargetPools) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public SetTargetPools setKey(java.lang.String key) { + return (SetTargetPools) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public SetTargetPools setOauthToken(java.lang.String oauthToken) { + return (SetTargetPools) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public SetTargetPools setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetTargetPools) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public SetTargetPools setQuotaUser(java.lang.String quotaUser) { + return (SetTargetPools) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public SetTargetPools setUploadType(java.lang.String uploadType) { + return (SetTargetPools) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public SetTargetPools setUploadProtocol(java.lang.String uploadProtocol) { + return (SetTargetPools) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public SetTargetPools setUserIp(java.lang.String userIp) { + return (SetTargetPools) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -68945,7 +68039,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public SetTargetPools setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -68956,25 +68050,41 @@ public Insert setProject(java.lang.String project) { } /** - * The name of the zone where you want to create the instance group. + * The name of thezone where the managed instance group is located. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of the zone where you want to create the instance group. + /** The name of thezone where the managed instance group is located. */ public java.lang.String getZone() { return zone; } /** - * The name of the zone where you want to create the instance group. + * The name of thezone where the managed instance group is located. */ - public Insert setZone(java.lang.String zone) { + public SetTargetPools setZone(java.lang.String zone) { this.zone = zone; return this; } + /** The name of the managed instance group. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the managed instance group. */ + public SetTargetPools setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -69019,65 +68129,90 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Insert setRequestId(java.lang.String requestId) { + public SetTargetPools setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public SetTargetPools set(String parameterName, Object value) { + return (SetTargetPools) super.set(parameterName, value); } } /** - * Retrieves the list of zonal instance group resources contained within the specified zone. + * Flags the specified instances in the managed instance group to be started. This method increases + * thetargetSize and decreases the targetStoppedSize of the managed instance group by the number of + * instances that you start. The startInstances operation is marked DONE if the startInstances + * request is successful. The underlying actions take additional time. You must separately verify + * the status of theSTARTING action with thelistmanagedinstances method. * - * For managed instance groups, use theinstanceGroupManagers or regionInstanceGroupManagers methods - * instead. + * In this request, you can only specify instances that are stopped. For example, if an instance was + * previously stopped using the stopInstances method, it can be started using the startInstances + * method. * - * Create a request for the method "instanceGroups.list". + * If a health check is attached to the managed instance group, the specified instances will be + * verified as healthy after they are started. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.startInstances". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link StartInstances#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of thezone - where the instance group is located. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersStartInstancesRequest} * @return the request */ - public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { - List result = new List(project, zone); + public StartInstances startInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersStartInstancesRequest content) throws java.io.IOException { + StartInstances result = new StartInstances(project, zone, instanceGroupManager, content); initialize(result); return result; } - public class List extends ComputeRequest { + public class StartInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/startInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves the list of zonal instance group resources contained within the specified zone. + * Flags the specified instances in the managed instance group to be started. This method + * increases thetargetSize and decreases the targetStoppedSize of the managed instance group by + * the number of instances that you start. The startInstances operation is marked DONE if the + * startInstances request is successful. The underlying actions take additional time. You must + * separately verify the status of theSTARTING action with thelistmanagedinstances method. * - * For managed instance groups, use theinstanceGroupManagers or regionInstanceGroupManagers - * methods instead. + * In this request, you can only specify instances that are stopped. For example, if an instance + * was previously stopped using the stopInstances method, it can be started using the + * startInstances method. * - * Create a request for the method "instanceGroups.list". + * If a health check is attached to the managed instance group, the specified instances will be + * verified as healthy after they are started. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.startInstances". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

{@link StartInstances#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 thezone - where the instance group is located. + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersStartInstancesRequest} * @since 1.13 */ - protected List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupList.class); + protected StartInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersStartInstancesRequest 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(), @@ -69085,76 +68220,67 @@ protected List(java.lang.String project, java.lang.String zone) { "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public StartInstances set$Xgafv(java.lang.String $Xgafv) { + return (StartInstances) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public StartInstances setAccessToken(java.lang.String accessToken) { + return (StartInstances) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public StartInstances setAlt(java.lang.String alt) { + return (StartInstances) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public StartInstances setCallback(java.lang.String callback) { + return (StartInstances) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public StartInstances setFields(java.lang.String fields) { + return (StartInstances) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public StartInstances setKey(java.lang.String key) { + return (StartInstances) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public StartInstances setOauthToken(java.lang.String oauthToken) { + return (StartInstances) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public StartInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StartInstances) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public StartInstances setQuotaUser(java.lang.String quotaUser) { + return (StartInstances) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public StartInstances setUploadType(java.lang.String uploadType) { + return (StartInstances) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public StartInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (StartInstances) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public StartInstances setUserIp(java.lang.String userIp) { + return (StartInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -69168,7 +68294,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public StartInstances setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -69179,348 +68305,180 @@ public List setProject(java.lang.String project) { } /** - * The name of thezone where the instance group is located. + * The name of thezone where the managed instance group is located. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of thezone where the instance group is located. + /** The name of thezone where the managed instance group is located. */ public java.lang.String getZone() { return zone; } /** - * The name of thezone where the instance group is located. + * The name of thezone where the managed instance group is located. */ - public List setZone(java.lang.String zone) { + public StartInstances setZone(java.lang.String zone) { this.zone = zone; return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. - - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ + /** The name of the managed instance group. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String instanceGroupManager; - /** 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] + /** The name of the managed instance group. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** - * 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; + /** The name of the managed instance group. */ + public StartInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } + private java.lang.String requestId; - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public StartInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public StartInstances set(String parameterName, Object value) { + return (StartInstances) super.set(parameterName, value); } } /** - * Lists the instances in the specified instance group. The orderBy query parameter is not - * supported. The filter query parameter is supported, but only for expressions that use `eq` - * (equal) or `ne` (not equal) operators. + * Flags the specified instances in the managed instance group to be immediately stopped. You can + * only specify instances that are running in this request. This method reduces thetargetSize and + * increases the targetStoppedSize of the managed instance group by the number of instances that you + * stop. The stopInstances operation is marked DONE if the stopInstances request is successful. The + * underlying actions take additional time. You must separately verify the status of theSTOPPING + * action with thelistmanagedinstances method. * - * Create a request for the method "instanceGroups.listInstances". + * If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until + * initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was + * created). This delay gives your application time to set itself up and initialize on the instance. + * If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method + * is called, there will be zero delay. + * + * If the group is part of a backend service that has enabled connection draining, it can take up to + * 60 seconds after the connection draining duration has elapsed before the VM instance is stopped. + * + * Stopped instances can be started using the startInstances method. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.stopInstances". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListInstances#execute()} method to invoke the remote operation. + * parameters, call the {@link StopInstances#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone - where the instance group is located. - * @param instanceGroup The name of the instance group from which you want to generate a list - of included instances. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupsListInstancesRequest} + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersStopInstancesRequest} * @return the request */ - public ListInstances listInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsListInstancesRequest content) throws java.io.IOException { - ListInstances result = new ListInstances(project, zone, instanceGroup, content); - initialize(result); + public StopInstances stopInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersStopInstancesRequest content) throws java.io.IOException { + StopInstances result = new StopInstances(project, zone, instanceGroupManager, content); + initialize(result); return result; } - public class ListInstances extends ComputeRequest { + public class StopInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/stopInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Lists the instances in the specified instance group. The orderBy query parameter is not - * supported. The filter query parameter is supported, but only for expressions that use `eq` - * (equal) or `ne` (not equal) operators. + * Flags the specified instances in the managed instance group to be immediately stopped. You can + * only specify instances that are running in this request. This method reduces thetargetSize and + * increases the targetStoppedSize of the managed instance group by the number of instances that + * you stop. The stopInstances operation is marked DONE if the stopInstances request is + * successful. The underlying actions take additional time. You must separately verify the status + * of theSTOPPING action with thelistmanagedinstances method. * - * Create a request for the method "instanceGroups.listInstances". + * If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances + * until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance + * was created). This delay gives your application time to set itself up and initialize on the + * instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when + * this method is called, there will be zero delay. + * + * If the group is part of a backend service that has enabled connection draining, it can take up + * to 60 seconds after the connection draining duration has elapsed before the VM instance is + * stopped. + * + * Stopped instances can be started using the startInstances method. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.stopInstances". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListInstances#execute()} method to invoke the remote operation.

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

+ * {@link StopInstances#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 - where the instance group is located. - * @param instanceGroup The name of the instance group from which you want to generate a list - of included instances. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupsListInstancesRequest} + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersStopInstancesRequest} * @since 1.13 */ - protected ListInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsListInstancesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.InstanceGroupsListInstances.class); + protected StopInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersStopInstancesRequest 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(), @@ -69528,67 +68486,67 @@ protected ListInstances(java.lang.String project, java.lang.String zone, java.la "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public ListInstances set$Xgafv(java.lang.String $Xgafv) { - return (ListInstances) super.set$Xgafv($Xgafv); + public StopInstances set$Xgafv(java.lang.String $Xgafv) { + return (StopInstances) super.set$Xgafv($Xgafv); } @Override - public ListInstances setAccessToken(java.lang.String accessToken) { - return (ListInstances) super.setAccessToken(accessToken); + public StopInstances setAccessToken(java.lang.String accessToken) { + return (StopInstances) super.setAccessToken(accessToken); } @Override - public ListInstances setAlt(java.lang.String alt) { - return (ListInstances) super.setAlt(alt); + public StopInstances setAlt(java.lang.String alt) { + return (StopInstances) super.setAlt(alt); } @Override - public ListInstances setCallback(java.lang.String callback) { - return (ListInstances) super.setCallback(callback); + public StopInstances setCallback(java.lang.String callback) { + return (StopInstances) super.setCallback(callback); } @Override - public ListInstances setFields(java.lang.String fields) { - return (ListInstances) super.setFields(fields); + public StopInstances setFields(java.lang.String fields) { + return (StopInstances) super.setFields(fields); } @Override - public ListInstances setKey(java.lang.String key) { - return (ListInstances) super.setKey(key); + public StopInstances setKey(java.lang.String key) { + return (StopInstances) super.setKey(key); } @Override - public ListInstances setOauthToken(java.lang.String oauthToken) { - return (ListInstances) super.setOauthToken(oauthToken); + public StopInstances setOauthToken(java.lang.String oauthToken) { + return (StopInstances) super.setOauthToken(oauthToken); } @Override - public ListInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListInstances) super.setPrettyPrint(prettyPrint); + public StopInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StopInstances) super.setPrettyPrint(prettyPrint); } @Override - public ListInstances setQuotaUser(java.lang.String quotaUser) { - return (ListInstances) super.setQuotaUser(quotaUser); + public StopInstances setQuotaUser(java.lang.String quotaUser) { + return (StopInstances) super.setQuotaUser(quotaUser); } @Override - public ListInstances setUploadType(java.lang.String uploadType) { - return (ListInstances) super.setUploadType(uploadType); + public StopInstances setUploadType(java.lang.String uploadType) { + return (StopInstances) super.setUploadType(uploadType); } @Override - public ListInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (ListInstances) super.setUploadProtocol(uploadProtocol); + public StopInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (StopInstances) super.setUploadProtocol(uploadProtocol); } @Override - public ListInstances setUserIp(java.lang.String userIp) { - return (ListInstances) super.setUserIp(userIp); + public StopInstances setUserIp(java.lang.String userIp) { + return (StopInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -69602,7 +68560,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListInstances setProject(java.lang.String project) { + public StopInstances setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -69613,374 +68571,231 @@ public ListInstances setProject(java.lang.String project) { } /** - * The name of the zone where the instance group is located. + * The name of thezone where the managed instance group is located. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of the zone where the instance group is located. + /** The name of thezone where the managed instance group is located. */ public java.lang.String getZone() { return zone; } /** - * The name of the zone where the instance group is located. + * The name of thezone where the managed instance group is located. */ - public ListInstances setZone(java.lang.String zone) { + public StopInstances setZone(java.lang.String zone) { this.zone = zone; return this; } - /** - * The name of the instance group from which you want to generate a list of included - * instances. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroup; - - /** The name of the instance group from which you want to generate a list of included instances. - */ - public java.lang.String getInstanceGroup() { - return instanceGroup; - } - - /** - * The name of the instance group from which you want to generate a list of included - * instances. - */ - public ListInstances setInstanceGroup(java.lang.String instanceGroup) { - this.instanceGroup = instanceGroup; - return this; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ + /** The name of the managed instance group. */ @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + private java.lang.String instanceGroupManager; - You cannot combine constraints on multiple fields using regular expressions. + /** The name of the managed instance group. */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - public ListInstances setFilter(java.lang.String filter) { - this.filter = filter; + /** The name of the managed instance group. */ + public StopInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; 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`) + * When set, graceful shutdown is skipped for instance stopping even if it's configured for + * the instances. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.Boolean noGracefulShutdown; - /** 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] + /** When set, graceful shutdown is skipped for instance stopping even if it's configured for the + instances. [default: false] */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.Boolean getNoGracefulShutdown() { + return noGracefulShutdown; } /** - * 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`) + * When set, graceful shutdown is skipped for instance stopping even if it's configured for + * the instances. */ - public ListInstances setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; + public StopInstances setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { + this.noGracefulShutdown = noGracefulShutdown; return this; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. * - * 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. + *

+ * Boolean properties can have four possible values: + * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} + * or {@link Boolean#FALSE}. + *

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

+ * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} + * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and + * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + *

+ * + *

+ * When set, graceful shutdown is skipped for instance stopping even if it's configured for the + instances. + *

*/ - public java.lang.String getOrderBy() { - return orderBy; + public boolean isNoGracefulShutdown() { + if (noGracefulShutdown == null || noGracefulShutdown == com.google.api.client.util.Data.NULL_BOOLEAN) { + return false; + } + return noGracefulShutdown; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public ListInstances 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. + * 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 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 ListInstances setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + private java.lang.String requestId; - /** - * 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; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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 ListInstances setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public StopInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public ListInstances set(String parameterName, Object value) { - return (ListInstances) super.set(parameterName, value); + public StopInstances set(String parameterName, Object value) { + return (StopInstances) super.set(parameterName, value); } } /** - * Removes one or more instances from the specified instance group, but does not delete those - * instances. + * Flags the specified instances in the managed instance group to be immediately suspended. You can + * only specify instances that are running in this request. This method reduces thetargetSize and + * increases the targetSuspendedSize of the managed instance group by the number of instances that + * you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is + * successful. The underlying actions take additional time. You must separately verify the status of + * theSUSPENDING action with thelistmanagedinstances method. + * + * If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances + * until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was + * created). This delay gives your application time to set itself up and initialize on the instance. + * If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method + * is called, there will be zero delay. * * If the group is part of a backend service that has enabled connection draining, it can take up to - * 60 seconds after the connection draining duration before the VM instance is removed or deleted. + * 60 seconds after the connection draining duration has elapsed before the VM instance is + * suspended. * - * Create a request for the method "instanceGroups.removeInstances". + * Suspended instances can be resumed using the resumeInstances method. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.suspendInstances". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveInstances#execute()} method to invoke the remote operation. + * parameters, call the {@link SuspendInstances#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone - where the instance group is located. - * @param instanceGroup The name of the instance group where the specified instances will be - removed. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupsRemoveInstancesRequest} + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersSuspendInstancesRequest} * @return the request */ - public RemoveInstances removeInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsRemoveInstancesRequest content) throws java.io.IOException { - RemoveInstances result = new RemoveInstances(project, zone, instanceGroup, content); + public SuspendInstances suspendInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersSuspendInstancesRequest content) throws java.io.IOException { + SuspendInstances result = new SuspendInstances(project, zone, instanceGroupManager, content); initialize(result); return result; } - public class RemoveInstances extends ComputeRequest { + public class SuspendInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/suspendInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Removes one or more instances from the specified instance group, but does not delete those - * instances. + * Flags the specified instances in the managed instance group to be immediately suspended. You + * can only specify instances that are running in this request. This method reduces thetargetSize + * and increases the targetSuspendedSize of the managed instance group by the number of instances + * that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request + * is successful. The underlying actions take additional time. You must separately verify the + * status of theSUSPENDING action with thelistmanagedinstances method. + * + * If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances + * until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance + * was created). This delay gives your application time to set itself up and initialize on the + * instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when + * this method is called, there will be zero delay. * * If the group is part of a backend service that has enabled connection draining, it can take up - * to 60 seconds after the connection draining duration before the VM instance is removed or - * deleted. + * to 60 seconds after the connection draining duration has elapsed before the VM instance is + * suspended. * - * Create a request for the method "instanceGroups.removeInstances". + * Suspended instances can be resumed using the resumeInstances method. + * + * You can specify a maximum of 1000 instances with this method per request. + * + * Create a request for the method "instanceGroupManagers.suspendInstances". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveInstances#execute()} method to invoke the remote operation. - *

{@link RemoveInstances#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} must be called to initialize this instance immediately after invoking the + * parameters, call the {@link SuspendInstances#execute()} method to invoke the remote operation. + *

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

* * @param project Project ID for this request. - * @param zone The name of the zone - where the instance group is located. - * @param instanceGroup The name of the instance group where the specified instances will be - removed. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupsRemoveInstancesRequest} + * @param zone The name of thezone where the managed + instance group is located. + * @param instanceGroupManager The name of the managed instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersSuspendInstancesRequest} * @since 1.13 */ - protected RemoveInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsRemoveInstancesRequest content) { + protected SuspendInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersSuspendInstancesRequest 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()) { @@ -69989,300 +68804,67 @@ protected RemoveInstances(java.lang.String project, java.lang.String zone, java. "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); - } - - @Override - public RemoveInstances set$Xgafv(java.lang.String $Xgafv) { - return (RemoveInstances) super.set$Xgafv($Xgafv); - } - - @Override - public RemoveInstances setAccessToken(java.lang.String accessToken) { - return (RemoveInstances) super.setAccessToken(accessToken); - } - - @Override - public RemoveInstances setAlt(java.lang.String alt) { - return (RemoveInstances) super.setAlt(alt); - } - - @Override - public RemoveInstances setCallback(java.lang.String callback) { - return (RemoveInstances) super.setCallback(callback); - } - - @Override - public RemoveInstances setFields(java.lang.String fields) { - return (RemoveInstances) super.setFields(fields); - } - - @Override - public RemoveInstances setKey(java.lang.String key) { - return (RemoveInstances) super.setKey(key); - } - - @Override - public RemoveInstances setOauthToken(java.lang.String oauthToken) { - return (RemoveInstances) super.setOauthToken(oauthToken); - } - - @Override - public RemoveInstances setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveInstances) super.setPrettyPrint(prettyPrint); - } - - @Override - public RemoveInstances setQuotaUser(java.lang.String quotaUser) { - return (RemoveInstances) super.setQuotaUser(quotaUser); - } - - @Override - public RemoveInstances setUploadType(java.lang.String uploadType) { - return (RemoveInstances) super.setUploadType(uploadType); - } - - @Override - public RemoveInstances setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveInstances) super.setUploadProtocol(uploadProtocol); - } - - @Override - public RemoveInstances setUserIp(java.lang.String userIp) { - return (RemoveInstances) 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 RemoveInstances setProject(java.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 where the instance group is located. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone where the instance group is located. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of the zone where the instance group is located. - */ - public RemoveInstances setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the instance group where the specified instances will be removed. - */ - @com.google.api.client.util.Key - private java.lang.String instanceGroup; - - /** The name of the instance group where the specified instances will be removed. - */ - public java.lang.String getInstanceGroup() { - return instanceGroup; - } - - /** - * The name of the instance group where the specified instances will be removed. - */ - public RemoveInstances setInstanceGroup(java.lang.String instanceGroup) { - this.instanceGroup = instanceGroup; - 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 RemoveInstances setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public RemoveInstances set(String parameterName, Object value) { - return (RemoveInstances) super.set(parameterName, value); - } - } - /** - * Sets the named ports for the specified instance group. - * - * Create a request for the method "instanceGroups.setNamedPorts". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetNamedPorts#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone - where the instance group is located. - * @param instanceGroup The name of the instance group where the named ports are updated. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupsSetNamedPortsRequest} - * @return the request - */ - public SetNamedPorts setNamedPorts(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsSetNamedPortsRequest content) throws java.io.IOException { - SetNamedPorts result = new SetNamedPorts(project, zone, instanceGroup, content); - initialize(result); - return result; - } - - public class SetNamedPorts extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - /** - * Sets the named ports for the specified instance group. - * - * Create a request for the method "instanceGroups.setNamedPorts". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetNamedPorts#execute()} method to invoke the remote operation.

- * {@link SetNamedPorts#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 - where the instance group is located. - * @param instanceGroup The name of the instance group where the named ports are updated. - * @param content the {@link com.google.api.services.compute.model.InstanceGroupsSetNamedPortsRequest} - * @since 1.13 - */ - protected SetNamedPorts(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsSetNamedPortsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public SetNamedPorts set$Xgafv(java.lang.String $Xgafv) { - return (SetNamedPorts) super.set$Xgafv($Xgafv); + public SuspendInstances set$Xgafv(java.lang.String $Xgafv) { + return (SuspendInstances) super.set$Xgafv($Xgafv); } @Override - public SetNamedPorts setAccessToken(java.lang.String accessToken) { - return (SetNamedPorts) super.setAccessToken(accessToken); + public SuspendInstances setAccessToken(java.lang.String accessToken) { + return (SuspendInstances) super.setAccessToken(accessToken); } @Override - public SetNamedPorts setAlt(java.lang.String alt) { - return (SetNamedPorts) super.setAlt(alt); + public SuspendInstances setAlt(java.lang.String alt) { + return (SuspendInstances) super.setAlt(alt); } @Override - public SetNamedPorts setCallback(java.lang.String callback) { - return (SetNamedPorts) super.setCallback(callback); + public SuspendInstances setCallback(java.lang.String callback) { + return (SuspendInstances) super.setCallback(callback); } @Override - public SetNamedPorts setFields(java.lang.String fields) { - return (SetNamedPorts) super.setFields(fields); + public SuspendInstances setFields(java.lang.String fields) { + return (SuspendInstances) super.setFields(fields); } @Override - public SetNamedPorts setKey(java.lang.String key) { - return (SetNamedPorts) super.setKey(key); + public SuspendInstances setKey(java.lang.String key) { + return (SuspendInstances) super.setKey(key); } @Override - public SetNamedPorts setOauthToken(java.lang.String oauthToken) { - return (SetNamedPorts) super.setOauthToken(oauthToken); + public SuspendInstances setOauthToken(java.lang.String oauthToken) { + return (SuspendInstances) super.setOauthToken(oauthToken); } @Override - public SetNamedPorts setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetNamedPorts) super.setPrettyPrint(prettyPrint); + public SuspendInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SuspendInstances) super.setPrettyPrint(prettyPrint); } @Override - public SetNamedPorts setQuotaUser(java.lang.String quotaUser) { - return (SetNamedPorts) super.setQuotaUser(quotaUser); + public SuspendInstances setQuotaUser(java.lang.String quotaUser) { + return (SuspendInstances) super.setQuotaUser(quotaUser); } @Override - public SetNamedPorts setUploadType(java.lang.String uploadType) { - return (SetNamedPorts) super.setUploadType(uploadType); + public SuspendInstances setUploadType(java.lang.String uploadType) { + return (SuspendInstances) super.setUploadType(uploadType); } @Override - public SetNamedPorts setUploadProtocol(java.lang.String uploadProtocol) { - return (SetNamedPorts) super.setUploadProtocol(uploadProtocol); + public SuspendInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (SuspendInstances) super.setUploadProtocol(uploadProtocol); } @Override - public SetNamedPorts setUserIp(java.lang.String userIp) { - return (SetNamedPorts) super.setUserIp(userIp); + public SuspendInstances setUserIp(java.lang.String userIp) { + return (SuspendInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -70296,7 +68878,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetNamedPorts setProject(java.lang.String project) { + public SuspendInstances setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -70307,38 +68889,38 @@ public SetNamedPorts setProject(java.lang.String project) { } /** - * The name of the zone where the instance group is located. + * The name of thezone where the managed instance group is located. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of the zone where the instance group is located. + /** The name of thezone where the managed instance group is located. */ public java.lang.String getZone() { return zone; } /** - * The name of the zone where the instance group is located. + * The name of thezone where the managed instance group is located. */ - public SetNamedPorts setZone(java.lang.String zone) { + public SuspendInstances setZone(java.lang.String zone) { this.zone = zone; return this; } - /** The name of the instance group where the named ports are updated. */ + /** The name of the managed instance group. */ @com.google.api.client.util.Key - private java.lang.String instanceGroup; + private java.lang.String instanceGroupManager; - /** The name of the instance group where the named ports are updated. + /** The name of the managed instance group. */ - public java.lang.String getInstanceGroup() { - return instanceGroup; + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; } - /** The name of the instance group where the named ports are updated. */ - public SetNamedPorts setInstanceGroup(java.lang.String instanceGroup) { - this.instanceGroup = instanceGroup; + /** The name of the managed instance group. */ + public SuspendInstances setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; return this; } @@ -70386,20 +68968,20 @@ 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 SetNamedPorts setRequestId(java.lang.String requestId) { + public SuspendInstances setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetNamedPorts set(String parameterName, Object value) { - return (SetNamedPorts) super.set(parameterName, value); + public SuspendInstances set(String parameterName, Object value) { + return (SuspendInstances) super.set(parameterName, value); } } /** * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "instanceGroups.testIamPermissions". + * Create a request for the method "instanceGroupManagers.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. @@ -70418,7 +69000,7 @@ public TestIamPermissions testIamPermissions(java.lang.String project, java.lang public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -70432,7 +69014,7 @@ public class TestIamPermissions extends ComputeRequestThe typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InstanceSettings.List request = compute.instanceSettings().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public InstanceSettings instanceSettings() { - return new InstanceSettings(); - } - - /** - * The "instanceSettings" collection of methods. - */ - public class InstanceSettings { - /** - * Get Instance settings. + * Updates a managed instance group using the information that you specify in the request. This + * operation is marked as DONE when the group is updated even if the instances in the group have not + * yet been updated. You must separately verify the status of the individual instances with + * thelistManagedInstances method. * - * Create a request for the method "instanceSettings.get". + * If you update your group to specify a new template or instance configuration, it's possible that + * your intended specification for each VM in the group is different from the current state of that + * VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating instances in + * a MIG. + * + * Create a request for the method "instanceGroupManagers.update". * * 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 Update#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone Name of the zone for this request. + * @param zone The name of the zone + where you want to create the managed instance group. + * @param instanceGroupManager The name of the instance group manager. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} * @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 Update update(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManager content) throws java.io.IOException { + Update result = new Update(project, zone, instanceGroupManager, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceSettings"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * Get Instance settings. + * Updates a managed instance group using the information that you specify in the request. This + * operation is marked as DONE when the group is updated even if the instances in the group have + * not yet been updated. You must separately verify the status of the individual instances with + * thelistManagedInstances method. * - * Create a request for the method "instanceSettings.get". + * If you update your group to specify a new template or instance configuration, it's possible + * that your intended specification for each VM in the group is different from the current state + * of that VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating + * instances in a MIG. + * + * Create a request for the method "instanceGroupManagers.update". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param zone Name of the zone for this request. + * @param zone The name of the zone + where you want to create the managed instance group. + * @param instanceGroupManager The name of the instance group manager. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManager} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceSettings.class); + protected Update(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManager content) { + super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -70670,81 +69248,67 @@ protected Get(java.lang.String project, java.lang.String zone) { "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -70758,7 +69322,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public Update setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -70768,75 +69332,151 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the zone for this request. */ + /** + * The name of the zone where you want to create the managed instance group. + */ @com.google.api.client.util.Key private java.lang.String zone; - /** Name of the zone for this request. + /** The name of the zone where you want to create the managed instance group. */ public java.lang.String getZone() { return zone; } - /** 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])?"); - } + /** + * The name of the zone where you want to create the managed instance group. + */ + public Update setZone(java.lang.String zone) { this.zone = zone; return this; } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Patch Instance settings - * - * Create a request for the method "instanceSettings.patch". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The zone scoping this request. It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.InstanceSettings} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstanceSettings content) throws java.io.IOException { - Patch result = new Patch(project, zone, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { + /** The name of the instance group manager. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; - private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceSettings"; + /** The name of the instance group manager. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** The name of the instance group manager. */ + public Update setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + /** + * Inserts or updates per-instance configurations for the managed instance group. + * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. + * + * Create a request for the method "instanceGroupManagers.updatePerInstanceConfigs". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link UpdatePerInstanceConfigs#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone + where the managed instance group is located. + It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersUpdatePerInstanceConfigsReq} + * @return the request + */ + public UpdatePerInstanceConfigs updatePerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersUpdatePerInstanceConfigsReq content) throws java.io.IOException { + UpdatePerInstanceConfigs result = new UpdatePerInstanceConfigs(project, zone, instanceGroupManager, content); + initialize(result); + return result; + } + + public class UpdatePerInstanceConfigs extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Patch Instance settings + * Inserts or updates per-instance configurations for the managed instance group. + * perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch. * - * Create a request for the method "instanceSettings.patch". + * Create a request for the method "instanceGroupManagers.updatePerInstanceConfigs". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

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

{@link UpdatePerInstanceConfigs#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 zone The zone scoping this request. It should conform to RFC1035. - * @param content the {@link com.google.api.services.compute.model.InstanceSettings} + * @param zone The name of thezone + where the managed instance group is located. + It should conform to RFC1035. + * @param instanceGroupManager The name of the managed instance group. + It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupManagersUpdatePerInstanceConfigsReq} * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstanceSettings content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected UpdatePerInstanceConfigs(java.lang.String project, java.lang.String zone, java.lang.String instanceGroupManager, com.google.api.services.compute.model.InstanceGroupManagersUpdatePerInstanceConfigsReq 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(), @@ -70844,66 +69484,67 @@ protected Patch(java.lang.String project, java.lang.String zone, com.google.api. "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroupManager = com.google.api.client.util.Preconditions.checkNotNull(instanceGroupManager, "Required parameter instanceGroupManager must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public UpdatePerInstanceConfigs set$Xgafv(java.lang.String $Xgafv) { + return (UpdatePerInstanceConfigs) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public UpdatePerInstanceConfigs setAccessToken(java.lang.String accessToken) { + return (UpdatePerInstanceConfigs) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public UpdatePerInstanceConfigs setAlt(java.lang.String alt) { + return (UpdatePerInstanceConfigs) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public UpdatePerInstanceConfigs setCallback(java.lang.String callback) { + return (UpdatePerInstanceConfigs) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public UpdatePerInstanceConfigs setFields(java.lang.String fields) { + return (UpdatePerInstanceConfigs) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public UpdatePerInstanceConfigs setKey(java.lang.String key) { + return (UpdatePerInstanceConfigs) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public UpdatePerInstanceConfigs setOauthToken(java.lang.String oauthToken) { + return (UpdatePerInstanceConfigs) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public UpdatePerInstanceConfigs setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdatePerInstanceConfigs) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public UpdatePerInstanceConfigs setQuotaUser(java.lang.String quotaUser) { + return (UpdatePerInstanceConfigs) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public UpdatePerInstanceConfigs setUploadType(java.lang.String uploadType) { + return (UpdatePerInstanceConfigs) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public UpdatePerInstanceConfigs setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdatePerInstanceConfigs) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public UpdatePerInstanceConfigs setUserIp(java.lang.String userIp) { + return (UpdatePerInstanceConfigs) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -70917,7 +69558,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public UpdatePerInstanceConfigs setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -70927,22 +69568,48 @@ public Patch setProject(java.lang.String project) { return this; } - /** The zone scoping this request. It should conform to RFC1035. */ + /** + * The name of thezone where the managed instance group is located. It should conform to + * RFC1035. + */ @com.google.api.client.util.Key private java.lang.String zone; - /** The zone scoping this request. It should conform to RFC1035. + /** The name of thezone where the managed instance group is located. It should conform to RFC1035. */ public java.lang.String getZone() { return zone; } - /** The zone scoping this request. It should conform to RFC1035. */ - public Patch setZone(java.lang.String zone) { + /** + * The name of thezone where the managed instance group is located. It should conform to + * RFC1035. + */ + public UpdatePerInstanceConfigs setZone(java.lang.String zone) { this.zone = zone; return this; } + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroupManager; + + /** The name of the managed instance group. It should conform to RFC1035. + */ + public java.lang.String getInstanceGroupManager() { + return instanceGroupManager; + } + + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + public UpdatePerInstanceConfigs setInstanceGroupManager(java.lang.String instanceGroupManager) { + this.instanceGroupManager = instanceGroupManager; + return this; + } + /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -70987,68 +69654,282 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Patch setRequestId(java.lang.String requestId) { + public UpdatePerInstanceConfigs setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } - /** update_mask indicates fields to be updated as part of this request. */ - @com.google.api.client.util.Key - private String updateMask; - - /** update_mask indicates fields to be updated as part of this request. - */ - public String getUpdateMask() { - return updateMask; - } - - /** update_mask indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public UpdatePerInstanceConfigs set(String parameterName, Object value) { + return (UpdatePerInstanceConfigs) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the InstanceTemplates collection. + * An accessor for creating requests from the InstanceGroups collection. * *

The typical use is:

*
    *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InstanceTemplates.List request = compute.instanceTemplates().list(parameters ...)}
+   *   {@code Compute.InstanceGroups.List request = compute.instanceGroups().list(parameters ...)}
    * 
* * @return the resource collection */ - public InstanceTemplates instanceTemplates() { - return new InstanceTemplates(); + public InstanceGroups instanceGroups() { + return new InstanceGroups(); } /** - * The "instanceTemplates" collection of methods. + * The "instanceGroups" collection of methods. */ - public class InstanceTemplates { + public class InstanceGroups { /** - * Retrieves the list of all InstanceTemplates resources, regional and global, available to the - * specified project. + * Adds a list of instances to the specified instance group. All of the instances in the instance + * group must be in the same network/subnetwork. Read Adding instances for more information. + * + * Create a request for the method "instanceGroups.addInstances". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddInstances#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone + where the instance group is located. + * @param instanceGroup The name of the instance group where you are adding instances. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupsAddInstancesRequest} + * @return the request + */ + public AddInstances addInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsAddInstancesRequest content) throws java.io.IOException { + AddInstances result = new AddInstances(project, zone, instanceGroup, content); + initialize(result); + return result; + } + + public class AddInstances extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + /** + * Adds a list of instances to the specified instance group. All of the instances in the instance + * group must be in the same network/subnetwork. Read Adding instances for more information. + * + * Create a request for the method "instanceGroups.addInstances". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddInstances#execute()} method to invoke the remote operation.

+ * {@link + * AddInstances#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 + where the instance group is located. + * @param instanceGroup The name of the instance group where you are adding instances. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupsAddInstancesRequest} + * @since 1.13 + */ + protected AddInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsAddInstancesRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); + } + + @Override + public AddInstances set$Xgafv(java.lang.String $Xgafv) { + return (AddInstances) super.set$Xgafv($Xgafv); + } + + @Override + public AddInstances setAccessToken(java.lang.String accessToken) { + return (AddInstances) super.setAccessToken(accessToken); + } + + @Override + public AddInstances setAlt(java.lang.String alt) { + return (AddInstances) super.setAlt(alt); + } + + @Override + public AddInstances setCallback(java.lang.String callback) { + return (AddInstances) super.setCallback(callback); + } + + @Override + public AddInstances setFields(java.lang.String fields) { + return (AddInstances) super.setFields(fields); + } + + @Override + public AddInstances setKey(java.lang.String key) { + return (AddInstances) super.setKey(key); + } + + @Override + public AddInstances setOauthToken(java.lang.String oauthToken) { + return (AddInstances) super.setOauthToken(oauthToken); + } + + @Override + public AddInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddInstances) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddInstances setQuotaUser(java.lang.String quotaUser) { + return (AddInstances) super.setQuotaUser(quotaUser); + } + + @Override + public AddInstances setUploadType(java.lang.String uploadType) { + return (AddInstances) super.setUploadType(uploadType); + } + + @Override + public AddInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (AddInstances) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddInstances setUserIp(java.lang.String userIp) { + return (AddInstances) 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 AddInstances setProject(java.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 where the instance group is located. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone where the instance group is located. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of the zone where the instance group is located. + */ + public AddInstances setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the instance group where you are adding instances. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroup; + + /** The name of the instance group where you are adding instances. + */ + public java.lang.String getInstanceGroup() { + return instanceGroup; + } + + /** The name of the instance group where you are adding instances. */ + public AddInstances setInstanceGroup(java.lang.String instanceGroup) { + this.instanceGroup = instanceGroup; + 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 AddInstances setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddInstances set(String parameterName, Object value) { + return (AddInstances) super.set(parameterName, value); + } + } + /** + * Retrieves the list of instance groups and sorts them by zone. * * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to * `true`. * - * Create a request for the method "instanceTemplates.aggregatedList". + * Create a request for the method "instanceGroups.aggregatedList". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * - * @param project Name of the project scoping this request. + * @param project Project ID for this request. * @return the request */ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { @@ -71057,21 +69938,20 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/instanceTemplates"; + private static final String REST_PATH = "projects/{project}/aggregated/instanceGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves the list of all InstanceTemplates resources, regional and global, available to the - * specified project. + * Retrieves the list of instance groups and sorts them by zone. * * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to * `true`. * - * Create a request for the method "instanceTemplates.aggregatedList". + * Create a request for the method "instanceGroups.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. @@ -71079,11 +69959,11 @@ public class AggregatedList extends ComputeRequest * - * @param project Name of the project scoping this request. + * @param project Project ID for this request. * @since 1.13 */ protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceTemplateAggregatedList.class); + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupAggregatedList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -71162,17 +70042,17 @@ public AggregatedList setUserIp(java.lang.String userIp) { return (AggregatedList) super.setUserIp(userIp); } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Name of the project scoping this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ public AggregatedList setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -71510,41 +70390,40 @@ public AggregatedList set(String parameterName, Object value) { } } /** - * Deletes the specified instance template. Deleting an instance template is permanent and cannot be - * undone. It is not possible to delete templates that are already in use by a managed instance - * group. + * Deletes the specified instance group. The instances in the group are not deleted. Note that + * instance group must not belong to a backend service. Read Deleting an instance group for more + * information. * - * Create a request for the method "instanceTemplates.delete". + * Create a request for the method "instanceGroups.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 instanceTemplate The name of the instance template to delete. + * @param zone The name of the zone + where the instance group is located. + * @param instanceGroup The name of the instance group to delete. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String instanceTemplate) throws java.io.IOException { - Delete result = new Delete(project, instanceTemplate); + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup) throws java.io.IOException { + Delete result = new Delete(project, zone, instanceGroup); initialize(result); return result; } public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/instanceTemplates/{instanceTemplate}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern INSTANCE_TEMPLATE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Deletes the specified instance template. Deleting an instance template is permanent and cannot - * be undone. It is not possible to delete templates that are already in use by a managed instance - * group. + * Deletes the specified instance group. The instances in the group are not deleted. Note that + * instance group must not belong to a backend service. Read Deleting an instance group for more + * information. * - * Create a request for the method "instanceTemplates.delete". + * Create a request for the method "instanceGroups.delete". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link @@ -71552,10 +70431,12 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param instanceTemplate The name of the instance template to delete. + * @param zone The name of the zone + where the instance group is located. + * @param instanceGroup The name of the instance group to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String instanceTemplate) { + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup) { 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()) { @@ -71563,12 +70444,8 @@ protected Delete(java.lang.String project, java.lang.String instanceTemplate) { "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.instanceTemplate = com.google.api.client.util.Preconditions.checkNotNull(instanceTemplate, "Required parameter instanceTemplate must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), - "Parameter instanceTemplate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); } @Override @@ -71652,24 +70529,39 @@ public Delete setProject(java.lang.String project) { return this; } - /** The name of the instance template to delete. */ + /** + * The name of the zone where the instance group is located. + */ @com.google.api.client.util.Key - private java.lang.String instanceTemplate; + private java.lang.String zone; - /** The name of the instance template to delete. + /** The name of the zone where the instance group is located. */ - public java.lang.String getInstanceTemplate() { - return instanceTemplate; + public java.lang.String getZone() { + return zone; } - /** The name of the instance template to delete. */ - public Delete setInstanceTemplate(java.lang.String instanceTemplate) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), - "Parameter instanceTemplate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instanceTemplate = instanceTemplate; + /** + * The name of the zone where the instance group is located. + */ + public Delete setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the instance group to delete. */ + @com.google.api.client.util.Key + private java.lang.String instanceGroup; + + /** The name of the instance group to delete. + */ + public java.lang.String getInstanceGroup() { + return instanceGroup; + } + + /** The name of the instance group to delete. */ + public Delete setInstanceGroup(java.lang.String instanceGroup) { + this.instanceGroup = instanceGroup; return this; } @@ -71728,37 +70620,44 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified instance template. + * Returns the specified zonal instance group. Get a list of available zonal instance groups by + * making a list() request. * - * Create a request for the method "instanceTemplates.get". + * For managed instance groups, use theinstanceGroupManagers or regionInstanceGroupManagers methods + * instead. + * + * Create a request for the method "instanceGroups.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 instanceTemplate The name of the instance template. + * @param zone The name of the zone + where the instance group is located. + * @param instanceGroup The name of the instance group. * @return the request */ - public Get get(java.lang.String project, java.lang.String instanceTemplate) throws java.io.IOException { - Get result = new Get(project, instanceTemplate); + public Get get(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup) throws java.io.IOException { + Get result = new Get(project, zone, instanceGroup); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/instanceTemplates/{instanceTemplate}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern INSTANCE_TEMPLATE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Returns the specified instance template. + * Returns the specified zonal instance group. Get a list of available zonal instance groups by + * making a list() request. * - * Create a request for the method "instanceTemplates.get". + * For managed instance groups, use theinstanceGroupManagers or regionInstanceGroupManagers + * methods instead. + * + * Create a request for the method "instanceGroups.get". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link @@ -71766,23 +70665,21 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param instanceTemplate The name of the instance template. + * @param zone The name of the zone + where the instance group is located. + * @param instanceGroup The name of the instance group. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String instanceTemplate) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceTemplate.class); + protected Get(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroup.class); this.project = com.google.api.client.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.instanceTemplate = com.google.api.client.util.Preconditions.checkNotNull(instanceTemplate, "Required parameter instanceTemplate must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), - "Parameter instanceTemplate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); } @Override @@ -71876,276 +70773,80 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the instance template. */ - @com.google.api.client.util.Key - private java.lang.String instanceTemplate; - - /** The name of the instance template. - */ - public java.lang.String getInstanceTemplate() { - return instanceTemplate; - } - - /** The name of the instance template. */ - public Get setInstanceTemplate(java.lang.String instanceTemplate) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), - "Parameter instanceTemplate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instanceTemplate = instanceTemplate; - return this; - } - - /** View of the instance template. */ - @com.google.api.client.util.Key - private java.lang.String view; - - /** View of the instance template. - */ - public java.lang.String getView() { - return view; - } - - /** View of the instance template. */ - public Get setView(java.lang.String view) { - this.view = view; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * - * Create a request for the method "instanceTemplates.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/instanceTemplates/{resource}/getIamPolicy"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. - * - * Create a request for the method "instanceTemplates.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @since 1.13 + * The name of the zone where the instance group is located. */ - protected GetIamPolicy(java.lang.String project, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String zone; - /** Project ID for this request. + /** The name of the zone where the instance group is located. */ - 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; + public java.lang.String getZone() { + return zone; } - /** 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. + /** + * The name of the zone where the instance group is located. */ - 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; + public Get setZone(java.lang.String zone) { + this.zone = zone; return this; } - /** Requested IAM Policy version. */ + /** The name of the instance group. */ @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + private java.lang.String instanceGroup; - /** Requested IAM Policy version. + /** The name of the instance group. */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getInstanceGroup() { + return instanceGroup; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** The name of the instance group. */ + public Get setInstanceGroup(java.lang.String instanceGroup) { + this.instanceGroup = instanceGroup; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Creates an instance template in the specified project using the data that is included in the - * request. If you are creating a new template to update an existing instance group, your new - * instance template must use the same network or, if applicable, the same subnetwork as the - * original template. + * Creates an instance group in the specified project using the parameters that are included in the + * request. * - * Create a request for the method "instanceTemplates.insert". + * Create a request for the method "instanceGroups.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.InstanceTemplate} + * @param zone The name of the zone + where you want to create the instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroup} * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.InstanceTemplate content) throws java.io.IOException { - Insert result = new Insert(project, content); + public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstanceGroup content) throws java.io.IOException { + Insert result = new Insert(project, zone, content); initialize(result); return result; } public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/instanceTemplates"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Creates an instance template in the specified project using the data that is included in the - * request. If you are creating a new template to update an existing instance group, your new - * instance template must use the same network or, if applicable, the same subnetwork as the - * original template. + * Creates an instance group in the specified project using the parameters that are included in + * the request. * - * Create a request for the method "instanceTemplates.insert". + * Create a request for the method "instanceGroups.insert". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link @@ -72153,10 +70854,12 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.InstanceTemplate} + * @param zone The name of the zone + where you want to create the instance group. + * @param content the {@link com.google.api.services.compute.model.InstanceGroup} * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.InstanceTemplate content) { + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstanceGroup 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()) { @@ -72164,6 +70867,7 @@ protected Insert(java.lang.String project, com.google.api.services.compute.model "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); } @Override @@ -72247,6 +70951,26 @@ public Insert setProject(java.lang.String project) { return this; } + /** + * The name of the zone where you want to create the instance group. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone where you want to create the instance group. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of the zone where you want to create the instance group. + */ + public Insert setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -72302,33 +71026,41 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves a list of instance templates that are contained within the specified project. + * Retrieves the list of zonal instance group resources contained within the specified zone. * - * Create a request for the method "instanceTemplates.list". + * For managed instance groups, use theinstanceGroupManagers or regionInstanceGroupManagers methods + * instead. + * + * Create a request for the method "instanceGroups.list". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param zone The name of thezone + where the instance group is located. * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { + List result = new List(project, zone); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/instanceTemplates"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves a list of instance templates that are contained within the specified project. + * Retrieves the list of zonal instance group resources contained within the specified zone. * - * Create a request for the method "instanceTemplates.list". + * For managed instance groups, use theinstanceGroupManagers or regionInstanceGroupManagers + * methods instead. + * + * Create a request for the method "instanceGroups.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link @@ -72336,16 +71068,19 @@ public class List extends ComputeRequest * * @param project Project ID for this request. + * @param zone The name of thezone + where the instance group is located. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceTemplateList.class); + protected List(java.lang.String project, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceGroupList.class); this.project = com.google.api.client.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."); } @Override @@ -72439,6 +71174,26 @@ public List setProject(java.lang.String project) { return this; } + /** + * The name of thezone where the instance group is located. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the instance group is located. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the instance group is located. + */ + public List setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + /** * A filter expression that filters resources listed in the response. Most Compute resources * support two types of filter expressions: expressions that support regular expressions and @@ -72703,146 +71458,133 @@ public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { return this; } - /** View of the instance template. */ - @com.google.api.client.util.Key - private java.lang.String view; - - /** View of the instance template. - */ - public java.lang.String getView() { - return view; - } - - /** View of the instance template. */ - public List setView(java.lang.String view) { - this.view = view; - return this; - } - @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Lists the instances in the specified instance group. The orderBy query parameter is not + * supported. The filter query parameter is supported, but only for expressions that use `eq` + * (equal) or `ne` (not equal) operators. * - * Create a request for the method "instanceTemplates.setIamPolicy". + * Create a request for the method "instanceGroups.listInstances". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link ListInstances#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @param zone The name of the zone + where the instance group is located. + * @param instanceGroup The name of the instance group from which you want to generate a list + of included instances. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupsListInstancesRequest} * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, resource, content); + public ListInstances listInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsListInstancesRequest content) throws java.io.IOException { + ListInstances result = new ListInstances(project, zone, instanceGroup, content); initialize(result); return result; } - public class SetIamPolicy extends ComputeRequest { + public class ListInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/instanceTemplates/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Lists the instances in the specified instance group. The orderBy query parameter is not + * supported. The filter query parameter is supported, but only for expressions that use `eq` + * (equal) or `ne` (not equal) operators. * - * Create a request for the method "instanceTemplates.setIamPolicy". + * Create a request for the method "instanceGroups.listInstances". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

+ * {@link ListInstances#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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @param zone The name of the zone + where the instance group is located. + * @param instanceGroup The name of the instance group from which you want to generate a list + of included instances. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupsListInstancesRequest} * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + protected ListInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsListInstancesRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.InstanceGroupsListInstances.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public ListInstances set$Xgafv(java.lang.String $Xgafv) { + return (ListInstances) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public ListInstances setAccessToken(java.lang.String accessToken) { + return (ListInstances) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public ListInstances setAlt(java.lang.String alt) { + return (ListInstances) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public ListInstances setCallback(java.lang.String callback) { + return (ListInstances) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public ListInstances setFields(java.lang.String fields) { + return (ListInstances) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public ListInstances setKey(java.lang.String key) { + return (ListInstances) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public ListInstances setOauthToken(java.lang.String oauthToken) { + return (ListInstances) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public ListInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListInstances) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public ListInstances setQuotaUser(java.lang.String quotaUser) { + return (ListInstances) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public ListInstances setUploadType(java.lang.String uploadType) { + return (ListInstances) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public ListInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (ListInstances) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public ListInstances setUserIp(java.lang.String userIp) { + return (ListInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -72856,7 +71598,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + public ListInstances setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -72866,276 +71608,375 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** + * The name of the zone where the instance group is located. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String zone; - /** Name or id of the resource for this request. + /** The name of the zone where the instance group is located. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getZone() { + return zone; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; + /** + * The name of the zone where the instance group is located. + */ + public ListInstances setZone(java.lang.String zone) { + this.zone = zone; return this; } - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "instanceTemplates.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/instanceTemplates/{resource}/testIamPermissions"; + /** + * The name of the instance group from which you want to generate a list of included + * instances. + */ + @com.google.api.client.util.Key + private java.lang.String instanceGroup; - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + /** The name of the instance group from which you want to generate a list of included instances. + */ + public java.lang.String getInstanceGroup() { + return instanceGroup; + } - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** + * The name of the instance group from which you want to generate a list of included + * instances. + */ + public ListInstances setInstanceGroup(java.lang.String instanceGroup) { + this.instanceGroup = instanceGroup; + return this; + } /** - * Returns permissions that a caller has on the specified resource. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "instanceTemplates.testIamPermissions". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

+ * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} - * @since 1.13 + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } + /** 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. - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } + 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. - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } + 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: - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + 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; } - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + /** + * 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 ListInstances setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + /** + * 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; } - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + /** + * 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 ListInstances setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; } - /** Project ID for this request. */ + /** + * 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 project; + private java.lang.String orderBy; - /** Project ID for this request. + /** 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 getProject() { - return project; + public java.lang.String getOrderBy() { + return orderBy; } - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; + /** + * 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 ListInstances setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; return this; } - /** Name or id of the resource for this request. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String pageToken; - /** Name or id of the resource for this request. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getPageToken() { + return pageToken; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; + /** + * 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 ListInstances setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } + /** + * 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. - /** - * An accessor for creating requests from the Instances collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Instances.List request = compute.instances().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Instances instances() { - return new Instances(); - } + 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; + } - /** - * The "instances" collection of methods. - */ - public class Instances { + /** + * 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 ListInstances setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + @Override + public ListInstances set(String parameterName, Object value) { + return (ListInstances) super.set(parameterName, value); + } + } /** - * Adds an access config to an instance's network interface. + * Removes one or more instances from the specified instance group, but does not delete those + * instances. * - * Create a request for the method "instances.addAccessConfig". + * If the group is part of a backend service that has enabled connection draining, it can take up to + * 60 seconds after the connection draining duration before the VM instance is removed or deleted. + * + * Create a request for the method "instanceGroups.removeInstances". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddAccessConfig#execute()} method to invoke the remote operation. + * parameters, call the {@link RemoveInstances#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 networkInterface The name of the network interface to add to this instance. - * @param content the {@link com.google.api.services.compute.model.AccessConfig} + * @param zone The name of the zone + where the instance group is located. + * @param instanceGroup The name of the instance group where the specified instances will be + removed. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupsRemoveInstancesRequest} * @return the request */ - public AddAccessConfig addAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.model.AccessConfig content) throws java.io.IOException { - AddAccessConfig result = new AddAccessConfig(project, zone, instance, networkInterface, content); + public RemoveInstances removeInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsRemoveInstancesRequest content) throws java.io.IOException { + RemoveInstances result = new RemoveInstances(project, zone, instanceGroup, content); initialize(result); return result; } - public class AddAccessConfig extends ComputeRequest { + public class RemoveInstances extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Adds an access config to an instance's network interface. + * Removes one or more instances from the specified instance group, but does not delete those + * instances. * - * Create a request for the method "instances.addAccessConfig". + * If the group is part of a backend service that has enabled connection draining, it can take up + * to 60 seconds after the connection draining duration before the VM instance is removed or + * deleted. + * + * Create a request for the method "instanceGroups.removeInstances". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddAccessConfig#execute()} method to invoke the remote operation. - *

{@link AddAccessConfig#initialize(com.google.api.client.googleapis.services.AbstractGoogleC + * parameters, call the {@link RemoveInstances#execute()} method to invoke the remote operation. + *

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

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance The instance name for this request. - * @param networkInterface The name of the network interface to add to this instance. - * @param content the {@link com.google.api.services.compute.model.AccessConfig} + * @param zone The name of the zone + where the instance group is located. + * @param instanceGroup The name of the instance group where the specified instances will be + removed. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupsRemoveInstancesRequest} * @since 1.13 */ - protected AddAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.model.AccessConfig content) { + protected RemoveInstances(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsRemoveInstancesRequest 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()) { @@ -73144,78 +71985,67 @@ protected AddAccessConfig(java.lang.String project, java.lang.String zone, java. "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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.networkInterface = com.google.api.client.util.Preconditions.checkNotNull(networkInterface, "Required parameter networkInterface must be specified."); + this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); } @Override - public AddAccessConfig set$Xgafv(java.lang.String $Xgafv) { - return (AddAccessConfig) super.set$Xgafv($Xgafv); + public RemoveInstances set$Xgafv(java.lang.String $Xgafv) { + return (RemoveInstances) super.set$Xgafv($Xgafv); } @Override - public AddAccessConfig setAccessToken(java.lang.String accessToken) { - return (AddAccessConfig) super.setAccessToken(accessToken); + public RemoveInstances setAccessToken(java.lang.String accessToken) { + return (RemoveInstances) super.setAccessToken(accessToken); } @Override - public AddAccessConfig setAlt(java.lang.String alt) { - return (AddAccessConfig) super.setAlt(alt); + public RemoveInstances setAlt(java.lang.String alt) { + return (RemoveInstances) super.setAlt(alt); } @Override - public AddAccessConfig setCallback(java.lang.String callback) { - return (AddAccessConfig) super.setCallback(callback); + public RemoveInstances setCallback(java.lang.String callback) { + return (RemoveInstances) super.setCallback(callback); } @Override - public AddAccessConfig setFields(java.lang.String fields) { - return (AddAccessConfig) super.setFields(fields); + public RemoveInstances setFields(java.lang.String fields) { + return (RemoveInstances) super.setFields(fields); } @Override - public AddAccessConfig setKey(java.lang.String key) { - return (AddAccessConfig) super.setKey(key); + public RemoveInstances setKey(java.lang.String key) { + return (RemoveInstances) super.setKey(key); } @Override - public AddAccessConfig setOauthToken(java.lang.String oauthToken) { - return (AddAccessConfig) super.setOauthToken(oauthToken); + public RemoveInstances setOauthToken(java.lang.String oauthToken) { + return (RemoveInstances) super.setOauthToken(oauthToken); } @Override - public AddAccessConfig setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddAccessConfig) super.setPrettyPrint(prettyPrint); + public RemoveInstances setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveInstances) super.setPrettyPrint(prettyPrint); } @Override - public AddAccessConfig setQuotaUser(java.lang.String quotaUser) { - return (AddAccessConfig) super.setQuotaUser(quotaUser); + public RemoveInstances setQuotaUser(java.lang.String quotaUser) { + return (RemoveInstances) super.setQuotaUser(quotaUser); } @Override - public AddAccessConfig setUploadType(java.lang.String uploadType) { - return (AddAccessConfig) super.setUploadType(uploadType); + public RemoveInstances setUploadType(java.lang.String uploadType) { + return (RemoveInstances) super.setUploadType(uploadType); } @Override - public AddAccessConfig setUploadProtocol(java.lang.String uploadProtocol) { - return (AddAccessConfig) super.setUploadProtocol(uploadProtocol); + public RemoveInstances setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveInstances) super.setUploadProtocol(uploadProtocol); } @Override - public AddAccessConfig setUserIp(java.lang.String userIp) { - return (AddAccessConfig) super.setUserIp(userIp); + public RemoveInstances setUserIp(java.lang.String userIp) { + return (RemoveInstances) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -73229,7 +72059,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddAccessConfig setProject(java.lang.String project) { + public RemoveInstances setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -73239,61 +72069,43 @@ public AddAccessConfig setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** + * The name of the zone where the instance group is located. + */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of the zone for this request. + /** The name of the zone where the instance group is located. */ public java.lang.String getZone() { return zone; } - /** The name of the zone for this request. */ - public AddAccessConfig 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])?"); - } + /** + * The name of the zone where the instance group is located. + */ + public RemoveInstances setZone(java.lang.String zone) { this.zone = zone; return this; } - /** The instance name for this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** The instance name for this request. + /** + * The name of the instance group where the specified instances will be removed. */ - public java.lang.String getInstance() { - return instance; - } - - /** The instance name for this request. */ - public AddAccessConfig 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 network interface to add to this instance. */ @com.google.api.client.util.Key - private java.lang.String networkInterface; + private java.lang.String instanceGroup; - /** The name of the network interface to add to this instance. + /** The name of the instance group where the specified instances will be removed. */ - public java.lang.String getNetworkInterface() { - return networkInterface; + public java.lang.String getInstanceGroup() { + return instanceGroup; } - /** The name of the network interface to add to this instance. */ - public AddAccessConfig setNetworkInterface(java.lang.String networkInterface) { - this.networkInterface = networkInterface; + /** + * The name of the instance group where the specified instances will be removed. + */ + public RemoveInstances setInstanceGroup(java.lang.String instanceGroup) { + this.instanceGroup = instanceGroup; return this; } @@ -73341,68 +72153,63 @@ 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 AddAccessConfig setRequestId(java.lang.String requestId) { + public RemoveInstances setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddAccessConfig set(String parameterName, Object value) { - return (AddAccessConfig) super.set(parameterName, value); + public RemoveInstances set(String parameterName, Object value) { + return (RemoveInstances) super.set(parameterName, value); } } /** - * Adds one dynamic network interface to an active instance. + * Sets the named ports for the specified instance group. * - * Create a request for the method "instances.addNetworkInterface". + * Create a request for the method "instanceGroups.setNamedPorts". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddNetworkInterface#execute()} method to invoke the remote operation. + * parameters, call the {@link SetNamedPorts#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 stored as resource_id. - Name should conform to RFC1035 or be an - * unsigned long integer. - * @param content the {@link com.google.api.services.compute.model.NetworkInterface} + * @param zone The name of the zone + where the instance group is located. + * @param instanceGroup The name of the instance group where the named ports are updated. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupsSetNamedPortsRequest} * @return the request */ - public AddNetworkInterface addNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.NetworkInterface content) throws java.io.IOException { - AddNetworkInterface result = new AddNetworkInterface(project, zone, instance, content); + public SetNamedPorts setNamedPorts(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsSetNamedPortsRequest content) throws java.io.IOException { + SetNamedPorts result = new SetNamedPorts(project, zone, instanceGroup, content); initialize(result); return result; } - public class AddNetworkInterface extends ComputeRequest { + public class SetNamedPorts extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/addNetworkInterface"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * Adds one dynamic network interface to an active instance. + * Sets the named ports for the specified instance group. * - * Create a request for the method "instances.addNetworkInterface". + * Create a request for the method "instanceGroups.setNamedPorts". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddNetworkInterface#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance The instance name for this request stored as resource_id. - Name should conform to RFC1035 or be an - * unsigned long integer. - * @param content the {@link com.google.api.services.compute.model.NetworkInterface} + * @param zone The name of the zone + where the instance group is located. + * @param instanceGroup The name of the instance group where the named ports are updated. + * @param content the {@link com.google.api.services.compute.model.InstanceGroupsSetNamedPortsRequest} * @since 1.13 */ - protected AddNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.NetworkInterface content) { + protected SetNamedPorts(java.lang.String project, java.lang.String zone, java.lang.String instanceGroup, com.google.api.services.compute.model.InstanceGroupsSetNamedPortsRequest 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()) { @@ -73411,72 +72218,67 @@ protected AddNetworkInterface(java.lang.String project, java.lang.String zone, j "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); + this.instanceGroup = com.google.api.client.util.Preconditions.checkNotNull(instanceGroup, "Required parameter instanceGroup must be specified."); } @Override - public AddNetworkInterface set$Xgafv(java.lang.String $Xgafv) { - return (AddNetworkInterface) super.set$Xgafv($Xgafv); + public SetNamedPorts set$Xgafv(java.lang.String $Xgafv) { + return (SetNamedPorts) super.set$Xgafv($Xgafv); } @Override - public AddNetworkInterface setAccessToken(java.lang.String accessToken) { - return (AddNetworkInterface) super.setAccessToken(accessToken); + public SetNamedPorts setAccessToken(java.lang.String accessToken) { + return (SetNamedPorts) super.setAccessToken(accessToken); } @Override - public AddNetworkInterface setAlt(java.lang.String alt) { - return (AddNetworkInterface) super.setAlt(alt); + public SetNamedPorts setAlt(java.lang.String alt) { + return (SetNamedPorts) super.setAlt(alt); } @Override - public AddNetworkInterface setCallback(java.lang.String callback) { - return (AddNetworkInterface) super.setCallback(callback); + public SetNamedPorts setCallback(java.lang.String callback) { + return (SetNamedPorts) super.setCallback(callback); } @Override - public AddNetworkInterface setFields(java.lang.String fields) { - return (AddNetworkInterface) super.setFields(fields); + public SetNamedPorts setFields(java.lang.String fields) { + return (SetNamedPorts) super.setFields(fields); } @Override - public AddNetworkInterface setKey(java.lang.String key) { - return (AddNetworkInterface) super.setKey(key); + public SetNamedPorts setKey(java.lang.String key) { + return (SetNamedPorts) super.setKey(key); } @Override - public AddNetworkInterface setOauthToken(java.lang.String oauthToken) { - return (AddNetworkInterface) super.setOauthToken(oauthToken); + public SetNamedPorts setOauthToken(java.lang.String oauthToken) { + return (SetNamedPorts) super.setOauthToken(oauthToken); } @Override - public AddNetworkInterface setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddNetworkInterface) super.setPrettyPrint(prettyPrint); + public SetNamedPorts setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetNamedPorts) super.setPrettyPrint(prettyPrint); } @Override - public AddNetworkInterface setQuotaUser(java.lang.String quotaUser) { - return (AddNetworkInterface) super.setQuotaUser(quotaUser); + public SetNamedPorts setQuotaUser(java.lang.String quotaUser) { + return (SetNamedPorts) super.setQuotaUser(quotaUser); } @Override - public AddNetworkInterface setUploadType(java.lang.String uploadType) { - return (AddNetworkInterface) super.setUploadType(uploadType); + public SetNamedPorts setUploadType(java.lang.String uploadType) { + return (SetNamedPorts) super.setUploadType(uploadType); } @Override - public AddNetworkInterface setUploadProtocol(java.lang.String uploadProtocol) { - return (AddNetworkInterface) super.setUploadProtocol(uploadProtocol); + public SetNamedPorts setUploadProtocol(java.lang.String uploadProtocol) { + return (SetNamedPorts) super.setUploadProtocol(uploadProtocol); } @Override - public AddNetworkInterface setUserIp(java.lang.String userIp) { - return (AddNetworkInterface) super.setUserIp(userIp); + public SetNamedPorts setUserIp(java.lang.String userIp) { + return (SetNamedPorts) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -73490,7 +72292,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddNetworkInterface setProject(java.lang.String project) { + public SetNamedPorts setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -73500,47 +72302,39 @@ public AddNetworkInterface setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** + * The name of the zone where the instance group is located. + */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of the zone for this request. + /** The name of the zone where the instance group is located. */ public java.lang.String getZone() { return zone; } - /** The name of the zone for this request. */ - public AddNetworkInterface 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])?"); - } + /** + * The name of the zone where the instance group is located. + */ + public SetNamedPorts setZone(java.lang.String zone) { this.zone = zone; return this; } - /** - * The instance name for this request stored as resource_id. Name should conform to RFC1035 or - * be an unsigned long integer. - */ + /** The name of the instance group where the named ports are updated. */ @com.google.api.client.util.Key - private java.lang.String instance; + private java.lang.String instanceGroup; - /** The instance name for this request stored as resource_id. Name should conform to RFC1035 or be an - unsigned long integer. + /** The name of the instance group where the named ports are updated. */ - public java.lang.String getInstance() { - return instance; + public java.lang.String getInstanceGroup() { + return instanceGroup; } - /** - * The instance name for this request stored as resource_id. Name should conform to RFC1035 or - * be an unsigned long integer. - */ - public AddNetworkInterface setInstance(java.lang.String instance) { - this.instance = instance; + /** The name of the instance group where the named ports are updated. */ + public SetNamedPorts setInstanceGroup(java.lang.String instanceGroup) { + this.instanceGroup = instanceGroup; return this; } @@ -73588,40 +72382,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 AddNetworkInterface setRequestId(java.lang.String requestId) { + public SetNamedPorts setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddNetworkInterface set(String parameterName, Object value) { - return (AddNetworkInterface) super.set(parameterName, value); + public SetNamedPorts set(String parameterName, Object value) { + return (SetNamedPorts) super.set(parameterName, value); } } /** - * Adds existing resource policies to an instance. You can only add one policy right now which will - * be applied to this instance for scheduling live migrations. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "instances.addResourcePolicies". + * Create a request for the method "instanceGroups.testIamPermissions". * * 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 TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param instance The instance name for this request. - * @param content the {@link com.google.api.services.compute.model.InstancesAddResourcePoliciesRequest} + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public AddResourcePolicies addResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesAddResourcePoliciesRequest content) throws java.io.IOException { - AddResourcePolicies result = new AddResourcePolicies(project, zone, instance, content); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); initialize(result); return result; } - public class AddResourcePolicies extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceGroups/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -73629,29 +72422,28 @@ public class AddResourcePolicies extends ComputeRequest {@link AddResourcePolicies#initialize(com.google.api.client.googleapis.services. - * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param instance The instance name for this request. - * @param content the {@link com.google.api.services.compute.model.InstancesAddResourcePoliciesRequest} + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected AddResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesAddResourcePoliciesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -73664,72 +72456,72 @@ 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.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public AddResourcePolicies set$Xgafv(java.lang.String $Xgafv) { - return (AddResourcePolicies) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public AddResourcePolicies setAccessToken(java.lang.String accessToken) { - return (AddResourcePolicies) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public AddResourcePolicies setAlt(java.lang.String alt) { - return (AddResourcePolicies) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public AddResourcePolicies setCallback(java.lang.String callback) { - return (AddResourcePolicies) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public AddResourcePolicies setFields(java.lang.String fields) { - return (AddResourcePolicies) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public AddResourcePolicies setKey(java.lang.String key) { - return (AddResourcePolicies) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public AddResourcePolicies setOauthToken(java.lang.String oauthToken) { - return (AddResourcePolicies) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public AddResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddResourcePolicies) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public AddResourcePolicies setQuotaUser(java.lang.String quotaUser) { - return (AddResourcePolicies) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public AddResourcePolicies setUploadType(java.lang.String uploadType) { - return (AddResourcePolicies) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public AddResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (AddResourcePolicies) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public AddResourcePolicies setUserIp(java.lang.String userIp) { - return (AddResourcePolicies) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -73743,7 +72535,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddResourcePolicies setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -73764,7 +72556,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public AddResourcePolicies setZone(java.lang.String zone) { + public TestIamPermissions setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), "Parameter zone must conform to the pattern " + @@ -73774,48 +72566,400 @@ public AddResourcePolicies setZone(java.lang.String zone) { return this; } - /** The instance name for this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String instance; + private java.lang.String resource; - /** The instance name for this request. + /** Name or id of the resource for this request. */ - public java.lang.String getInstance() { - return instance; + public java.lang.String getResource() { + return resource; } - /** The instance name for this request. */ - public AddResourcePolicies setInstance(java.lang.String instance) { + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.instance = instance; + this.resource = resource; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation + /** + * An accessor for creating requests from the InstanceSettings collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InstanceSettings.List request = compute.instanceSettings().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InstanceSettings instanceSettings() { + return new InstanceSettings(); + } + + /** + * The "instanceSettings" collection of methods. + */ + public class InstanceSettings { + + /** + * Get Instance settings. + * + * Create a request for the method "instanceSettings.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; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceSettings"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Get Instance settings. + * + * Create a request for the method "instanceSettings.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param zone Name of the zone for this request. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceSettings.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + } + + @Override + public 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 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 Get setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Patch Instance settings + * + * Create a request for the method "instanceSettings.patch". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The zone scoping this request. It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceSettings} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstanceSettings content) throws java.io.IOException { + Patch result = new Patch(project, zone, content); + initialize(result); + return result; + } + + public class Patch extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instanceSettings"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + /** + * Patch Instance settings + * + * Create a request for the method "instanceSettings.patch". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param zone The zone scoping this request. It should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstanceSettings} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstanceSettings content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Patch setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The zone scoping this request. It should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The zone scoping this request. It should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** The zone scoping this request. It should conform to RFC1035. */ + public Patch setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. @@ -73839,32 +72983,68 @@ 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 InstanceTemplates collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InstanceTemplates.List request = compute.instanceTemplates().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InstanceTemplates instanceTemplates() { + return new InstanceTemplates(); + } + + /** + * The "instanceTemplates" collection of methods. + */ + public class InstanceTemplates { + /** - * Retrieves an aggregated list of all of the instances in your project across all regions and - * zones. - * - * The performance of this method degrades when a filter is specified on a project that has a very - * large number of instances. + * Retrieves the list of all InstanceTemplates resources, regional and global, available to the + * specified project. * * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to * `true`. * - * Create a request for the method "instances.aggregatedList". + * Create a request for the method "instanceTemplates.aggregatedList". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. + * @param project Name of the project scoping this request. * @return the request */ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { @@ -73873,24 +73053,21 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/instances"; + private static final String REST_PATH = "projects/{project}/aggregated/instanceTemplates"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves an aggregated list of all of the instances in your project across all regions and - * zones. - * - * The performance of this method degrades when a filter is specified on a project that has a very - * large number of instances. + * Retrieves the list of all InstanceTemplates resources, regional and global, available to the + * specified project. * * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to * `true`. * - * Create a request for the method "instances.aggregatedList". + * Create a request for the method "instanceTemplates.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. @@ -73898,11 +73075,11 @@ public class AggregatedList extends ComputeRequest * - * @param project Project ID for this request. + * @param project Name of the project scoping this request. * @since 1.13 */ protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceAggregatedList.class); + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceTemplateAggregatedList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -73981,17 +73158,17 @@ public AggregatedList setUserIp(java.lang.String userIp) { return (AggregatedList) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the project scoping this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Name of the project scoping this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ + /** Name of the project scoping this request. */ public AggregatedList setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -74329,139 +73506,125 @@ public AggregatedList set(String parameterName, Object value) { } } /** - * Attaches an existing Disk resource to an instance. You must first create the disk before you can - * attach it. It is not possible to create and attach a disk at the same time. For more information, - * readAdding a persistent disk to your instance. + * Deletes the specified instance template. Deleting an instance template is permanent and cannot be + * undone. It is not possible to delete templates that are already in use by a managed instance + * group. * - * Create a request for the method "instances.attachDisk". + * Create a request for the method "instanceTemplates.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AttachDisk#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance The instance name for this request. - * @param content the {@link com.google.api.services.compute.model.AttachedDisk} + * @param instanceTemplate The name of the instance template to delete. * @return the request */ - public AttachDisk attachDisk(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.AttachedDisk content) throws java.io.IOException { - AttachDisk result = new AttachDisk(project, zone, instance, content); + public Delete delete(java.lang.String project, java.lang.String instanceTemplate) throws java.io.IOException { + Delete result = new Delete(project, instanceTemplate); initialize(result); return result; } - public class AttachDisk extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/attachDisk"; + private static final String REST_PATH = "projects/{project}/global/instanceTemplates/{instanceTemplate}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = + private final java.util.regex.Pattern INSTANCE_TEMPLATE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Attaches an existing Disk resource to an instance. You must first create the disk before you - * can attach it. It is not possible to create and attach a disk at the same time. For more - * information, readAdding a persistent disk to your instance. + * Deletes the specified instance template. Deleting an instance template is permanent and cannot + * be undone. It is not possible to delete templates that are already in use by a managed instance + * group. * - * Create a request for the method "instances.attachDisk". + * Create a request for the method "instanceTemplates.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AttachDisk#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance The instance name for this request. - * @param content the {@link com.google.api.services.compute.model.AttachedDisk} + * @param instanceTemplate The name of the instance template to delete. * @since 1.13 */ - protected AttachDisk(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.AttachedDisk content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Delete(java.lang.String project, java.lang.String instanceTemplate) { + 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.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + this.instanceTemplate = com.google.api.client.util.Preconditions.checkNotNull(instanceTemplate, "Required parameter instanceTemplate must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), + "Parameter instanceTemplate must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public AttachDisk set$Xgafv(java.lang.String $Xgafv) { - return (AttachDisk) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public AttachDisk setAccessToken(java.lang.String accessToken) { - return (AttachDisk) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public AttachDisk setAlt(java.lang.String alt) { - return (AttachDisk) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public AttachDisk setCallback(java.lang.String callback) { - return (AttachDisk) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public AttachDisk setFields(java.lang.String fields) { - return (AttachDisk) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public AttachDisk setKey(java.lang.String key) { - return (AttachDisk) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public AttachDisk setOauthToken(java.lang.String oauthToken) { - return (AttachDisk) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public AttachDisk setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AttachDisk) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public AttachDisk setQuotaUser(java.lang.String quotaUser) { - return (AttachDisk) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public AttachDisk setUploadType(java.lang.String uploadType) { - return (AttachDisk) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public AttachDisk setUploadProtocol(java.lang.String uploadProtocol) { - return (AttachDisk) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public AttachDisk setUserIp(java.lang.String userIp) { - return (AttachDisk) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -74475,7 +73638,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AttachDisk setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -74485,70 +73648,24 @@ public AttachDisk setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public AttachDisk 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; - } - - /** The instance name for this request. */ + /** The name of the instance template to delete. */ @com.google.api.client.util.Key - private java.lang.String instance; + private java.lang.String instanceTemplate; - /** The instance name for this request. + /** The name of the instance template to delete. */ - public java.lang.String getInstance() { - return instance; + public java.lang.String getInstanceTemplate() { + return instanceTemplate; } - /** The instance name for this request. */ - public AttachDisk setInstance(java.lang.String instance) { + /** The name of the instance template to delete. */ + public Delete setInstanceTemplate(java.lang.String instanceTemplate) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), + "Parameter instanceTemplate 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; - } - - /** - * Whether to force attach the regional disk even if it's currently attached to another - * instance. If you try to force attach a zonal disk to an instance, you will receive an - * error. - */ - @com.google.api.client.util.Key - private java.lang.Boolean forceAttach; - - /** Whether to force attach the regional disk even if it's currently attached to another instance. If - you try to force attach a zonal disk to an instance, you will receive an error. - */ - public java.lang.Boolean getForceAttach() { - return forceAttach; - } - - /** - * Whether to force attach the regional disk even if it's currently attached to another - * instance. If you try to force attach a zonal disk to an instance, you will receive an - * error. - */ - public AttachDisk setForceAttach(java.lang.Boolean forceAttach) { - this.forceAttach = forceAttach; + this.instanceTemplate = instanceTemplate; return this; } @@ -74596,137 +73713,142 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public AttachDisk setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AttachDisk set(String parameterName, Object value) { - return (AttachDisk) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Creates multiple instances. Count specifies the number of instances to create. For more - * information, seeAbout bulk creation of VMs. + * Returns the specified instance template. * - * Create a request for the method "instances.bulkInsert". + * Create a request for the method "instanceTemplates.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link BulkInsert#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param content the {@link com.google.api.services.compute.model.BulkInsertInstanceResource} + * @param instanceTemplate The name of the instance template. * @return the request */ - public BulkInsert bulkInsert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.BulkInsertInstanceResource content) throws java.io.IOException { - BulkInsert result = new BulkInsert(project, zone, content); + public Get get(java.lang.String project, java.lang.String instanceTemplate) throws java.io.IOException { + Get result = new Get(project, instanceTemplate); initialize(result); return result; } - public class BulkInsert extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/bulkInsert"; + private static final String REST_PATH = "projects/{project}/global/instanceTemplates/{instanceTemplate}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private final java.util.regex.Pattern INSTANCE_TEMPLATE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Creates multiple instances. Count specifies the number of instances to create. For more - * information, seeAbout bulk creation of VMs. + * Returns the specified instance template. * - * Create a request for the method "instances.bulkInsert". + * Create a request for the method "instanceTemplates.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link BulkInsert#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param content the {@link com.google.api.services.compute.model.BulkInsertInstanceResource} + * @param instanceTemplate The name of the instance template. * @since 1.13 */ - protected BulkInsert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.BulkInsertInstanceResource 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 instanceTemplate) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceTemplate.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.instanceTemplate = com.google.api.client.util.Preconditions.checkNotNull(instanceTemplate, "Required parameter instanceTemplate must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), + "Parameter instanceTemplate 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. */ @@ -74740,7 +73862,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 " + @@ -74750,208 +73872,176 @@ public BulkInsert setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** The name of the instance template. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String instanceTemplate; - /** The name of the zone for this request. + /** The name of the instance template. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getInstanceTemplate() { + return instanceTemplate; } - /** The name of the zone for this request. */ - public BulkInsert setZone(java.lang.String zone) { + /** The name of the instance template. */ + public Get setInstanceTemplate(java.lang.String instanceTemplate) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_TEMPLATE_PATTERN.matcher(instanceTemplate).matches(), + "Parameter instanceTemplate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.zone = zone; + this.instanceTemplate = instanceTemplate; 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). - */ + /** View of the instance template. */ @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 view; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** View of the instance template. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getView() { + return view; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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; + /** View of the instance template. */ + public Get setView(java.lang.String view) { + this.view = view; 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); } } /** - * Deletes the specified Instance resource. For more information, seeDeleting an instance. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "instances.delete". + * Create a request for the method "instanceTemplates.getIamPolicy". * * 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 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 instance Name of the instance resource to delete. + * @param resource Name or id of the resource for this request. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - Delete result = new Delete(project, zone, instance); + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}"; + private static final String REST_PATH = "projects/{project}/global/instanceTemplates/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified Instance resource. For more information, seeDeleting an instance. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "instances.delete". + * Create a request for the method "instanceTemplates.getIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance resource to delete. + * @param resource Name or id of the resource for this request. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected GetIamPolicy(java.lang.String project, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.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."); + 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(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}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public 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 GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -74965,7 +74055,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public GetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -74975,252 +74065,161 @@ public Delete setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String resource; - /** The name of the zone for this request. + /** Name or id of the resource for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getResource() { + return resource; } - /** The name of the zone for this request. */ - public Delete setZone(java.lang.String zone) { + /** 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(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(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.zone = zone; + this.resource = resource; return this; } - /** Name of the instance resource to delete. */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.String instance; + private java.lang.Integer optionsRequestedPolicyVersion; - /** Name of the instance resource to delete. + /** Requested IAM Policy version. */ - public java.lang.String getInstance() { - return instance; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** Name of the instance resource to delete. */ - public Delete 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; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } - /** If set to true, Graceful Shutdown is skipped. */ - @com.google.api.client.util.Key - private java.lang.Boolean noGracefulShutdown; - - /** If set to true, Graceful Shutdown is skipped. - */ - public java.lang.Boolean getNoGracefulShutdown() { - return noGracefulShutdown; + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } + } + /** + * Creates an instance template in the specified project using the data that is included in the + * request. If you are creating a new template to update an existing instance group, your new + * instance template must use the same network or, if applicable, the same subnetwork as the + * original template. + * + * Create a request for the method "instanceTemplates.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.InstanceTemplate} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.InstanceTemplate content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } - /** If set to true, Graceful Shutdown is skipped. */ - public Delete setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { - this.noGracefulShutdown = noGracefulShutdown; - return this; - } + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/instanceTemplates"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * Creates an instance template in the specified project using the data that is included in the + * request. If you are creating a new template to update an existing instance group, your new + * instance template must use the same network or, if applicable, the same subnetwork as the + * original template. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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); - } - } - /** - * Deletes an access config from an instance's network interface. - * - * Create a request for the method "instances.deleteAccessConfig". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DeleteAccessConfig#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 accessConfig The name of the access config to delete. - * @param networkInterface The name of the network interface. - * @return the request - */ - public DeleteAccessConfig deleteAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String accessConfig, java.lang.String networkInterface) throws java.io.IOException { - DeleteAccessConfig result = new DeleteAccessConfig(project, zone, instance, accessConfig, networkInterface); - initialize(result); - return result; - } - - public class DeleteAccessConfig extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes an access config from an instance's network interface. - * - * Create a request for the method "instances.deleteAccessConfig". + * Create a request for the method "instanceTemplates.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DeleteAccessConfig#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance The instance name for this request. - * @param accessConfig The name of the access config to delete. - * @param networkInterface The name of the network interface. + * @param content the {@link com.google.api.services.compute.model.InstanceTemplate} * @since 1.13 */ - protected DeleteAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String accessConfig, java.lang.String networkInterface) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Insert(java.lang.String project, com.google.api.services.compute.model.InstanceTemplate 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}"); - } - this.accessConfig = com.google.api.client.util.Preconditions.checkNotNull(accessConfig, "Required parameter accessConfig must be specified."); - this.networkInterface = com.google.api.client.util.Preconditions.checkNotNull(networkInterface, "Required parameter networkInterface must be specified."); } @Override - public DeleteAccessConfig set$Xgafv(java.lang.String $Xgafv) { - return (DeleteAccessConfig) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public DeleteAccessConfig setAccessToken(java.lang.String accessToken) { - return (DeleteAccessConfig) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public DeleteAccessConfig setAlt(java.lang.String alt) { - return (DeleteAccessConfig) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public DeleteAccessConfig setCallback(java.lang.String callback) { - return (DeleteAccessConfig) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public DeleteAccessConfig setFields(java.lang.String fields) { - return (DeleteAccessConfig) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public DeleteAccessConfig setKey(java.lang.String key) { - return (DeleteAccessConfig) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public DeleteAccessConfig setOauthToken(java.lang.String oauthToken) { - return (DeleteAccessConfig) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public DeleteAccessConfig setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteAccessConfig) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public DeleteAccessConfig setQuotaUser(java.lang.String quotaUser) { - return (DeleteAccessConfig) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public DeleteAccessConfig setUploadType(java.lang.String uploadType) { - return (DeleteAccessConfig) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public DeleteAccessConfig setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteAccessConfig) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public DeleteAccessConfig setUserIp(java.lang.String userIp) { - return (DeleteAccessConfig) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -75234,7 +74233,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DeleteAccessConfig setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -75244,80 +74243,6 @@ public DeleteAccessConfig setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public DeleteAccessConfig 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; - } - - /** The instance name for this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** The instance name for this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** The instance name for this request. */ - public DeleteAccessConfig 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 access config to delete. */ - @com.google.api.client.util.Key - private java.lang.String accessConfig; - - /** The name of the access config to delete. - */ - public java.lang.String getAccessConfig() { - return accessConfig; - } - - /** The name of the access config to delete. */ - public DeleteAccessConfig setAccessConfig(java.lang.String accessConfig) { - this.accessConfig = accessConfig; - return this; - } - - /** The name of the network interface. */ - @com.google.api.client.util.Key - private java.lang.String networkInterface; - - /** The name of the network interface. - */ - public java.lang.String getNetworkInterface() { - return networkInterface; - } - - /** The name of the network interface. */ - public DeleteAccessConfig setNetworkInterface(java.lang.String networkInterface) { - this.networkInterface = networkInterface; - 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 @@ -75362,150 +74287,131 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public DeleteAccessConfig setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public DeleteAccessConfig set(String parameterName, Object value) { - return (DeleteAccessConfig) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Deletes one dynamic network interface from an active instance. - * InstancesDeleteNetworkInterfaceRequest indicates: - instance from which to delete, using - * project+zone+resource_id fields; - dynamic network interface to be deleted, using - * network_interface_name field; + * Retrieves a list of instance templates that are contained within the specified project. * - * Create a request for the method "instances.deleteNetworkInterface". + * Create a request for the method "instanceTemplates.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DeleteNetworkInterface#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 instance The instance name for this request stored as resource_id. - Name should conform to RFC1035 or be an - * unsigned long integer. - * @param networkInterfaceName The name of the dynamic network interface to be deleted from the instance. * @return the request */ - public DeleteNetworkInterface deleteNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterfaceName) throws java.io.IOException { - DeleteNetworkInterface result = new DeleteNetworkInterface(project, zone, instance, networkInterfaceName); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class DeleteNetworkInterface extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/deleteNetworkInterface"; + private static final String REST_PATH = "projects/{project}/global/instanceTemplates"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - /** - * Deletes one dynamic network interface from an active instance. - * InstancesDeleteNetworkInterfaceRequest indicates: - instance from which to delete, using - * project+zone+resource_id fields; - dynamic network interface to be deleted, using - * network_interface_name field; + * Retrieves a list of instance templates that are contained within the specified project. * - * Create a request for the method "instances.deleteNetworkInterface". + * Create a request for the method "instanceTemplates.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DeleteNetworkInterface#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance The instance name for this request stored as resource_id. - Name should conform to RFC1035 or be an - * unsigned long integer. - * @param networkInterfaceName The name of the dynamic network interface to be deleted from the instance. * @since 1.13 */ - protected DeleteNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterfaceName) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceTemplateList.class); this.project = com.google.api.client.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."); - this.networkInterfaceName = com.google.api.client.util.Preconditions.checkNotNull(networkInterfaceName, "Required parameter networkInterfaceName must be specified."); } @Override - public DeleteNetworkInterface set$Xgafv(java.lang.String $Xgafv) { - return (DeleteNetworkInterface) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public DeleteNetworkInterface setAccessToken(java.lang.String accessToken) { - return (DeleteNetworkInterface) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public DeleteNetworkInterface setAlt(java.lang.String alt) { - return (DeleteNetworkInterface) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public DeleteNetworkInterface setCallback(java.lang.String callback) { - return (DeleteNetworkInterface) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public DeleteNetworkInterface setFields(java.lang.String fields) { - return (DeleteNetworkInterface) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public DeleteNetworkInterface setKey(java.lang.String key) { - return (DeleteNetworkInterface) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public DeleteNetworkInterface setOauthToken(java.lang.String oauthToken) { - return (DeleteNetworkInterface) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public DeleteNetworkInterface setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteNetworkInterface) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public DeleteNetworkInterface setQuotaUser(java.lang.String quotaUser) { - return (DeleteNetworkInterface) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public DeleteNetworkInterface setUploadType(java.lang.String uploadType) { - return (DeleteNetworkInterface) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public DeleteNetworkInterface setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteNetworkInterface) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public DeleteNetworkInterface setUserIp(java.lang.String userIp) { - return (DeleteNetworkInterface) 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. */ @@ -75519,7 +74425,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DeleteNetworkInterface 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 " + @@ -75529,255 +74435,410 @@ public DeleteNetworkInterface 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. - */ - public java.lang.String getZone() { - return zone; - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - /** The name of the zone for this request. */ - public DeleteNetworkInterface 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; - } + 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 instance name for this request stored as resource_id. Name should conform to RFC1035 or - * be an unsigned long integer. - */ - @com.google.api.client.util.Key - private java.lang.String instance; + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - /** The instance name for this request stored as resource_id. Name should conform to RFC1035 or be an - unsigned long integer. - */ - public java.lang.String getInstance() { - return 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:* ``` - /** - * The instance name for this request stored as resource_id. Name should conform to RFC1035 or - * be an unsigned long integer. - */ - public DeleteNetworkInterface setInstance(java.lang.String instance) { - this.instance = instance; - return this; - } + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. - /** The name of the dynamic network interface to be deleted from the instance. */ - @com.google.api.client.util.Key - private java.lang.String networkInterfaceName; + 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) ``` - /** The name of the dynamic network interface to be deleted from the instance. - */ - public java.lang.String getNetworkInterfaceName() { - return networkInterfaceName; - } + 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 name of the dynamic network interface to be deleted from the instance. */ - public DeleteNetworkInterface setNetworkInterfaceName(java.lang.String networkInterfaceName) { - this.networkInterfaceName = networkInterfaceName; - return this; + `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; } /** - * An optional request ID to identify requests. Specify a unique 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). - */ - @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, 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; + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** + * 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 request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** 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 getRequestId() { - return requestId; + public java.lang.Long getMaxResults() { + return maxResults; } /** - * An optional request ID to identify requests. Specify a unique 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`) + */ + 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. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original 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 DeleteNetworkInterface setRequestId(java.lang.String requestId) { - this.requestId = requestId; + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + /** View of the instance template. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** View of the instance template. + */ + public java.lang.String getView() { + return view; + } + + /** View of the instance template. */ + public List setView(java.lang.String view) { + this.view = view; return this; } @Override - public DeleteNetworkInterface set(String parameterName, Object value) { - return (DeleteNetworkInterface) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Detaches a disk from an instance. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "instances.detachDisk". + * Create a request for the method "instanceTemplates.setIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DetachDisk#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Instance name for this request. - * @param deviceName The device name of the disk to detach. Make a get() request on - the instance to view currently - * attached disks and device names. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @return the request */ - public DetachDisk detachDisk(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String deviceName) throws java.io.IOException { - DetachDisk result = new DetachDisk(project, zone, instance, deviceName); + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); initialize(result); return result; } - public class DetachDisk extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/detachDisk"; + private static final String REST_PATH = "projects/{project}/global/instanceTemplates/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Detaches a disk from an instance. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "instances.detachDisk". + * Create a request for the method "instanceTemplates.setIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DetachDisk#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Instance name for this request. - * @param deviceName The device name of the disk to detach. Make a get() request on - the instance to view currently - * attached disks and device names. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @since 1.13 */ - protected DetachDisk(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String deviceName) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.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."); + 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(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}"); + 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.deviceName = com.google.api.client.util.Preconditions.checkNotNull(deviceName, "Required parameter deviceName must be specified."); } @Override - public DetachDisk set$Xgafv(java.lang.String $Xgafv) { - return (DetachDisk) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public DetachDisk setAccessToken(java.lang.String accessToken) { - return (DetachDisk) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public DetachDisk setAlt(java.lang.String alt) { - return (DetachDisk) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public DetachDisk setCallback(java.lang.String callback) { - return (DetachDisk) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public DetachDisk setFields(java.lang.String fields) { - return (DetachDisk) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public DetachDisk setKey(java.lang.String key) { - return (DetachDisk) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public DetachDisk setOauthToken(java.lang.String oauthToken) { - return (DetachDisk) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public DetachDisk setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DetachDisk) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public DetachDisk setQuotaUser(java.lang.String quotaUser) { - return (DetachDisk) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public DetachDisk setUploadType(java.lang.String uploadType) { - return (DetachDisk) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public DetachDisk setUploadProtocol(java.lang.String uploadProtocol) { - return (DetachDisk) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public DetachDisk setUserIp(java.lang.String userIp) { - return (DetachDisk) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -75791,7 +74852,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DetachDisk setProject(java.lang.String project) { + public SetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -75801,262 +74862,151 @@ public DetachDisk setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public DetachDisk 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; - } - - /** Instance name for this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String instance; + private java.lang.String resource; - /** Instance name for this request. + /** Name or id of the resource for this request. */ - public java.lang.String getInstance() { - return instance; + public java.lang.String getResource() { + return resource; } - /** Instance name for this request. */ - public DetachDisk setInstance(java.lang.String instance) { + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(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}"); + 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.instance = instance; - return this; - } - - /** - * The device name of the disk to detach. Make a get() request on the instance to view - * currently attached disks and device names. - */ - @com.google.api.client.util.Key - private java.lang.String deviceName; - - /** The device name of the disk to detach. Make a get() request on the instance to view currently - attached disks and device names. - */ - public java.lang.String getDeviceName() { - return deviceName; - } - - /** - * The device name of the disk to detach. Make a get() request on the instance to view - * currently attached disks and device names. - */ - public DetachDisk setDeviceName(java.lang.String deviceName) { - this.deviceName = deviceName; - 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 DetachDisk setRequestId(java.lang.String requestId) { - this.requestId = requestId; + this.resource = resource; return this; } @Override - public DetachDisk set(String parameterName, Object value) { - return (DetachDisk) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Returns the specified Instance resource. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "instances.get". + * Create a request for the method "instanceTemplates.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance resource to return. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - Get result = new Get(project, zone, instance); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}"; + private static final String REST_PATH = "projects/{project}/global/instanceTemplates/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the specified Instance resource. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "instances.get". + * Create a request for the method "instanceTemplates.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance resource to return. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Instance.class); + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.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."); + 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(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}"); + 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(); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @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); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -76070,7 +75020,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -76080,93 +75030,79 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String resource; - /** The name of the zone for this request. + /** Name or id of the resource for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getResource() { + return resource; } - /** The name of the zone for this request. */ - public Get setZone(java.lang.String zone) { + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(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.zone = zone; + this.resource = resource; return this; } - /** Name of the instance resource to return. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance resource to return. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance resource to return. */ - public Get setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; - return this; + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } + } - /** View of the instance. */ - @com.google.api.client.util.Key - private java.lang.String view; + } - /** View of the instance. - */ - public java.lang.String getView() { - return view; - } + /** + * An accessor for creating requests from the Instances collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Instances.List request = compute.instances().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Instances instances() { + return new Instances(); + } - /** View of the instance. */ - public Get setView(java.lang.String view) { - this.view = view; - return this; - } + /** + * The "instances" collection of methods. + */ + public class Instances { - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } /** - * Returns effective firewalls applied to an interface of the instance. + * Adds an access config to an instance's network interface. * - * Create a request for the method "instances.getEffectiveFirewalls". + * Create a request for the method "instances.addAccessConfig". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetEffectiveFirewalls#execute()} method to invoke the remote - * operation. + * parameters, call the {@link AddAccessConfig#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 networkInterface The name of the network interface to get the effective firewalls. + * @param instance The instance name for this request. + * @param networkInterface The name of the network interface to add to this instance. + * @param content the {@link com.google.api.services.compute.model.AccessConfig} * @return the request */ - public GetEffectiveFirewalls getEffectiveFirewalls(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface) throws java.io.IOException { - GetEffectiveFirewalls result = new GetEffectiveFirewalls(project, zone, instance, networkInterface); + public AddAccessConfig addAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.model.AccessConfig content) throws java.io.IOException { + AddAccessConfig result = new AddAccessConfig(project, zone, instance, networkInterface, content); initialize(result); return result; } - public class GetEffectiveFirewalls extends ComputeRequest { + public class AddAccessConfig extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -76175,27 +75111,28 @@ public class GetEffectiveFirewalls extends ComputeRequest {@link GetEffectiveFirewalls#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 AddAccessConfig#execute()} method to invoke the remote operation. + *

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param instance Name of the instance scoping this request. - * @param networkInterface The name of the network interface to get the effective firewalls. + * @param instance The instance name for this request. + * @param networkInterface The name of the network interface to add to this instance. + * @param content the {@link com.google.api.services.compute.model.AccessConfig} * @since 1.13 */ - protected GetEffectiveFirewalls(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstancesGetEffectiveFirewallsResponse.class); + protected AddAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.model.AccessConfig 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(), @@ -76212,79 +75149,69 @@ protected GetEffectiveFirewalls(java.lang.String project, java.lang.String zone, 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])?"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.networkInterface = com.google.api.client.util.Preconditions.checkNotNull(networkInterface, "Required parameter networkInterface 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 GetEffectiveFirewalls set$Xgafv(java.lang.String $Xgafv) { - return (GetEffectiveFirewalls) super.set$Xgafv($Xgafv); + public AddAccessConfig set$Xgafv(java.lang.String $Xgafv) { + return (AddAccessConfig) super.set$Xgafv($Xgafv); } @Override - public GetEffectiveFirewalls setAccessToken(java.lang.String accessToken) { - return (GetEffectiveFirewalls) super.setAccessToken(accessToken); + public AddAccessConfig setAccessToken(java.lang.String accessToken) { + return (AddAccessConfig) super.setAccessToken(accessToken); } @Override - public GetEffectiveFirewalls setAlt(java.lang.String alt) { - return (GetEffectiveFirewalls) super.setAlt(alt); + public AddAccessConfig setAlt(java.lang.String alt) { + return (AddAccessConfig) super.setAlt(alt); } @Override - public GetEffectiveFirewalls setCallback(java.lang.String callback) { - return (GetEffectiveFirewalls) super.setCallback(callback); + public AddAccessConfig setCallback(java.lang.String callback) { + return (AddAccessConfig) super.setCallback(callback); } @Override - public GetEffectiveFirewalls setFields(java.lang.String fields) { - return (GetEffectiveFirewalls) super.setFields(fields); + public AddAccessConfig setFields(java.lang.String fields) { + return (AddAccessConfig) super.setFields(fields); } @Override - public GetEffectiveFirewalls setKey(java.lang.String key) { - return (GetEffectiveFirewalls) super.setKey(key); + public AddAccessConfig setKey(java.lang.String key) { + return (AddAccessConfig) super.setKey(key); } @Override - public GetEffectiveFirewalls setOauthToken(java.lang.String oauthToken) { - return (GetEffectiveFirewalls) super.setOauthToken(oauthToken); + public AddAccessConfig setOauthToken(java.lang.String oauthToken) { + return (AddAccessConfig) super.setOauthToken(oauthToken); } @Override - public GetEffectiveFirewalls setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetEffectiveFirewalls) super.setPrettyPrint(prettyPrint); + public AddAccessConfig setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddAccessConfig) super.setPrettyPrint(prettyPrint); } @Override - public GetEffectiveFirewalls setQuotaUser(java.lang.String quotaUser) { - return (GetEffectiveFirewalls) super.setQuotaUser(quotaUser); + public AddAccessConfig setQuotaUser(java.lang.String quotaUser) { + return (AddAccessConfig) super.setQuotaUser(quotaUser); } @Override - public GetEffectiveFirewalls setUploadType(java.lang.String uploadType) { - return (GetEffectiveFirewalls) super.setUploadType(uploadType); + public AddAccessConfig setUploadType(java.lang.String uploadType) { + return (AddAccessConfig) super.setUploadType(uploadType); } @Override - public GetEffectiveFirewalls setUploadProtocol(java.lang.String uploadProtocol) { - return (GetEffectiveFirewalls) super.setUploadProtocol(uploadProtocol); + public AddAccessConfig setUploadProtocol(java.lang.String uploadProtocol) { + return (AddAccessConfig) super.setUploadProtocol(uploadProtocol); } @Override - public GetEffectiveFirewalls setUserIp(java.lang.String userIp) { - return (GetEffectiveFirewalls) super.setUserIp(userIp); + public AddAccessConfig setUserIp(java.lang.String userIp) { + return (AddAccessConfig) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -76298,7 +75225,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetEffectiveFirewalls setProject(java.lang.String project) { + public AddAccessConfig setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -76319,7 +75246,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public GetEffectiveFirewalls setZone(java.lang.String zone) { + public AddAccessConfig 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 " + @@ -76329,70 +75256,122 @@ public GetEffectiveFirewalls 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 GetEffectiveFirewalls setInstance(java.lang.String instance) { + /** The instance name for this request. */ + public AddAccessConfig 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])?"); + "[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 network interface to get the effective firewalls. */ + /** The name of the network interface to add to this instance. */ @com.google.api.client.util.Key private java.lang.String networkInterface; - /** The name of the network interface to get the effective firewalls. + /** The name of the network interface to add to this instance. */ public java.lang.String getNetworkInterface() { return networkInterface; } - /** The name of the network interface to get the effective firewalls. */ - public GetEffectiveFirewalls setNetworkInterface(java.lang.String networkInterface) { + /** The name of the network interface to add to this instance. */ + public AddAccessConfig setNetworkInterface(java.lang.String networkInterface) { this.networkInterface = networkInterface; 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 AddAccessConfig setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + @Override - public GetEffectiveFirewalls set(String parameterName, Object value) { - return (GetEffectiveFirewalls) super.set(parameterName, value); + public AddAccessConfig set(String parameterName, Object value) { + return (AddAccessConfig) super.set(parameterName, value); } } /** - * Returns the specified guest attributes entry. + * Adds one dynamic network interface to an active instance. * - * Create a request for the method "instances.getGuestAttributes". + * Create a request for the method "instances.addNetworkInterface". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetGuestAttributes#execute()} method to invoke the remote operation. + * parameters, call the {@link AddNetworkInterface#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 instance The instance name for this request stored as resource_id. + Name should conform to RFC1035 or be an + * unsigned long integer. + * @param content the {@link com.google.api.services.compute.model.NetworkInterface} * @return the request */ - public GetGuestAttributes getGuestAttributes(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - GetGuestAttributes result = new GetGuestAttributes(project, zone, instance); + public AddNetworkInterface addNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.NetworkInterface content) throws java.io.IOException { + AddNetworkInterface result = new AddNetworkInterface(project, zone, instance, content); initialize(result); return result; } - public class GetGuestAttributes extends ComputeRequest { + public class AddNetworkInterface extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/addNetworkInterface"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -76400,27 +75379,27 @@ public class GetGuestAttributes extends ComputeRequest {@link GetGuestAttributes#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * parameters, call the {@link AddNetworkInterface#execute()} method to invoke the remote + * operation.

{@link AddNetworkInterface#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 instance The instance name for this request stored as resource_id. + Name should conform to RFC1035 or be an + * unsigned long integer. + * @param content the {@link com.google.api.services.compute.model.NetworkInterface} * @since 1.13 */ - protected GetGuestAttributes(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.GuestAttributes.class); + protected AddNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.NetworkInterface 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(), @@ -76434,81 +75413,66 @@ protected GetGuestAttributes(java.lang.String project, java.lang.String zone, ja "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); } @Override - public GetGuestAttributes set$Xgafv(java.lang.String $Xgafv) { - return (GetGuestAttributes) super.set$Xgafv($Xgafv); + public AddNetworkInterface set$Xgafv(java.lang.String $Xgafv) { + return (AddNetworkInterface) super.set$Xgafv($Xgafv); } @Override - public GetGuestAttributes setAccessToken(java.lang.String accessToken) { - return (GetGuestAttributes) super.setAccessToken(accessToken); + public AddNetworkInterface setAccessToken(java.lang.String accessToken) { + return (AddNetworkInterface) super.setAccessToken(accessToken); } @Override - public GetGuestAttributes setAlt(java.lang.String alt) { - return (GetGuestAttributes) super.setAlt(alt); + public AddNetworkInterface setAlt(java.lang.String alt) { + return (AddNetworkInterface) super.setAlt(alt); } @Override - public GetGuestAttributes setCallback(java.lang.String callback) { - return (GetGuestAttributes) super.setCallback(callback); + public AddNetworkInterface setCallback(java.lang.String callback) { + return (AddNetworkInterface) super.setCallback(callback); } @Override - public GetGuestAttributes setFields(java.lang.String fields) { - return (GetGuestAttributes) super.setFields(fields); + public AddNetworkInterface setFields(java.lang.String fields) { + return (AddNetworkInterface) super.setFields(fields); } @Override - public GetGuestAttributes setKey(java.lang.String key) { - return (GetGuestAttributes) super.setKey(key); + public AddNetworkInterface setKey(java.lang.String key) { + return (AddNetworkInterface) super.setKey(key); } @Override - public GetGuestAttributes setOauthToken(java.lang.String oauthToken) { - return (GetGuestAttributes) super.setOauthToken(oauthToken); + public AddNetworkInterface setOauthToken(java.lang.String oauthToken) { + return (AddNetworkInterface) super.setOauthToken(oauthToken); } @Override - public GetGuestAttributes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetGuestAttributes) super.setPrettyPrint(prettyPrint); + public AddNetworkInterface setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddNetworkInterface) super.setPrettyPrint(prettyPrint); } @Override - public GetGuestAttributes setQuotaUser(java.lang.String quotaUser) { - return (GetGuestAttributes) super.setQuotaUser(quotaUser); + public AddNetworkInterface setQuotaUser(java.lang.String quotaUser) { + return (AddNetworkInterface) super.setQuotaUser(quotaUser); } @Override - public GetGuestAttributes setUploadType(java.lang.String uploadType) { - return (GetGuestAttributes) super.setUploadType(uploadType); + public AddNetworkInterface setUploadType(java.lang.String uploadType) { + return (AddNetworkInterface) super.setUploadType(uploadType); } @Override - public GetGuestAttributes setUploadProtocol(java.lang.String uploadProtocol) { - return (GetGuestAttributes) super.setUploadProtocol(uploadProtocol); + public AddNetworkInterface setUploadProtocol(java.lang.String uploadProtocol) { + return (AddNetworkInterface) super.setUploadProtocol(uploadProtocol); } @Override - public GetGuestAttributes setUserIp(java.lang.String userIp) { - return (GetGuestAttributes) super.setUserIp(userIp); + public AddNetworkInterface setUserIp(java.lang.String userIp) { + return (AddNetworkInterface) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -76522,7 +75486,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetGuestAttributes setProject(java.lang.String project) { + public AddNetworkInterface setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -76543,7 +75507,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public GetGuestAttributes setZone(java.lang.String zone) { + public AddNetworkInterface 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 " + @@ -76553,86 +75517,107 @@ public GetGuestAttributes setZone(java.lang.String zone) { return this; } - /** Name of the instance scoping this request. */ + /** + * The instance name for this request stored as resource_id. Name should conform to RFC1035 or + * be an unsigned long integer. + */ @com.google.api.client.util.Key private java.lang.String instance; - /** Name of the instance scoping this request. + /** The instance name for this request stored as resource_id. Name should conform to RFC1035 or be an + unsigned long integer. */ public java.lang.String getInstance() { return instance; } - /** Name of the instance scoping this request. */ - public GetGuestAttributes 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}"); - } + /** + * The instance name for this request stored as resource_id. Name should conform to RFC1035 or + * be an unsigned long integer. + */ + public AddNetworkInterface setInstance(java.lang.String instance) { this.instance = instance; return this; } - /** Specifies the guest attributes path to be queried. */ - @com.google.api.client.util.Key - private java.lang.String queryPath; - - /** Specifies the guest attributes path to be queried. + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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 getQueryPath() { - return queryPath; - } + @com.google.api.client.util.Key + private java.lang.String requestId; - /** Specifies the guest attributes path to be queried. */ - public GetGuestAttributes setQueryPath(java.lang.String queryPath) { - this.queryPath = queryPath; - 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. - /** Specifies the key for the guest attributes entry. */ - @com.google.api.client.util.Key - private java.lang.String variableKey; + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** Specifies the key for the guest attributes entry. + 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 getVariableKey() { - return variableKey; + public java.lang.String getRequestId() { + return requestId; } - /** Specifies the key for the guest attributes entry. */ - public GetGuestAttributes setVariableKey(java.lang.String variableKey) { - this.variableKey = variableKey; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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 AddNetworkInterface setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetGuestAttributes set(String parameterName, Object value) { - return (GetGuestAttributes) super.set(parameterName, value); + public AddNetworkInterface set(String parameterName, Object value) { + return (AddNetworkInterface) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Adds existing resource policies to an instance. You can only add one policy right now which will + * be applied to this instance for scheduling live migrations. * - * Create a request for the method "instances.getIamPolicy". + * Create a request for the method "instances.addResourcePolicies". * * 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 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 resource Name or id of the resource for this request. + * @param instance The instance name for this request. + * @param content the {@link com.google.api.services.compute.model.InstancesAddResourcePoliciesRequest} * @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 AddResourcePolicies addResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesAddResourcePoliciesRequest content) throws java.io.IOException { + AddResourcePolicies result = new AddResourcePolicies(project, zone, instance, content); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest { + public class AddResourcePolicies extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -76640,28 +75625,29 @@ public class GetIamPolicy extends ComputeRequest - * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link 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 resource Name or id of the resource for this request. + * @param instance The instance name for this request. + * @param content the {@link com.google.api.services.compute.model.InstancesAddResourcePoliciesRequest} * @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 AddResourcePolicies(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesAddResourcePoliciesRequest 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(), @@ -76674,82 +75660,72 @@ 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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public AddResourcePolicies set$Xgafv(java.lang.String $Xgafv) { + return (AddResourcePolicies) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public AddResourcePolicies setAccessToken(java.lang.String accessToken) { + return (AddResourcePolicies) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public AddResourcePolicies setAlt(java.lang.String alt) { + return (AddResourcePolicies) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public AddResourcePolicies setCallback(java.lang.String callback) { + return (AddResourcePolicies) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public AddResourcePolicies setFields(java.lang.String fields) { + return (AddResourcePolicies) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public AddResourcePolicies setKey(java.lang.String key) { + return (AddResourcePolicies) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public AddResourcePolicies setOauthToken(java.lang.String oauthToken) { + return (AddResourcePolicies) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public AddResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddResourcePolicies) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public AddResourcePolicies setQuotaUser(java.lang.String quotaUser) { + return (AddResourcePolicies) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public AddResourcePolicies setUploadType(java.lang.String uploadType) { + return (AddResourcePolicies) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public AddResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { + return (AddResourcePolicies) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public AddResourcePolicies setUserIp(java.lang.String userIp) { + return (AddResourcePolicies) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -76763,7 +75739,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy 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 " + @@ -76784,7 +75760,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public GetIamPolicy 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 " + @@ -76794,116 +75770,141 @@ public GetIamPolicy setZone(java.lang.String zone) { return this; } - /** Name or id of the resource for this request. */ + /** The instance name for this request. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String instance; - /** Name or id of the resource for this request. + /** The instance name for this request. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInstance() { + return instance; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** The instance name for this request. */ + public AddResourcePolicies setInstance(java.lang.String instance) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(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.resource = resource; + this.instance = instance; return this; } - /** Requested IAM Policy version. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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.Integer optionsRequestedPolicyVersion; + private java.lang.String requestId; - /** Requested IAM Policy version. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating 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.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getRequestId() { + return requestId; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public AddResourcePolicies setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public AddResourcePolicies set(String parameterName, Object value) { + return (AddResourcePolicies) super.set(parameterName, value); } } /** - * Gets partner metadata of the specified instance and namespaces. + * Retrieves an aggregated list of all of the instances in your project across all regions and + * zones. * - * Create a request for the method "instances.getPartnerMetadata". + * The performance of this method degrades when a filter is specified on a project that has a very + * large number of instances. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "instances.aggregatedList". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetPartnerMetadata#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 instance Name of the instance scoping this request. * @return the request */ - public GetPartnerMetadata getPartnerMetadata(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - GetPartnerMetadata result = new GetPartnerMetadata(project, zone, instance); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class GetPartnerMetadata extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/getPartnerMetadata"; + private static final String REST_PATH = "projects/{project}/aggregated/instances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Gets partner metadata of the specified instance and namespaces. + * Retrieves an aggregated list of all of the instances in your project across all regions and + * zones. * - * Create a request for the method "instances.getPartnerMetadata". + * The performance of this method degrades when a filter is specified on a project that has a very + * large number of instances. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "instances.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetPartnerMetadata#execute()} method to invoke the remote - * operation.

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

+ * 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 instance Name of the instance scoping this request. * @since 1.13 */ - protected GetPartnerMetadata(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PartnerMetadata.class); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceAggregatedList.class); this.project = com.google.api.client.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 @@ -76917,63 +75918,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetPartnerMetadata set$Xgafv(java.lang.String $Xgafv) { - return (GetPartnerMetadata) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public GetPartnerMetadata setAccessToken(java.lang.String accessToken) { - return (GetPartnerMetadata) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public GetPartnerMetadata setAlt(java.lang.String alt) { - return (GetPartnerMetadata) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public GetPartnerMetadata setCallback(java.lang.String callback) { - return (GetPartnerMetadata) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public GetPartnerMetadata setFields(java.lang.String fields) { - return (GetPartnerMetadata) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public GetPartnerMetadata setKey(java.lang.String key) { - return (GetPartnerMetadata) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public GetPartnerMetadata setOauthToken(java.lang.String oauthToken) { - return (GetPartnerMetadata) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public GetPartnerMetadata setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetPartnerMetadata) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public GetPartnerMetadata setQuotaUser(java.lang.String quotaUser) { - return (GetPartnerMetadata) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public GetPartnerMetadata setUploadType(java.lang.String uploadType) { - return (GetPartnerMetadata) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public GetPartnerMetadata setUploadProtocol(java.lang.String uploadProtocol) { - return (GetPartnerMetadata) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public GetPartnerMetadata setUserIp(java.lang.String userIp) { - return (GetPartnerMetadata) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -76987,7 +75988,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetPartnerMetadata 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 " + @@ -76997,91 +75998,357 @@ public GetPartnerMetadata 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 GetPartnerMetadata setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[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 instance scoping this request. */ + /** + * 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 instance; + private java.lang.Boolean includeAllScopes; - /** Name of the instance scoping this request. + /** 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 getInstance() { - return instance; + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; } - /** Name of the instance scoping this request. */ - public GetPartnerMetadata setInstance(java.lang.String instance) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.instance = instance; + /** + * 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; } - /** Comma separated partner metadata namespaces. */ + /** + * 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 namespaces; + private java.lang.Long maxResults; - /** Comma separated partner metadata namespaces. + /** 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 getNamespaces() { - return namespaces; + public java.lang.Long getMaxResults() { + return maxResults; } - /** Comma separated partner metadata namespaces. */ - public GetPartnerMetadata setNamespaces(java.lang.String namespaces) { - this.namespaces = namespaces; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public AggregatedList setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; return this; } - @Override - public GetPartnerMetadata set(String parameterName, Object value) { - return (GetPartnerMetadata) super.set(parameterName, value); + /** + * 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; } - } - /** - * Returns the screenshot from the specified instance. - * - * Create a request for the method "instances.getScreenshot". - * + + /** + * 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); + } + } + /** + * Attaches an existing Disk resource to an instance. You must first create the disk before you can + * attach it. It is not possible to create and attach a disk at the same time. For more information, + * readAdding a persistent disk to your instance. + * + * Create a request for the method "instances.attachDisk". + * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetScreenshot#execute()} method to invoke the remote operation. + * parameters, call the {@link AttachDisk#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 instance The instance name for this request. + * @param content the {@link com.google.api.services.compute.model.AttachedDisk} * @return the request */ - public GetScreenshot getScreenshot(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - GetScreenshot result = new GetScreenshot(project, zone, instance); + public AttachDisk attachDisk(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.AttachedDisk content) throws java.io.IOException { + AttachDisk result = new AttachDisk(project, zone, instance, content); initialize(result); return result; } - public class GetScreenshot extends ComputeRequest { + public class AttachDisk extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/screenshot"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/attachDisk"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -77093,23 +76360,26 @@ public class GetScreenshot extends ComputeRequest - * {@link GetScreenshot#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} must be called to initialize this instance immediately after invoking the constructor. - *

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

+ * {@link + * AttachDisk#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 instance The instance name for this request. + * @param content the {@link com.google.api.services.compute.model.AttachedDisk} * @since 1.13 */ - protected GetScreenshot(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Screenshot.class); + protected AttachDisk(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.AttachedDisk 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(), @@ -77131,73 +76401,63 @@ protected GetScreenshot(java.lang.String project, java.lang.String zone, java.la } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetScreenshot set$Xgafv(java.lang.String $Xgafv) { - return (GetScreenshot) super.set$Xgafv($Xgafv); + public AttachDisk set$Xgafv(java.lang.String $Xgafv) { + return (AttachDisk) super.set$Xgafv($Xgafv); } @Override - public GetScreenshot setAccessToken(java.lang.String accessToken) { - return (GetScreenshot) super.setAccessToken(accessToken); + public AttachDisk setAccessToken(java.lang.String accessToken) { + return (AttachDisk) super.setAccessToken(accessToken); } @Override - public GetScreenshot setAlt(java.lang.String alt) { - return (GetScreenshot) super.setAlt(alt); + public AttachDisk setAlt(java.lang.String alt) { + return (AttachDisk) super.setAlt(alt); } @Override - public GetScreenshot setCallback(java.lang.String callback) { - return (GetScreenshot) super.setCallback(callback); + public AttachDisk setCallback(java.lang.String callback) { + return (AttachDisk) super.setCallback(callback); } @Override - public GetScreenshot setFields(java.lang.String fields) { - return (GetScreenshot) super.setFields(fields); + public AttachDisk setFields(java.lang.String fields) { + return (AttachDisk) super.setFields(fields); } @Override - public GetScreenshot setKey(java.lang.String key) { - return (GetScreenshot) super.setKey(key); + public AttachDisk setKey(java.lang.String key) { + return (AttachDisk) super.setKey(key); } @Override - public GetScreenshot setOauthToken(java.lang.String oauthToken) { - return (GetScreenshot) super.setOauthToken(oauthToken); + public AttachDisk setOauthToken(java.lang.String oauthToken) { + return (AttachDisk) super.setOauthToken(oauthToken); } @Override - public GetScreenshot setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetScreenshot) super.setPrettyPrint(prettyPrint); + public AttachDisk setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AttachDisk) super.setPrettyPrint(prettyPrint); } @Override - public GetScreenshot setQuotaUser(java.lang.String quotaUser) { - return (GetScreenshot) super.setQuotaUser(quotaUser); + public AttachDisk setQuotaUser(java.lang.String quotaUser) { + return (AttachDisk) super.setQuotaUser(quotaUser); } @Override - public GetScreenshot setUploadType(java.lang.String uploadType) { - return (GetScreenshot) super.setUploadType(uploadType); + public AttachDisk setUploadType(java.lang.String uploadType) { + return (AttachDisk) super.setUploadType(uploadType); } @Override - public GetScreenshot setUploadProtocol(java.lang.String uploadProtocol) { - return (GetScreenshot) super.setUploadProtocol(uploadProtocol); + public AttachDisk setUploadProtocol(java.lang.String uploadProtocol) { + return (AttachDisk) super.setUploadProtocol(uploadProtocol); } @Override - public GetScreenshot setUserIp(java.lang.String userIp) { - return (GetScreenshot) super.setUserIp(userIp); + public AttachDisk setUserIp(java.lang.String userIp) { + return (AttachDisk) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -77211,7 +76471,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetScreenshot setProject(java.lang.String project) { + public AttachDisk setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -77232,7 +76492,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public GetScreenshot setZone(java.lang.String zone) { + public AttachDisk 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 " + @@ -77242,18 +76502,18 @@ public GetScreenshot 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 GetScreenshot setInstance(java.lang.String instance) { + /** The instance name for this request. */ + public AttachDisk 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 " + @@ -77263,33 +76523,108 @@ public GetScreenshot setInstance(java.lang.String instance) { return this; } + /** + * Whether to force attach the regional disk even if it's currently attached to another + * instance. If you try to force attach a zonal disk to an instance, you will receive an + * error. + */ + @com.google.api.client.util.Key + private java.lang.Boolean forceAttach; + + /** Whether to force attach the regional disk even if it's currently attached to another instance. If + you try to force attach a zonal disk to an instance, you will receive an error. + */ + public java.lang.Boolean getForceAttach() { + return forceAttach; + } + + /** + * Whether to force attach the regional disk even if it's currently attached to another + * instance. If you try to force attach a zonal disk to an instance, you will receive an + * error. + */ + public AttachDisk setForceAttach(java.lang.Boolean forceAttach) { + this.forceAttach = forceAttach; + 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 AttachDisk setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + @Override - public GetScreenshot set(String parameterName, Object value) { - return (GetScreenshot) super.set(parameterName, value); + public AttachDisk set(String parameterName, Object value) { + return (AttachDisk) super.set(parameterName, value); } } /** - * Returns the last 1 MB of serial port output from the specified instance. + * Creates multiple instances. Count specifies the number of instances to create. For more + * information, seeAbout bulk creation of VMs. * - * Create a request for the method "instances.getSerialPortOutput". + * Create a request for the method "instances.bulkInsert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetSerialPortOutput#execute()} method to invoke the remote operation. + * parameters, call the {@link 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 instance Name of the instance for this request. + * @param content the {@link com.google.api.services.compute.model.BulkInsertInstanceResource} * @return the request */ - public GetSerialPortOutput getSerialPortOutput(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - GetSerialPortOutput result = new GetSerialPortOutput(project, zone, instance); + public BulkInsert bulkInsert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.BulkInsertInstanceResource content) throws java.io.IOException { + BulkInsert result = new BulkInsert(project, zone, content); initialize(result); return result; } - public class GetSerialPortOutput extends ComputeRequest { + public class BulkInsert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/serialPort"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/bulkInsert"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -77297,27 +76632,25 @@ public class GetSerialPortOutput extends ComputeRequest {@link GetSerialPortOutput#initialize(com.google.api.client.googleapis.services. - * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

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

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param instance Name of the instance for this request. + * @param content the {@link com.google.api.services.compute.model.BulkInsertInstanceResource} * @since 1.13 */ - protected GetSerialPortOutput(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SerialPortOutput.class); + protected BulkInsert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.BulkInsertInstanceResource 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(), @@ -77330,82 +76663,66 @@ protected GetSerialPortOutput(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.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); } @Override - public GetSerialPortOutput set$Xgafv(java.lang.String $Xgafv) { - return (GetSerialPortOutput) super.set$Xgafv($Xgafv); + public BulkInsert set$Xgafv(java.lang.String $Xgafv) { + return (BulkInsert) super.set$Xgafv($Xgafv); } @Override - public GetSerialPortOutput setAccessToken(java.lang.String accessToken) { - return (GetSerialPortOutput) super.setAccessToken(accessToken); + public BulkInsert setAccessToken(java.lang.String accessToken) { + return (BulkInsert) super.setAccessToken(accessToken); } @Override - public GetSerialPortOutput setAlt(java.lang.String alt) { - return (GetSerialPortOutput) super.setAlt(alt); + public BulkInsert setAlt(java.lang.String alt) { + return (BulkInsert) super.setAlt(alt); } @Override - public GetSerialPortOutput setCallback(java.lang.String callback) { - return (GetSerialPortOutput) super.setCallback(callback); + public BulkInsert setCallback(java.lang.String callback) { + return (BulkInsert) super.setCallback(callback); } @Override - public GetSerialPortOutput setFields(java.lang.String fields) { - return (GetSerialPortOutput) super.setFields(fields); + public BulkInsert setFields(java.lang.String fields) { + return (BulkInsert) super.setFields(fields); } @Override - public GetSerialPortOutput setKey(java.lang.String key) { - return (GetSerialPortOutput) super.setKey(key); + public BulkInsert setKey(java.lang.String key) { + return (BulkInsert) super.setKey(key); } @Override - public GetSerialPortOutput setOauthToken(java.lang.String oauthToken) { - return (GetSerialPortOutput) super.setOauthToken(oauthToken); + public BulkInsert setOauthToken(java.lang.String oauthToken) { + return (BulkInsert) super.setOauthToken(oauthToken); } @Override - public GetSerialPortOutput setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetSerialPortOutput) super.setPrettyPrint(prettyPrint); + public BulkInsert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BulkInsert) super.setPrettyPrint(prettyPrint); } @Override - public GetSerialPortOutput setQuotaUser(java.lang.String quotaUser) { - return (GetSerialPortOutput) super.setQuotaUser(quotaUser); + public BulkInsert setQuotaUser(java.lang.String quotaUser) { + return (BulkInsert) super.setQuotaUser(quotaUser); } @Override - public GetSerialPortOutput setUploadType(java.lang.String uploadType) { - return (GetSerialPortOutput) super.setUploadType(uploadType); + public BulkInsert setUploadType(java.lang.String uploadType) { + return (BulkInsert) super.setUploadType(uploadType); } @Override - public GetSerialPortOutput setUploadProtocol(java.lang.String uploadProtocol) { - return (GetSerialPortOutput) super.setUploadProtocol(uploadProtocol); + public BulkInsert setUploadProtocol(java.lang.String uploadProtocol) { + return (BulkInsert) super.setUploadProtocol(uploadProtocol); } @Override - public GetSerialPortOutput setUserIp(java.lang.String userIp) { - return (GetSerialPortOutput) super.setUserIp(userIp); + public BulkInsert setUserIp(java.lang.String userIp) { + return (BulkInsert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -77419,7 +76736,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetSerialPortOutput 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 " + @@ -77440,7 +76757,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public GetSerialPortOutput 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 " + @@ -77450,131 +76767,82 @@ public GetSerialPortOutput setZone(java.lang.String zone) { return this; } - /** Name of the instance for this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance for this request. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance for this request. */ - public GetSerialPortOutput 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; - } - - /** Specifies which COM or serial port to retrieve data from. */ - @com.google.api.client.util.Key - private java.lang.Integer port; - - /** Specifies which COM or serial port to retrieve data from. [default: 1] [minimum: 1] [maximum: 4] - */ - public java.lang.Integer getPort() { - return port; - } - - /** Specifies which COM or serial port to retrieve data from. */ - public GetSerialPortOutput setPort(java.lang.Integer port) { - this.port = port; - return this; - } - /** - * Specifies the starting byte position of the output to return. To start with the first byte - * of output to the specified port, omit this field or set it to `0`. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * If the output for that byte position is available, this field matches the `start` parameter - * sent with the request. If the amount of serial console output exceeds the size of the - * buffer (1 MB), the oldest output is discarded and is no longer available. If the requested - * start position refers to discarded output, the start position is adjusted to the oldest - * output still available, and the adjusted start position is returned as the `start` property - * value. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * You can also provide a negative start position, which translates to the most recent number - * of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 - * bytes written to the serial console. Note that the negative start is bounded by the - * retained buffer size, and the returned serial console output will not exceed the max buffer - * size. + * 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.Long start; + private java.lang.String requestId; - /** Specifies the starting byte position of the output to return. To start with the first byte of - output to the specified port, omit this field or set it to `0`. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - If the output for that byte position is available, this field matches the `start` parameter sent - with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the - oldest output is discarded and is no longer available. If the requested start position refers to - discarded output, the start position is adjusted to the oldest output still available, and the - adjusted start position is returned as the `start` property value. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - You can also provide a negative start position, which translates to the most recent number of bytes - written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to - the serial console. Note that the negative start is bounded by the retained buffer size, and the - returned serial console output will not exceed the max buffer size. + 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.Long getStart() { - return start; + public java.lang.String getRequestId() { + return requestId; } /** - * Specifies the starting byte position of the output to return. To start with the first byte - * of output to the specified port, omit this field or set it to `0`. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * If the output for that byte position is available, this field matches the `start` parameter - * sent with the request. If the amount of serial console output exceeds the size of the - * buffer (1 MB), the oldest output is discarded and is no longer available. If the requested - * start position refers to discarded output, the start position is adjusted to the oldest - * output still available, and the adjusted start position is returned as the `start` property - * value. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * You can also provide a negative start position, which translates to the most recent number - * of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 - * bytes written to the serial console. Note that the negative start is bounded by the - * retained buffer size, and the returned serial console output will not exceed the max buffer - * size. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public GetSerialPortOutput setStart(java.lang.Long start) { - this.start = start; + public BulkInsert setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetSerialPortOutput set(String parameterName, Object value) { - return (GetSerialPortOutput) super.set(parameterName, value); + public BulkInsert set(String parameterName, Object value) { + return (BulkInsert) super.set(parameterName, value); } } /** - * Returns the Shielded Instance Identity of an instance + * Deletes the specified Instance resource. For more information, seeDeleting an instance. * - * Create a request for the method "instances.getShieldedInstanceIdentity". + * Create a request for the method "instances.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetShieldedInstanceIdentity#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param instance Name or id of the instance scoping this request. + * @param instance Name of the instance resource to delete. * @return the request */ - public GetShieldedInstanceIdentity getShieldedInstanceIdentity(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - GetShieldedInstanceIdentity result = new GetShieldedInstanceIdentity(project, zone, instance); + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + Delete result = new Delete(project, zone, instance); initialize(result); return result; } - public class GetShieldedInstanceIdentity extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -77586,23 +76854,22 @@ public class GetShieldedInstanceIdentity extends ComputeRequest {@link GetShieldedInstanceIdentity#initialize(com.google.api.client.googleapis.s - * ervices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.

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

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param instance Name or id of the instance scoping this request. + * @param instance Name of the instance resource to delete. * @since 1.13 */ - protected GetShieldedInstanceIdentity(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.ShieldedInstanceIdentity.class); + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instance) { + 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(), @@ -77624,73 +76891,63 @@ protected GetShieldedInstanceIdentity(java.lang.String project, java.lang.String } @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 GetShieldedInstanceIdentity set$Xgafv(java.lang.String $Xgafv) { - return (GetShieldedInstanceIdentity) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public GetShieldedInstanceIdentity setAccessToken(java.lang.String accessToken) { - return (GetShieldedInstanceIdentity) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public GetShieldedInstanceIdentity setAlt(java.lang.String alt) { - return (GetShieldedInstanceIdentity) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public GetShieldedInstanceIdentity setCallback(java.lang.String callback) { - return (GetShieldedInstanceIdentity) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public GetShieldedInstanceIdentity setFields(java.lang.String fields) { - return (GetShieldedInstanceIdentity) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public GetShieldedInstanceIdentity setKey(java.lang.String key) { - return (GetShieldedInstanceIdentity) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public GetShieldedInstanceIdentity setOauthToken(java.lang.String oauthToken) { - return (GetShieldedInstanceIdentity) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public GetShieldedInstanceIdentity setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetShieldedInstanceIdentity) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public GetShieldedInstanceIdentity setQuotaUser(java.lang.String quotaUser) { - return (GetShieldedInstanceIdentity) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public GetShieldedInstanceIdentity setUploadType(java.lang.String uploadType) { - return (GetShieldedInstanceIdentity) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public GetShieldedInstanceIdentity setUploadProtocol(java.lang.String uploadProtocol) { - return (GetShieldedInstanceIdentity) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public GetShieldedInstanceIdentity setUserIp(java.lang.String userIp) { - return (GetShieldedInstanceIdentity) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -77704,7 +76961,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetShieldedInstanceIdentity setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -77725,7 +76982,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public GetShieldedInstanceIdentity setZone(java.lang.String zone) { + 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 " + @@ -77735,18 +76992,18 @@ public GetShieldedInstanceIdentity setZone(java.lang.String zone) { return this; } - /** Name or id of the instance scoping this request. */ + /** Name of the instance resource to delete. */ @com.google.api.client.util.Key private java.lang.String instance; - /** Name or id of the instance scoping this request. + /** Name of the instance resource to delete. */ public java.lang.String getInstance() { return instance; } - /** Name or id of the instance scoping this request. */ - public GetShieldedInstanceIdentity setInstance(java.lang.String instance) { + /** Name of the instance resource to delete. */ + public Delete 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 " + @@ -77756,34 +77013,100 @@ public GetShieldedInstanceIdentity setInstance(java.lang.String instance) { return this; } + /** If set to true, Graceful Shutdown is skipped. */ + @com.google.api.client.util.Key + private java.lang.Boolean noGracefulShutdown; + + /** If set to true, Graceful Shutdown is skipped. + */ + public java.lang.Boolean getNoGracefulShutdown() { + return noGracefulShutdown; + } + + /** If set to true, Graceful Shutdown is skipped. */ + public Delete setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { + this.noGracefulShutdown = noGracefulShutdown; + 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 GetShieldedInstanceIdentity set(String parameterName, Object value) { - return (GetShieldedInstanceIdentity) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Returns the Shielded VM Identity of an instance + * Deletes an access config from an instance's network interface. * - * Create a request for the method "instances.getShieldedVmIdentity". + * Create a request for the method "instances.deleteAccessConfig". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetShieldedVmIdentity#execute()} method to invoke the remote - * operation. + * parameters, call the {@link DeleteAccessConfig#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 instance The instance name for this request. + * @param accessConfig The name of the access config to delete. + * @param networkInterface The name of the network interface. * @return the request */ - public GetShieldedVmIdentity getShieldedVmIdentity(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - GetShieldedVmIdentity result = new GetShieldedVmIdentity(project, zone, instance); + public DeleteAccessConfig deleteAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String accessConfig, java.lang.String networkInterface) throws java.io.IOException { + DeleteAccessConfig result = new DeleteAccessConfig(project, zone, instance, accessConfig, networkInterface); initialize(result); return result; } - public class GetShieldedVmIdentity extends ComputeRequest { + public class DeleteAccessConfig extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/getShieldedVmIdentity"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -77795,23 +77118,25 @@ public class GetShieldedVmIdentity extends ComputeRequest {@link GetShieldedVmIdentity#initialize(com.google.api.client.googleapis.service - * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * parameters, call the {@link DeleteAccessConfig#execute()} method to invoke the remote + * operation.

{@link DeleteAccessConfig#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 instance The instance name for this request. + * @param accessConfig The name of the access config to delete. + * @param networkInterface The name of the network interface. * @since 1.13 */ - protected GetShieldedVmIdentity(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.ShieldedVmIdentity.class); + protected DeleteAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String accessConfig, java.lang.String networkInterface) { + 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(), @@ -77830,76 +77155,68 @@ protected GetShieldedVmIdentity(java.lang.String project, java.lang.String zone, "Parameter instance must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } + this.accessConfig = com.google.api.client.util.Preconditions.checkNotNull(accessConfig, "Required parameter accessConfig must be specified."); + this.networkInterface = com.google.api.client.util.Preconditions.checkNotNull(networkInterface, "Required parameter networkInterface 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 GetShieldedVmIdentity set$Xgafv(java.lang.String $Xgafv) { - return (GetShieldedVmIdentity) super.set$Xgafv($Xgafv); + public DeleteAccessConfig set$Xgafv(java.lang.String $Xgafv) { + return (DeleteAccessConfig) super.set$Xgafv($Xgafv); } @Override - public GetShieldedVmIdentity setAccessToken(java.lang.String accessToken) { - return (GetShieldedVmIdentity) super.setAccessToken(accessToken); + public DeleteAccessConfig setAccessToken(java.lang.String accessToken) { + return (DeleteAccessConfig) super.setAccessToken(accessToken); } @Override - public GetShieldedVmIdentity setAlt(java.lang.String alt) { - return (GetShieldedVmIdentity) super.setAlt(alt); + public DeleteAccessConfig setAlt(java.lang.String alt) { + return (DeleteAccessConfig) super.setAlt(alt); } @Override - public GetShieldedVmIdentity setCallback(java.lang.String callback) { - return (GetShieldedVmIdentity) super.setCallback(callback); + public DeleteAccessConfig setCallback(java.lang.String callback) { + return (DeleteAccessConfig) super.setCallback(callback); } @Override - public GetShieldedVmIdentity setFields(java.lang.String fields) { - return (GetShieldedVmIdentity) super.setFields(fields); + public DeleteAccessConfig setFields(java.lang.String fields) { + return (DeleteAccessConfig) super.setFields(fields); } @Override - public GetShieldedVmIdentity setKey(java.lang.String key) { - return (GetShieldedVmIdentity) super.setKey(key); + public DeleteAccessConfig setKey(java.lang.String key) { + return (DeleteAccessConfig) super.setKey(key); } @Override - public GetShieldedVmIdentity setOauthToken(java.lang.String oauthToken) { - return (GetShieldedVmIdentity) super.setOauthToken(oauthToken); + public DeleteAccessConfig setOauthToken(java.lang.String oauthToken) { + return (DeleteAccessConfig) super.setOauthToken(oauthToken); } @Override - public GetShieldedVmIdentity setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetShieldedVmIdentity) super.setPrettyPrint(prettyPrint); + public DeleteAccessConfig setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteAccessConfig) super.setPrettyPrint(prettyPrint); } @Override - public GetShieldedVmIdentity setQuotaUser(java.lang.String quotaUser) { - return (GetShieldedVmIdentity) super.setQuotaUser(quotaUser); + public DeleteAccessConfig setQuotaUser(java.lang.String quotaUser) { + return (DeleteAccessConfig) super.setQuotaUser(quotaUser); } @Override - public GetShieldedVmIdentity setUploadType(java.lang.String uploadType) { - return (GetShieldedVmIdentity) super.setUploadType(uploadType); + public DeleteAccessConfig setUploadType(java.lang.String uploadType) { + return (DeleteAccessConfig) super.setUploadType(uploadType); } @Override - public GetShieldedVmIdentity setUploadProtocol(java.lang.String uploadProtocol) { - return (GetShieldedVmIdentity) super.setUploadProtocol(uploadProtocol); + public DeleteAccessConfig setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteAccessConfig) super.setUploadProtocol(uploadProtocol); } @Override - public GetShieldedVmIdentity setUserIp(java.lang.String userIp) { - return (GetShieldedVmIdentity) super.setUserIp(userIp); + public DeleteAccessConfig setUserIp(java.lang.String userIp) { + return (DeleteAccessConfig) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -77913,7 +77230,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetShieldedVmIdentity setProject(java.lang.String project) { + public DeleteAccessConfig setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -77934,7 +77251,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public GetShieldedVmIdentity setZone(java.lang.String zone) { + public DeleteAccessConfig 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 " + @@ -77944,18 +77261,18 @@ public GetShieldedVmIdentity 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 GetShieldedVmIdentity setInstance(java.lang.String instance) { + /** The instance name for this request. */ + public DeleteAccessConfig 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 " + @@ -77965,34 +77282,121 @@ public GetShieldedVmIdentity setInstance(java.lang.String instance) { return this; } + /** The name of the access config to delete. */ + @com.google.api.client.util.Key + private java.lang.String accessConfig; + + /** The name of the access config to delete. + */ + public java.lang.String getAccessConfig() { + return accessConfig; + } + + /** The name of the access config to delete. */ + public DeleteAccessConfig setAccessConfig(java.lang.String accessConfig) { + this.accessConfig = accessConfig; + return this; + } + + /** The name of the network interface. */ + @com.google.api.client.util.Key + private java.lang.String networkInterface; + + /** The name of the network interface. + */ + public java.lang.String getNetworkInterface() { + return networkInterface; + } + + /** The name of the network interface. */ + public DeleteAccessConfig setNetworkInterface(java.lang.String networkInterface) { + this.networkInterface = networkInterface; + 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 DeleteAccessConfig setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + @Override - public GetShieldedVmIdentity set(String parameterName, Object value) { - return (GetShieldedVmIdentity) super.set(parameterName, value); + public DeleteAccessConfig set(String parameterName, Object value) { + return (DeleteAccessConfig) super.set(parameterName, value); } } /** - * Retrieves details of a specific VM extension state. This is a read-only API. + * Deletes one dynamic network interface from an active instance. + * InstancesDeleteNetworkInterfaceRequest indicates: - instance from which to delete, using + * project+zone+resource_id fields; - dynamic network interface to be deleted, using + * network_interface_name field; * - * Create a request for the method "instances.getVmExtensionState". + * Create a request for the method "instances.deleteNetworkInterface". * * 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. + * parameters, call the {@link DeleteNetworkInterface#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. + * @param zone The name of the zone for this request. + * @param instance The instance name for this request stored as resource_id. + Name should conform to RFC1035 or be an + * unsigned long integer. + * @param networkInterfaceName The name of the dynamic network interface to be deleted from the instance. * @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); + public DeleteNetworkInterface deleteNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterfaceName) throws java.io.IOException { + DeleteNetworkInterface result = new DeleteNetworkInterface(project, zone, instance, networkInterfaceName); initialize(result); return result; } - public class GetVmExtensionState extends ComputeRequest { + public class DeleteNetworkInterface extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/vmExtensionStates/{extensionName}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/deleteNetworkInterface"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -78000,31 +77404,30 @@ public class GetVmExtensionState extends ComputeRequest {@link GetVmExtensionState#initialize(com.google.api.client.googleapis.services. - * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * parameters, call the {@link DeleteNetworkInterface#execute()} method to invoke the remote + * operation.

{@link DeleteNetworkInterface#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 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. + * @param zone The name of the zone for this request. + * @param instance The instance name for this request stored as resource_id. + Name should conform to RFC1035 or be an + * unsigned long integer. + * @param networkInterfaceName The name of the dynamic network interface to be deleted from the instance. * @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); + protected DeleteNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterfaceName) { + 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(), @@ -78038,87 +77441,67 @@ protected GetVmExtensionState(java.lang.String project, java.lang.String zone, j "[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(); + this.networkInterfaceName = com.google.api.client.util.Preconditions.checkNotNull(networkInterfaceName, "Required parameter networkInterfaceName must be specified."); } @Override - public GetVmExtensionState set$Xgafv(java.lang.String $Xgafv) { - return (GetVmExtensionState) super.set$Xgafv($Xgafv); + public DeleteNetworkInterface set$Xgafv(java.lang.String $Xgafv) { + return (DeleteNetworkInterface) super.set$Xgafv($Xgafv); } @Override - public GetVmExtensionState setAccessToken(java.lang.String accessToken) { - return (GetVmExtensionState) super.setAccessToken(accessToken); + public DeleteNetworkInterface setAccessToken(java.lang.String accessToken) { + return (DeleteNetworkInterface) super.setAccessToken(accessToken); } @Override - public GetVmExtensionState setAlt(java.lang.String alt) { - return (GetVmExtensionState) super.setAlt(alt); + public DeleteNetworkInterface setAlt(java.lang.String alt) { + return (DeleteNetworkInterface) super.setAlt(alt); } @Override - public GetVmExtensionState setCallback(java.lang.String callback) { - return (GetVmExtensionState) super.setCallback(callback); + public DeleteNetworkInterface setCallback(java.lang.String callback) { + return (DeleteNetworkInterface) super.setCallback(callback); } @Override - public GetVmExtensionState setFields(java.lang.String fields) { - return (GetVmExtensionState) super.setFields(fields); + public DeleteNetworkInterface setFields(java.lang.String fields) { + return (DeleteNetworkInterface) super.setFields(fields); } @Override - public GetVmExtensionState setKey(java.lang.String key) { - return (GetVmExtensionState) super.setKey(key); + public DeleteNetworkInterface setKey(java.lang.String key) { + return (DeleteNetworkInterface) super.setKey(key); } @Override - public GetVmExtensionState setOauthToken(java.lang.String oauthToken) { - return (GetVmExtensionState) super.setOauthToken(oauthToken); + public DeleteNetworkInterface setOauthToken(java.lang.String oauthToken) { + return (DeleteNetworkInterface) super.setOauthToken(oauthToken); } @Override - public GetVmExtensionState setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetVmExtensionState) super.setPrettyPrint(prettyPrint); + public DeleteNetworkInterface setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteNetworkInterface) super.setPrettyPrint(prettyPrint); } @Override - public GetVmExtensionState setQuotaUser(java.lang.String quotaUser) { - return (GetVmExtensionState) super.setQuotaUser(quotaUser); + public DeleteNetworkInterface setQuotaUser(java.lang.String quotaUser) { + return (DeleteNetworkInterface) super.setQuotaUser(quotaUser); } @Override - public GetVmExtensionState setUploadType(java.lang.String uploadType) { - return (GetVmExtensionState) super.setUploadType(uploadType); + public DeleteNetworkInterface setUploadType(java.lang.String uploadType) { + return (DeleteNetworkInterface) super.setUploadType(uploadType); } @Override - public GetVmExtensionState setUploadProtocol(java.lang.String uploadProtocol) { - return (GetVmExtensionState) super.setUploadProtocol(uploadProtocol); + public DeleteNetworkInterface setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteNetworkInterface) super.setUploadProtocol(uploadProtocol); } @Override - public GetVmExtensionState setUserIp(java.lang.String userIp) { - return (GetVmExtensionState) super.setUserIp(userIp); + public DeleteNetworkInterface setUserIp(java.lang.String userIp) { + return (DeleteNetworkInterface) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -78132,7 +77515,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetVmExtensionState setProject(java.lang.String project) { + public DeleteNetworkInterface setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -78142,18 +77525,18 @@ public GetVmExtensionState setProject(java.lang.String project) { return this; } - /** Name of the zone for this request. */ + /** The 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. + /** The 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) { + /** The name of the zone for this request. */ + public DeleteNetworkInterface 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 " + @@ -78163,75 +77546,124 @@ public GetVmExtensionState setZone(java.lang.String zone) { return this; } - /** Name or id of the instance resource. */ + /** + * The instance name for this request stored as resource_id. Name should conform to RFC1035 or + * be an unsigned long integer. + */ @com.google.api.client.util.Key private java.lang.String instance; - /** Name or id of the instance resource. + /** The instance name for this request stored as resource_id. Name should conform to RFC1035 or be an + unsigned long integer. */ 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}"); - } + /** + * The instance name for this request stored as resource_id. Name should conform to RFC1035 or + * be an unsigned long integer. + */ + public DeleteNetworkInterface setInstance(java.lang.String instance) { this.instance = instance; return this; } - /** The name of the extension to get the state for. */ + /** The name of the dynamic network interface to be deleted from the instance. */ @com.google.api.client.util.Key - private java.lang.String extensionName; + private java.lang.String networkInterfaceName; - /** The name of the extension to get the state for. + /** The name of the dynamic network interface to be deleted from the instance. */ - public java.lang.String getExtensionName() { - return extensionName; + public java.lang.String getNetworkInterfaceName() { + return networkInterfaceName; } - /** 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; + /** The name of the dynamic network interface to be deleted from the instance. */ + public DeleteNetworkInterface setNetworkInterfaceName(java.lang.String networkInterfaceName) { + this.networkInterfaceName = networkInterfaceName; + 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 DeleteNetworkInterface setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetVmExtensionState set(String parameterName, Object value) { - return (GetVmExtensionState) super.set(parameterName, value); + public DeleteNetworkInterface set(String parameterName, Object value) { + return (DeleteNetworkInterface) super.set(parameterName, value); } } /** - * Creates an instance resource in the specified project using the data included in the request. + * Detaches a disk from an instance. * - * Create a request for the method "instances.insert". + * Create a request for the method "instances.detachDisk". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link DetachDisk#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.Instance} + * @param instance Instance name for this request. + * @param deviceName The device name of the disk to detach. Make a get() request on + the instance to view currently + * attached disks and device names. * @return the request */ - public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.Instance content) throws java.io.IOException { - Insert result = new Insert(project, zone, content); + public DetachDisk detachDisk(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String deviceName) throws java.io.IOException { + DetachDisk result = new DetachDisk(project, zone, instance, deviceName); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class DetachDisk extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/detachDisk"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -78239,23 +77671,30 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

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

+ * {@link + * DetachDisk#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.Instance} + * @param instance Instance name for this request. + * @param deviceName The device name of the disk to detach. Make a get() request on + the instance to view currently + * attached disks and device names. * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.Instance content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected DetachDisk(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String deviceName) { + 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(), @@ -78268,66 +77707,73 @@ protected Insert(java.lang.String project, java.lang.String zone, com.google.api "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.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.deviceName = com.google.api.client.util.Preconditions.checkNotNull(deviceName, "Required parameter deviceName must be specified."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public DetachDisk set$Xgafv(java.lang.String $Xgafv) { + return (DetachDisk) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public DetachDisk setAccessToken(java.lang.String accessToken) { + return (DetachDisk) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public DetachDisk setAlt(java.lang.String alt) { + return (DetachDisk) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public DetachDisk setCallback(java.lang.String callback) { + return (DetachDisk) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public DetachDisk setFields(java.lang.String fields) { + return (DetachDisk) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public DetachDisk setKey(java.lang.String key) { + return (DetachDisk) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public DetachDisk setOauthToken(java.lang.String oauthToken) { + return (DetachDisk) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public DetachDisk setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DetachDisk) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public DetachDisk setQuotaUser(java.lang.String quotaUser) { + return (DetachDisk) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public DetachDisk setUploadType(java.lang.String uploadType) { + return (DetachDisk) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public DetachDisk setUploadProtocol(java.lang.String uploadProtocol) { + return (DetachDisk) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public DetachDisk setUserIp(java.lang.String userIp) { + return (DetachDisk) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -78341,7 +77787,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public DetachDisk setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -78362,7 +77808,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public Insert setZone(java.lang.String zone) { + public DetachDisk 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 " + @@ -78372,6 +77818,50 @@ public Insert setZone(java.lang.String zone) { return this; } + /** Instance name for this request. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Instance name for this request. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Instance name for this request. */ + public DetachDisk 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 device name of the disk to detach. Make a get() request on the instance to view + * currently attached disks and device names. + */ + @com.google.api.client.util.Key + private java.lang.String deviceName; + + /** The device name of the disk to detach. Make a get() request on the instance to view currently + attached disks and device names. + */ + public java.lang.String getDeviceName() { + return deviceName; + } + + /** + * The device name of the disk to detach. Make a get() request on the instance to view + * currently attached disks and device names. + */ + public DetachDisk setDeviceName(java.lang.String deviceName) { + this.deviceName = deviceName; + 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 @@ -78416,118 +77906,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 Insert setRequestId(java.lang.String requestId) { + public DetachDisk setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } - /** - * Specifies instance template to create the instance. - * - * This field is optional. It can be a full or partial URL. For example, the following are all - * valid URLs to an instance template: - * - * - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceT - * emplate - projects/project/global/instanceTemplates/instanceTemplate - - * global/instanceTemplates/instanceTemplate - */ - @com.google.api.client.util.Key - private java.lang.String sourceInstanceTemplate; - - /** Specifies instance template to create the instance. - - This field is optional. It can be a full or partial URL. For example, the following are all valid - URLs to an instance template: - - - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate - - projects/project/global/instanceTemplates/instanceTemplate - - global/instanceTemplates/instanceTemplate - */ - public java.lang.String getSourceInstanceTemplate() { - return sourceInstanceTemplate; - } - - /** - * Specifies instance template to create the instance. - * - * This field is optional. It can be a full or partial URL. For example, the following are all - * valid URLs to an instance template: - * - * - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceT - * emplate - projects/project/global/instanceTemplates/instanceTemplate - - * global/instanceTemplates/instanceTemplate - */ - public Insert setSourceInstanceTemplate(java.lang.String sourceInstanceTemplate) { - this.sourceInstanceTemplate = sourceInstanceTemplate; - return this; - } - - /** - * Specifies the machine image to use to create the instance. - * - * This field is optional. It can be a full or partial URL. For example, the following are all - * valid URLs to a machine image: - * - * - https://www.googleapis.com/compute/v1/projects/project/global/global/machineImages/machin - * eImage - projects/project/global/global/machineImages/machineImage - - * global/machineImages/machineImage - */ - @com.google.api.client.util.Key - private java.lang.String sourceMachineImage; - - /** Specifies the machine image to use to create the instance. - - This field is optional. It can be a full or partial URL. For example, the following are all valid - URLs to a machine image: - - - https://www.googleapis.com/compute/v1/projects/project/global/global/machineImages/machineImage - - projects/project/global/global/machineImages/machineImage - global/machineImages/machineImage - */ - public java.lang.String getSourceMachineImage() { - return sourceMachineImage; - } - - /** - * Specifies the machine image to use to create the instance. - * - * This field is optional. It can be a full or partial URL. For example, the following are all - * valid URLs to a machine image: - * - * - https://www.googleapis.com/compute/v1/projects/project/global/global/machineImages/machin - * eImage - projects/project/global/global/machineImages/machineImage - - * global/machineImages/machineImage - */ - public Insert setSourceMachineImage(java.lang.String sourceMachineImage) { - this.sourceMachineImage = sourceMachineImage; - return this; - } - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public DetachDisk set(String parameterName, Object value) { + return (DetachDisk) super.set(parameterName, value); } } /** - * Retrieves the list of instances contained within the specified zone. + * Returns the specified Instance resource. * - * Create a request for the method "instances.list". + * Create a request for the method "instances.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link 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 instance Name of the instance resource to return. * @return the request */ - public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { - List result = new List(project, zone); + public Get get(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + Get result = new Get(project, zone, instance); initialize(result); return result; } - public class List extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -78535,22 +77945,26 @@ public class List extends ComputeRequest {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. + * @param instance Name of the instance resource to return. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstanceList.class); + protected Get(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.Instance.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -78563,6 +77977,12 @@ protected List(java.lang.String project, java.lang.String zone) { "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 @@ -78576,63 +77996,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -78646,7 +78066,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List 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 " + @@ -78667,7 +78087,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public List 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 " + @@ -78677,317 +78097,298 @@ public List setZone(java.lang.String zone) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ + /** Name of the instance resource to return. */ @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: + private java.lang.String instance; - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + /** Name of the instance resource to return. + */ + public java.lang.String getInstance() { + return instance; + } - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + /** Name of the instance resource to return. */ + public Get 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; + } - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + /** View of the instance. */ + @com.google.api.client.util.Key + private java.lang.String view; - You cannot combine constraints on multiple fields using regular expressions. + /** View of the instance. */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getView() { + return view; } - /** - * 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")` + /** View of the instance. */ + public Get setView(java.lang.String view) { + this.view = view; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Returns effective firewalls applied to an interface of the instance. + * + * Create a request for the method "instances.getEffectiveFirewalls". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetEffectiveFirewalls#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 networkInterface The name of the network interface to get the effective firewalls. + * @return the request + */ + public GetEffectiveFirewalls getEffectiveFirewalls(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface) throws java.io.IOException { + GetEffectiveFirewalls result = new GetEffectiveFirewalls(project, zone, instance, networkInterface); + initialize(result); + return result; + } + + public class GetEffectiveFirewalls extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Returns effective firewalls applied to an interface of the instance. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "instances.getEffectiveFirewalls". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetEffectiveFirewalls#execute()} method to invoke the remote + * operation.

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

* - * You cannot combine constraints on multiple fields using regular expressions. + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance scoping this request. + * @param networkInterface The name of the network interface to get the effective firewalls. + * @since 1.13 */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + protected GetEffectiveFirewalls(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstancesGetEffectiveFirewallsResponse.class); + this.project = com.google.api.client.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])?"); + } + this.networkInterface = com.google.api.client.util.Preconditions.checkNotNull(networkInterface, "Required parameter networkInterface must be specified."); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; + @Override + public GetEffectiveFirewalls set$Xgafv(java.lang.String $Xgafv) { + return (GetEffectiveFirewalls) super.set$Xgafv($Xgafv); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public GetEffectiveFirewalls setAccessToken(java.lang.String accessToken) { + return (GetEffectiveFirewalls) super.setAccessToken(accessToken); + } - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + @Override + public GetEffectiveFirewalls setAlt(java.lang.String alt) { + return (GetEffectiveFirewalls) super.setAlt(alt); + } - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + @Override + public GetEffectiveFirewalls setCallback(java.lang.String callback) { + return (GetEffectiveFirewalls) super.setCallback(callback); + } - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public GetEffectiveFirewalls setFields(java.lang.String fields) { + return (GetEffectiveFirewalls) super.setFields(fields); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + @Override + public GetEffectiveFirewalls setKey(java.lang.String key) { + return (GetEffectiveFirewalls) super.setKey(key); + } + + @Override + public GetEffectiveFirewalls setOauthToken(java.lang.String oauthToken) { + return (GetEffectiveFirewalls) super.setOauthToken(oauthToken); + } + + @Override + public GetEffectiveFirewalls setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetEffectiveFirewalls) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetEffectiveFirewalls setQuotaUser(java.lang.String quotaUser) { + return (GetEffectiveFirewalls) super.setQuotaUser(quotaUser); + } + + @Override + public GetEffectiveFirewalls setUploadType(java.lang.String uploadType) { + return (GetEffectiveFirewalls) super.setUploadType(uploadType); + } + + @Override + public GetEffectiveFirewalls setUploadProtocol(java.lang.String uploadProtocol) { + return (GetEffectiveFirewalls) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetEffectiveFirewalls setUserIp(java.lang.String userIp) { + return (GetEffectiveFirewalls) 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 List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public GetEffectiveFirewalls setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; return this; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String zone; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** The name of the zone for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getZone() { + return zone; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** The name of the zone for this request. */ + public GetEffectiveFirewalls setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; return this; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Name of the instance scoping this request. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String instance; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Name of the instance scoping this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getInstance() { + return instance; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** Name of the instance scoping this request. */ + public GetEffectiveFirewalls 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])?"); + } + this.instance = instance; return this; } - /** View of the instance. */ + /** The name of the network interface to get the effective firewalls. */ @com.google.api.client.util.Key - private java.lang.String view; + private java.lang.String networkInterface; - /** View of the instance. + /** The name of the network interface to get the effective firewalls. */ - public java.lang.String getView() { - return view; + public java.lang.String getNetworkInterface() { + return networkInterface; } - /** View of the instance. */ - public List setView(java.lang.String view) { - this.view = view; + /** The name of the network interface to get the effective firewalls. */ + public GetEffectiveFirewalls setNetworkInterface(java.lang.String networkInterface) { + this.networkInterface = networkInterface; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public GetEffectiveFirewalls set(String parameterName, Object value) { + return (GetEffectiveFirewalls) super.set(parameterName, value); } } /** - * Retrieves a list of resources that refer to the VM instance specified in the request. For - * example, if the VM instance is part of a managed or unmanaged instance group, the referrers list - * includes the instance group. For more information, readViewing referrers to VM instances. + * Returns the specified guest attributes entry. * - * Create a request for the method "instances.listReferrers". + * Create a request for the method "instances.getGuestAttributes". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListReferrers#execute()} method to invoke the remote operation. + * parameters, call the {@link GetGuestAttributes#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 target instance scoping this request, or '-' if the - request should span over all - * instances in the container. + * @param instance Name of the instance scoping this request. * @return the request */ - public ListReferrers listReferrers(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - ListReferrers result = new ListReferrers(project, zone, instance); + public GetGuestAttributes getGuestAttributes(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + GetGuestAttributes result = new GetGuestAttributes(project, zone, instance); initialize(result); return result; } - public class ListReferrers extends ComputeRequest { + public class GetGuestAttributes extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/referrers"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -78996,30 +78397,26 @@ public class ListReferrers extends ComputeRequest - * {@link ListReferrers#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} must be called to initialize this instance immediately after invoking the constructor. - *

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

{@link GetGuestAttributes#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 target instance scoping this request, or '-' if the - request should span over all - * instances in the container. + * @param instance Name of the instance scoping this request. * @since 1.13 */ - protected ListReferrers(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.InstanceListReferrers.class); + protected GetGuestAttributes(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.GuestAttributes.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -79036,7 +78433,7 @@ protected ListReferrers(java.lang.String project, java.lang.String zone, java.la 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}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -79051,63 +78448,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public ListReferrers set$Xgafv(java.lang.String $Xgafv) { - return (ListReferrers) super.set$Xgafv($Xgafv); + public GetGuestAttributes set$Xgafv(java.lang.String $Xgafv) { + return (GetGuestAttributes) super.set$Xgafv($Xgafv); } @Override - public ListReferrers setAccessToken(java.lang.String accessToken) { - return (ListReferrers) super.setAccessToken(accessToken); + public GetGuestAttributes setAccessToken(java.lang.String accessToken) { + return (GetGuestAttributes) super.setAccessToken(accessToken); } @Override - public ListReferrers setAlt(java.lang.String alt) { - return (ListReferrers) super.setAlt(alt); + public GetGuestAttributes setAlt(java.lang.String alt) { + return (GetGuestAttributes) super.setAlt(alt); } @Override - public ListReferrers setCallback(java.lang.String callback) { - return (ListReferrers) super.setCallback(callback); + public GetGuestAttributes setCallback(java.lang.String callback) { + return (GetGuestAttributes) super.setCallback(callback); } @Override - public ListReferrers setFields(java.lang.String fields) { - return (ListReferrers) super.setFields(fields); + public GetGuestAttributes setFields(java.lang.String fields) { + return (GetGuestAttributes) super.setFields(fields); } @Override - public ListReferrers setKey(java.lang.String key) { - return (ListReferrers) super.setKey(key); + public GetGuestAttributes setKey(java.lang.String key) { + return (GetGuestAttributes) super.setKey(key); } @Override - public ListReferrers setOauthToken(java.lang.String oauthToken) { - return (ListReferrers) super.setOauthToken(oauthToken); + public GetGuestAttributes setOauthToken(java.lang.String oauthToken) { + return (GetGuestAttributes) super.setOauthToken(oauthToken); } @Override - public ListReferrers setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListReferrers) super.setPrettyPrint(prettyPrint); + public GetGuestAttributes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetGuestAttributes) super.setPrettyPrint(prettyPrint); } @Override - public ListReferrers setQuotaUser(java.lang.String quotaUser) { - return (ListReferrers) super.setQuotaUser(quotaUser); + public GetGuestAttributes setQuotaUser(java.lang.String quotaUser) { + return (GetGuestAttributes) super.setQuotaUser(quotaUser); } @Override - public ListReferrers setUploadType(java.lang.String uploadType) { - return (ListReferrers) super.setUploadType(uploadType); + public GetGuestAttributes setUploadType(java.lang.String uploadType) { + return (GetGuestAttributes) super.setUploadType(uploadType); } @Override - public ListReferrers setUploadProtocol(java.lang.String uploadProtocol) { - return (ListReferrers) super.setUploadProtocol(uploadProtocol); + public GetGuestAttributes setUploadProtocol(java.lang.String uploadProtocol) { + return (GetGuestAttributes) super.setUploadProtocol(uploadProtocol); } @Override - public ListReferrers setUserIp(java.lang.String userIp) { - return (ListReferrers) super.setUserIp(userIp); + public GetGuestAttributes setUserIp(java.lang.String userIp) { + return (GetGuestAttributes) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -79121,7 +78518,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListReferrers setProject(java.lang.String project) { + public GetGuestAttributes setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -79142,7 +78539,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public ListReferrers setZone(java.lang.String zone) { + public GetGuestAttributes 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 " + @@ -79152,326 +78549,311 @@ public ListReferrers setZone(java.lang.String zone) { return this; } - /** - * Name of the target instance scoping this request, or '-' if the request should span over - * all instances in the container. - */ + /** Name of the instance scoping this request. */ @com.google.api.client.util.Key private java.lang.String instance; - /** Name of the target instance scoping this request, or '-' if the request should span over all - instances in the container. + /** Name of the instance scoping this request. */ public java.lang.String getInstance() { return instance; } - /** - * Name of the target instance scoping this request, or '-' if the request should span over - * all instances in the container. - */ - public ListReferrers setInstance(java.lang.String instance) { + /** Name of the instance scoping this request. */ + public GetGuestAttributes 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}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.instance = instance; 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. - */ + /** Specifies the guest attributes path to be queried. */ @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. + private java.lang.String queryPath; - 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 `:`. + /** Specifies the guest attributes path to be queried. + */ + public java.lang.String getQueryPath() { + return queryPath; + } - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + /** Specifies the guest attributes path to be queried. */ + public GetGuestAttributes setQueryPath(java.lang.String queryPath) { + this.queryPath = queryPath; + return this; + } - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` + /** Specifies the key for the guest attributes entry. */ + @com.google.api.client.util.Key + private java.lang.String variableKey; - 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. + /** Specifies the key for the guest attributes entry. + */ + public java.lang.String getVariableKey() { + return variableKey; + } - 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) ``` + /** Specifies the key for the guest attributes entry. */ + public GetGuestAttributes setVariableKey(java.lang.String variableKey) { + this.variableKey = variableKey; + return this; + } - 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: + @Override + public GetGuestAttributes set(String parameterName, Object value) { + return (GetGuestAttributes) 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 "instances.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; + } - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + public class GetIamPolicy extends ComputeRequest { - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{resource}/getIamPolicy"; - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "instances.getIamPolicy". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

* - * You cannot combine constraints on multiple fields using regular expressions. + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @since 1.13 */ - public ListReferrers setFilter(java.lang.String filter) { - this.filter = filter; - return this; + protected GetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } - /** - * 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`) - */ + @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.Long maxResults; + private java.lang.String project; - /** 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] + /** Project ID for this request. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getProject() { + return project; } - /** - * 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 ListReferrers setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; + /** 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; } - /** - * 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. - */ + /** The name of the zone for this request. */ @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. + private java.lang.String zone; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** The name of the zone for this request. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getZone() { + return zone; } - /** - * 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 ListReferrers setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; + /** 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; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String resource; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Name or id of the resource for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getResource() { + return resource; } - /** - * 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 ListReferrers setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** 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; } - /** - * 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. - */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.Integer optionsRequestedPolicyVersion; - 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. + /** Requested IAM Policy version. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** - * 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 ListReferrers setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public ListReferrers set(String parameterName, Object value) { - return (ListReferrers) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Lists all VM extensions states for a specific instance. This is a read-only API. + * Gets partner metadata of the specified instance and namespaces. * - * Create a request for the method "instances.listVmExtensionStates". + * Create a request for the method "instances.getPartnerMetadata". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListVmExtensionStates#execute()} method to invoke the remote - * operation. + * parameters, call the {@link GetPartnerMetadata#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone Required. Name of the zone for this request. - * @param instance Name of the target instance scoping 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 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); + public GetPartnerMetadata getPartnerMetadata(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + GetPartnerMetadata result = new GetPartnerMetadata(project, zone, instance); initialize(result); return result; } - public class ListVmExtensionStates extends ComputeRequest { + public class GetPartnerMetadata extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/vmExtensionStates"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/getPartnerMetadata"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -79483,23 +78865,23 @@ public class ListVmExtensionStates extends ComputeRequest {@link ListVmExtensionStates#initialize(com.google.api.client.googleapis.service - * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * parameters, call the {@link GetPartnerMetadata#execute()} method to invoke the remote + * operation.

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

* * @param project Project ID for this request. - * @param zone Required. Name of the zone for this request. - * @param instance Name of the target instance scoping 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 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); + protected GetPartnerMetadata(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.PartnerMetadata.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -79531,63 +78913,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public ListVmExtensionStates set$Xgafv(java.lang.String $Xgafv) { - return (ListVmExtensionStates) super.set$Xgafv($Xgafv); + public GetPartnerMetadata set$Xgafv(java.lang.String $Xgafv) { + return (GetPartnerMetadata) super.set$Xgafv($Xgafv); } @Override - public ListVmExtensionStates setAccessToken(java.lang.String accessToken) { - return (ListVmExtensionStates) super.setAccessToken(accessToken); + public GetPartnerMetadata setAccessToken(java.lang.String accessToken) { + return (GetPartnerMetadata) super.setAccessToken(accessToken); } @Override - public ListVmExtensionStates setAlt(java.lang.String alt) { - return (ListVmExtensionStates) super.setAlt(alt); + public GetPartnerMetadata setAlt(java.lang.String alt) { + return (GetPartnerMetadata) super.setAlt(alt); } @Override - public ListVmExtensionStates setCallback(java.lang.String callback) { - return (ListVmExtensionStates) super.setCallback(callback); + public GetPartnerMetadata setCallback(java.lang.String callback) { + return (GetPartnerMetadata) super.setCallback(callback); } @Override - public ListVmExtensionStates setFields(java.lang.String fields) { - return (ListVmExtensionStates) super.setFields(fields); + public GetPartnerMetadata setFields(java.lang.String fields) { + return (GetPartnerMetadata) super.setFields(fields); } @Override - public ListVmExtensionStates setKey(java.lang.String key) { - return (ListVmExtensionStates) super.setKey(key); + public GetPartnerMetadata setKey(java.lang.String key) { + return (GetPartnerMetadata) super.setKey(key); } @Override - public ListVmExtensionStates setOauthToken(java.lang.String oauthToken) { - return (ListVmExtensionStates) super.setOauthToken(oauthToken); + public GetPartnerMetadata setOauthToken(java.lang.String oauthToken) { + return (GetPartnerMetadata) super.setOauthToken(oauthToken); } @Override - public ListVmExtensionStates setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListVmExtensionStates) super.setPrettyPrint(prettyPrint); + public GetPartnerMetadata setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetPartnerMetadata) super.setPrettyPrint(prettyPrint); } @Override - public ListVmExtensionStates setQuotaUser(java.lang.String quotaUser) { - return (ListVmExtensionStates) super.setQuotaUser(quotaUser); + public GetPartnerMetadata setQuotaUser(java.lang.String quotaUser) { + return (GetPartnerMetadata) super.setQuotaUser(quotaUser); } @Override - public ListVmExtensionStates setUploadType(java.lang.String uploadType) { - return (ListVmExtensionStates) super.setUploadType(uploadType); + public GetPartnerMetadata setUploadType(java.lang.String uploadType) { + return (GetPartnerMetadata) super.setUploadType(uploadType); } @Override - public ListVmExtensionStates setUploadProtocol(java.lang.String uploadProtocol) { - return (ListVmExtensionStates) super.setUploadProtocol(uploadProtocol); + public GetPartnerMetadata setUploadProtocol(java.lang.String uploadProtocol) { + return (GetPartnerMetadata) super.setUploadProtocol(uploadProtocol); } @Override - public ListVmExtensionStates setUserIp(java.lang.String userIp) { - return (ListVmExtensionStates) super.setUserIp(userIp); + public GetPartnerMetadata setUserIp(java.lang.String userIp) { + return (GetPartnerMetadata) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -79601,7 +78983,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListVmExtensionStates setProject(java.lang.String project) { + public GetPartnerMetadata setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -79611,18 +78993,18 @@ public ListVmExtensionStates setProject(java.lang.String project) { return this; } - /** Required. Name of the zone for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key private java.lang.String zone; - /** Required. Name of the zone for this request. + /** The name of the zone for this request. */ public java.lang.String getZone() { return zone; } - /** Required. Name of the zone for this request. */ - public ListVmExtensionStates setZone(java.lang.String zone) { + /** The name of the zone for this request. */ + public GetPartnerMetadata setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), "Parameter zone must conform to the pattern " + @@ -79632,18 +79014,18 @@ public ListVmExtensionStates setZone(java.lang.String zone) { return this; } - /** Name of the target instance scoping this request. */ + /** Name of the instance scoping this request. */ @com.google.api.client.util.Key private java.lang.String instance; - /** Name of the target instance scoping this request. + /** Name of the instance scoping this request. */ public java.lang.String getInstance() { return instance; } - /** Name of the target instance scoping this request. */ - public ListVmExtensionStates setInstance(java.lang.String instance) { + /** Name of the instance scoping this request. */ + public GetPartnerMetadata setInstance(java.lang.String instance) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), "Parameter instance must conform to the pattern " + @@ -79653,299 +79035,49 @@ public ListVmExtensionStates setInstance(java.lang.String instance) { 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. - */ + /** Comma separated partner metadata namespaces. */ @com.google.api.client.util.Key - private java.lang.String filter; + private java.lang.String namespaces; - /** 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 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. + /** Comma separated partner metadata namespaces. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getNamespaces() { + return namespaces; } - /** - * 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; + /** Comma separated partner metadata namespaces. */ + public GetPartnerMetadata setNamespaces(java.lang.String namespaces) { + this.namespaces = namespaces; return this; } @Override - public ListVmExtensionStates set(String parameterName, Object value) { - return (ListVmExtensionStates) super.set(parameterName, value); + public GetPartnerMetadata set(String parameterName, Object value) { + return (GetPartnerMetadata) super.set(parameterName, value); } } /** - * Patches partner metadata of the specified instance. + * Returns the screenshot from the specified instance. * - * Create a request for the method "instances.patchPartnerMetadata". + * Create a request for the method "instances.getScreenshot". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PatchPartnerMetadata#execute()} method to invoke the remote - * operation. + * parameters, call the {@link GetScreenshot#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of the zone for this request. * @param instance Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.model.PartnerMetadata} * @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 GetScreenshot getScreenshot(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + GetScreenshot result = new GetScreenshot(project, zone, instance); initialize(result); return result; } - public class PatchPartnerMetadata extends ComputeRequest { + public class GetScreenshot extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/patchPartnerMetadata"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/screenshot"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -79957,24 +79089,23 @@ public class PatchPartnerMetadata extends ComputeRequest {@link PatchPartnerMetadata#initialize(com.google.api.client.googleapis.services - * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

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

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. * @param instance Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.model.PartnerMetadata} * @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 GetScreenshot(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Screenshot.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -79996,63 +79127,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 GetScreenshot set$Xgafv(java.lang.String $Xgafv) { + return (GetScreenshot) super.set$Xgafv($Xgafv); } @Override - public PatchPartnerMetadata setCallback(java.lang.String callback) { - return (PatchPartnerMetadata) super.setCallback(callback); + public GetScreenshot setAccessToken(java.lang.String accessToken) { + return (GetScreenshot) super.setAccessToken(accessToken); } @Override - public PatchPartnerMetadata setFields(java.lang.String fields) { - return (PatchPartnerMetadata) super.setFields(fields); + public GetScreenshot setAlt(java.lang.String alt) { + return (GetScreenshot) super.setAlt(alt); } @Override - public PatchPartnerMetadata setKey(java.lang.String key) { - return (PatchPartnerMetadata) super.setKey(key); + public GetScreenshot setCallback(java.lang.String callback) { + return (GetScreenshot) super.setCallback(callback); } @Override - public PatchPartnerMetadata setOauthToken(java.lang.String oauthToken) { - return (PatchPartnerMetadata) super.setOauthToken(oauthToken); + public GetScreenshot setFields(java.lang.String fields) { + return (GetScreenshot) super.setFields(fields); } @Override - public PatchPartnerMetadata setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchPartnerMetadata) super.setPrettyPrint(prettyPrint); + public GetScreenshot setKey(java.lang.String key) { + return (GetScreenshot) super.setKey(key); } @Override - public PatchPartnerMetadata setQuotaUser(java.lang.String quotaUser) { - return (PatchPartnerMetadata) super.setQuotaUser(quotaUser); + public GetScreenshot setOauthToken(java.lang.String oauthToken) { + return (GetScreenshot) super.setOauthToken(oauthToken); } @Override - public PatchPartnerMetadata setUploadType(java.lang.String uploadType) { - return (PatchPartnerMetadata) super.setUploadType(uploadType); + public GetScreenshot setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetScreenshot) super.setPrettyPrint(prettyPrint); } @Override - public PatchPartnerMetadata setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchPartnerMetadata) super.setUploadProtocol(uploadProtocol); + public GetScreenshot setQuotaUser(java.lang.String quotaUser) { + return (GetScreenshot) super.setQuotaUser(quotaUser); } @Override - public PatchPartnerMetadata setUserIp(java.lang.String userIp) { - return (PatchPartnerMetadata) super.setUserIp(userIp); + public GetScreenshot setUploadType(java.lang.String uploadType) { + return (GetScreenshot) super.setUploadType(uploadType); + } + + @Override + public GetScreenshot setUploadProtocol(java.lang.String uploadProtocol) { + return (GetScreenshot) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetScreenshot setUserIp(java.lang.String userIp) { + return (GetScreenshot) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -80066,7 +79207,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchPartnerMetadata setProject(java.lang.String project) { + public GetScreenshot setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -80087,7 +79228,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public PatchPartnerMetadata setZone(java.lang.String zone) { + public GetScreenshot setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), "Parameter zone must conform to the pattern " + @@ -80108,7 +79249,7 @@ public java.lang.String getInstance() { } /** Name of the instance scoping this request. */ - public PatchPartnerMetadata setInstance(java.lang.String instance) { + public GetScreenshot setInstance(java.lang.String instance) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), "Parameter instance must conform to the pattern " + @@ -80118,82 +79259,33 @@ public PatchPartnerMetadata setInstance(java.lang.String instance) { return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. - - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public PatchPartnerMetadata setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - @Override - public PatchPartnerMetadata set(String parameterName, Object value) { - return (PatchPartnerMetadata) super.set(parameterName, value); + public GetScreenshot set(String parameterName, Object value) { + return (GetScreenshot) super.set(parameterName, value); } } /** - * Perform a manual maintenance on the instance. + * Returns the last 1 MB of serial port output from the specified instance. * - * Create a request for the method "instances.performMaintenance". + * Create a request for the method "instances.getSerialPortOutput". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote operation. + * parameters, call the {@link GetSerialPortOutput#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param instance Name of the instance scoping this request. + * @param instance Name of the instance for this request. * @return the request */ - public PerformMaintenance performMaintenance(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - PerformMaintenance result = new PerformMaintenance(project, zone, instance); + public GetSerialPortOutput getSerialPortOutput(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + GetSerialPortOutput result = new GetSerialPortOutput(project, zone, instance); initialize(result); return result; } - public class PerformMaintenance extends ComputeRequest { + public class GetSerialPortOutput extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/performMaintenance"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/serialPort"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -80205,23 +79297,23 @@ public class PerformMaintenance extends ComputeRequest {@link PerformMaintenance#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * parameters, call the {@link GetSerialPortOutput#execute()} method to invoke the remote + * operation.

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param instance Name of the instance scoping this request. + * @param instance Name of the instance for this request. * @since 1.13 */ - protected PerformMaintenance(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected GetSerialPortOutput(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SerialPortOutput.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -80243,63 +79335,73 @@ 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 com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public PerformMaintenance setAccessToken(java.lang.String accessToken) { - return (PerformMaintenance) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public PerformMaintenance setAlt(java.lang.String alt) { - return (PerformMaintenance) super.setAlt(alt); + public GetSerialPortOutput set$Xgafv(java.lang.String $Xgafv) { + return (GetSerialPortOutput) super.set$Xgafv($Xgafv); } @Override - public PerformMaintenance setCallback(java.lang.String callback) { - return (PerformMaintenance) super.setCallback(callback); + public GetSerialPortOutput setAccessToken(java.lang.String accessToken) { + return (GetSerialPortOutput) super.setAccessToken(accessToken); } @Override - public PerformMaintenance setFields(java.lang.String fields) { - return (PerformMaintenance) super.setFields(fields); + public GetSerialPortOutput setAlt(java.lang.String alt) { + return (GetSerialPortOutput) super.setAlt(alt); } @Override - public PerformMaintenance setKey(java.lang.String key) { - return (PerformMaintenance) super.setKey(key); + public GetSerialPortOutput setCallback(java.lang.String callback) { + return (GetSerialPortOutput) super.setCallback(callback); } @Override - public PerformMaintenance setOauthToken(java.lang.String oauthToken) { - return (PerformMaintenance) super.setOauthToken(oauthToken); + public GetSerialPortOutput setFields(java.lang.String fields) { + return (GetSerialPortOutput) super.setFields(fields); } @Override - public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PerformMaintenance) super.setPrettyPrint(prettyPrint); + public GetSerialPortOutput setKey(java.lang.String key) { + return (GetSerialPortOutput) super.setKey(key); } @Override - public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { - return (PerformMaintenance) super.setQuotaUser(quotaUser); + public GetSerialPortOutput setOauthToken(java.lang.String oauthToken) { + return (GetSerialPortOutput) super.setOauthToken(oauthToken); } @Override - public PerformMaintenance setUploadType(java.lang.String uploadType) { - return (PerformMaintenance) super.setUploadType(uploadType); + public GetSerialPortOutput setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetSerialPortOutput) super.setPrettyPrint(prettyPrint); } @Override - public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { - return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); + public GetSerialPortOutput setQuotaUser(java.lang.String quotaUser) { + return (GetSerialPortOutput) super.setQuotaUser(quotaUser); } @Override - public PerformMaintenance setUserIp(java.lang.String userIp) { - return (PerformMaintenance) super.setUserIp(userIp); + public GetSerialPortOutput setUploadType(java.lang.String uploadType) { + return (GetSerialPortOutput) super.setUploadType(uploadType); + } + + @Override + public GetSerialPortOutput setUploadProtocol(java.lang.String uploadProtocol) { + return (GetSerialPortOutput) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetSerialPortOutput setUserIp(java.lang.String userIp) { + return (GetSerialPortOutput) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -80313,7 +79415,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PerformMaintenance setProject(java.lang.String project) { + public GetSerialPortOutput setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -80334,7 +79436,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public PerformMaintenance setZone(java.lang.String zone) { + public GetSerialPortOutput 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 " + @@ -80344,18 +79446,18 @@ public PerformMaintenance setZone(java.lang.String zone) { return this; } - /** Name of the instance scoping this request. */ + /** Name of the instance for this request. */ @com.google.api.client.util.Key private java.lang.String instance; - /** Name of the instance scoping this request. + /** Name of the instance for this request. */ public java.lang.String getInstance() { return instance; } - /** Name of the instance scoping this request. */ - public PerformMaintenance setInstance(java.lang.String instance) { + /** Name of the instance for this request. */ + public GetSerialPortOutput 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 " + @@ -80365,84 +79467,110 @@ public PerformMaintenance setInstance(java.lang.String 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). - */ + /** Specifies which COM or serial port to retrieve data from. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.Integer port; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Specifies which COM or serial port to retrieve data from. [default: 1] [minimum: 1] [maximum: 4] */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getPort() { + return port; + } + + /** Specifies which COM or serial port to retrieve data from. */ + public GetSerialPortOutput setPort(java.lang.Integer port) { + this.port = port; + 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. + * Specifies the starting byte position of the output to return. To start with the first byte + * of output to the specified port, omit this field or set it to `0`. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original 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 the output for that byte position is available, this field matches the `start` parameter + * sent with the request. If the amount of serial console output exceeds the size of the + * buffer (1 MB), the oldest output is discarded and is no longer available. If the requested + * start position refers to discarded output, the start position is adjusted to the oldest + * output still available, and the adjusted start position is returned as the `start` property + * value. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * You can also provide a negative start position, which translates to the most recent number + * of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 + * bytes written to the serial console. Note that the negative start is bounded by the + * retained buffer size, and the returned serial console output will not exceed the max buffer + * size. */ - public PerformMaintenance setRequestId(java.lang.String requestId) { - this.requestId = requestId; + @com.google.api.client.util.Key + private java.lang.Long start; + + /** Specifies the starting byte position of the output to return. To start with the first byte of + output to the specified port, omit this field or set it to `0`. + + If the output for that byte position is available, this field matches the `start` parameter sent + with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the + oldest output is discarded and is no longer available. If the requested start position refers to + discarded output, the start position is adjusted to the oldest output still available, and the + adjusted start position is returned as the `start` property value. + + You can also provide a negative start position, which translates to the most recent number of bytes + written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to + the serial console. Note that the negative start is bounded by the retained buffer size, and the + returned serial console output will not exceed the max buffer size. + */ + public java.lang.Long getStart() { + return start; + } + + /** + * Specifies the starting byte position of the output to return. To start with the first byte + * of output to the specified port, omit this field or set it to `0`. + * + * If the output for that byte position is available, this field matches the `start` parameter + * sent with the request. If the amount of serial console output exceeds the size of the + * buffer (1 MB), the oldest output is discarded and is no longer available. If the requested + * start position refers to discarded output, the start position is adjusted to the oldest + * output still available, and the adjusted start position is returned as the `start` property + * value. + * + * You can also provide a negative start position, which translates to the most recent number + * of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 + * bytes written to the serial console. Note that the negative start is bounded by the + * retained buffer size, and the returned serial console output will not exceed the max buffer + * size. + */ + public GetSerialPortOutput setStart(java.lang.Long start) { + this.start = start; return this; } @Override - public PerformMaintenance set(String parameterName, Object value) { - return (PerformMaintenance) super.set(parameterName, value); + public GetSerialPortOutput set(String parameterName, Object value) { + return (GetSerialPortOutput) super.set(parameterName, value); } } /** - * Removes resource policies from an instance. + * Returns the Shielded Instance Identity of an instance * - * Create a request for the method "instances.removeResourcePolicies". + * Create a request for the method "instances.getShieldedInstanceIdentity". * * 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 + * parameters, call the {@link GetShieldedInstanceIdentity#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 or id 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 GetShieldedInstanceIdentity getShieldedInstanceIdentity(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + GetShieldedInstanceIdentity result = new GetShieldedInstanceIdentity(project, zone, instance); initialize(result); return result; } - public class RemoveResourcePolicies extends ComputeRequest { + public class GetShieldedInstanceIdentity extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -80454,24 +79582,23 @@ public class RemoveResourcePolicies extends ComputeRequest {@link RemoveResourcePolicies#initialize(com.google.api.client.googleapis.servic - * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

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

{@link GetShieldedInstanceIdentity#initialize(com.google.api.client.googleapis.s + * ervices.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 The instance name for this request. - * @param content the {@link com.google.api.services.compute.model.InstancesRemoveResourcePoliciesRequest} + * @param instance Name or id 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 GetShieldedInstanceIdentity(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.ShieldedInstanceIdentity.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -80493,63 +79620,73 @@ 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 com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RemoveResourcePolicies setAccessToken(java.lang.String accessToken) { - return (RemoveResourcePolicies) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public RemoveResourcePolicies setAlt(java.lang.String alt) { - return (RemoveResourcePolicies) super.setAlt(alt); + public GetShieldedInstanceIdentity set$Xgafv(java.lang.String $Xgafv) { + return (GetShieldedInstanceIdentity) super.set$Xgafv($Xgafv); } @Override - public RemoveResourcePolicies setCallback(java.lang.String callback) { - return (RemoveResourcePolicies) super.setCallback(callback); + public GetShieldedInstanceIdentity setAccessToken(java.lang.String accessToken) { + return (GetShieldedInstanceIdentity) super.setAccessToken(accessToken); } @Override - public RemoveResourcePolicies setFields(java.lang.String fields) { - return (RemoveResourcePolicies) super.setFields(fields); + public GetShieldedInstanceIdentity setAlt(java.lang.String alt) { + return (GetShieldedInstanceIdentity) super.setAlt(alt); } @Override - public RemoveResourcePolicies setKey(java.lang.String key) { - return (RemoveResourcePolicies) super.setKey(key); + public GetShieldedInstanceIdentity setCallback(java.lang.String callback) { + return (GetShieldedInstanceIdentity) super.setCallback(callback); } @Override - public RemoveResourcePolicies setOauthToken(java.lang.String oauthToken) { - return (RemoveResourcePolicies) super.setOauthToken(oauthToken); + public GetShieldedInstanceIdentity setFields(java.lang.String fields) { + return (GetShieldedInstanceIdentity) super.setFields(fields); } @Override - public RemoveResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveResourcePolicies) super.setPrettyPrint(prettyPrint); + public GetShieldedInstanceIdentity setKey(java.lang.String key) { + return (GetShieldedInstanceIdentity) super.setKey(key); } @Override - public RemoveResourcePolicies setQuotaUser(java.lang.String quotaUser) { - return (RemoveResourcePolicies) super.setQuotaUser(quotaUser); + public GetShieldedInstanceIdentity setOauthToken(java.lang.String oauthToken) { + return (GetShieldedInstanceIdentity) super.setOauthToken(oauthToken); } @Override - public RemoveResourcePolicies setUploadType(java.lang.String uploadType) { - return (RemoveResourcePolicies) super.setUploadType(uploadType); + public GetShieldedInstanceIdentity setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetShieldedInstanceIdentity) super.setPrettyPrint(prettyPrint); } @Override - public RemoveResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveResourcePolicies) super.setUploadProtocol(uploadProtocol); + public GetShieldedInstanceIdentity setQuotaUser(java.lang.String quotaUser) { + return (GetShieldedInstanceIdentity) super.setQuotaUser(quotaUser); } @Override - public RemoveResourcePolicies setUserIp(java.lang.String userIp) { - return (RemoveResourcePolicies) super.setUserIp(userIp); + public GetShieldedInstanceIdentity setUploadType(java.lang.String uploadType) { + return (GetShieldedInstanceIdentity) super.setUploadType(uploadType); + } + + @Override + public GetShieldedInstanceIdentity setUploadProtocol(java.lang.String uploadProtocol) { + return (GetShieldedInstanceIdentity) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetShieldedInstanceIdentity setUserIp(java.lang.String userIp) { + return (GetShieldedInstanceIdentity) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -80563,7 +79700,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveResourcePolicies setProject(java.lang.String project) { + public GetShieldedInstanceIdentity setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -80584,7 +79721,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public RemoveResourcePolicies setZone(java.lang.String zone) { + public GetShieldedInstanceIdentity 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 " + @@ -80594,18 +79731,18 @@ public RemoveResourcePolicies setZone(java.lang.String zone) { return this; } - /** The instance name for this request. */ + /** Name or id of the instance scoping this request. */ @com.google.api.client.util.Key private java.lang.String instance; - /** The instance name for this request. + /** Name or id 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 or id of the instance scoping this request. */ + public GetShieldedInstanceIdentity 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 " + @@ -80615,83 +79752,34 @@ public RemoveResourcePolicies setInstance(java.lang.String 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 RemoveResourcePolicies 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 GetShieldedInstanceIdentity set(String parameterName, Object value) { + return (GetShieldedInstanceIdentity) super.set(parameterName, value); } } /** - * Mark the host as faulty and try to restart the instance on a new host. + * Returns the Shielded VM Identity of an instance * - * Create a request for the method "instances.reportHostAsFaulty". + * Create a request for the method "instances.getShieldedVmIdentity". * * 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 GetShieldedVmIdentity#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 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 GetShieldedVmIdentity getShieldedVmIdentity(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + GetShieldedVmIdentity result = new GetShieldedVmIdentity(project, zone, instance); initialize(result); return result; } - public class ReportHostAsFaulty extends ComputeRequest { + public class GetShieldedVmIdentity extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/reportHostAsFaulty"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/getShieldedVmIdentity"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -80703,24 +79791,23 @@ public class ReportHostAsFaulty extends ComputeRequest {@link ReportHostAsFaulty#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after + * parameters, call the {@link GetShieldedVmIdentity#execute()} method to invoke the remote + * operation.

{@link GetShieldedVmIdentity#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.InstancesReportHostAsFaultyRequest} * @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) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected GetShieldedVmIdentity(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.ShieldedVmIdentity.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -80742,63 +79829,73 @@ 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 com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public ReportHostAsFaulty setAccessToken(java.lang.String accessToken) { - return (ReportHostAsFaulty) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public ReportHostAsFaulty setAlt(java.lang.String alt) { - return (ReportHostAsFaulty) super.setAlt(alt); + public GetShieldedVmIdentity set$Xgafv(java.lang.String $Xgafv) { + return (GetShieldedVmIdentity) super.set$Xgafv($Xgafv); } @Override - public ReportHostAsFaulty setCallback(java.lang.String callback) { - return (ReportHostAsFaulty) super.setCallback(callback); + public GetShieldedVmIdentity setAccessToken(java.lang.String accessToken) { + return (GetShieldedVmIdentity) super.setAccessToken(accessToken); } @Override - public ReportHostAsFaulty setFields(java.lang.String fields) { - return (ReportHostAsFaulty) super.setFields(fields); + public GetShieldedVmIdentity setAlt(java.lang.String alt) { + return (GetShieldedVmIdentity) super.setAlt(alt); } @Override - public ReportHostAsFaulty setKey(java.lang.String key) { - return (ReportHostAsFaulty) super.setKey(key); + public GetShieldedVmIdentity setCallback(java.lang.String callback) { + return (GetShieldedVmIdentity) super.setCallback(callback); } @Override - public ReportHostAsFaulty setOauthToken(java.lang.String oauthToken) { - return (ReportHostAsFaulty) super.setOauthToken(oauthToken); + public GetShieldedVmIdentity setFields(java.lang.String fields) { + return (GetShieldedVmIdentity) super.setFields(fields); } @Override - public ReportHostAsFaulty setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ReportHostAsFaulty) super.setPrettyPrint(prettyPrint); + public GetShieldedVmIdentity setKey(java.lang.String key) { + return (GetShieldedVmIdentity) super.setKey(key); } @Override - public ReportHostAsFaulty setQuotaUser(java.lang.String quotaUser) { - return (ReportHostAsFaulty) super.setQuotaUser(quotaUser); + public GetShieldedVmIdentity setOauthToken(java.lang.String oauthToken) { + return (GetShieldedVmIdentity) super.setOauthToken(oauthToken); } @Override - public ReportHostAsFaulty setUploadType(java.lang.String uploadType) { - return (ReportHostAsFaulty) super.setUploadType(uploadType); + public GetShieldedVmIdentity setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetShieldedVmIdentity) super.setPrettyPrint(prettyPrint); } @Override - public ReportHostAsFaulty setUploadProtocol(java.lang.String uploadProtocol) { - return (ReportHostAsFaulty) super.setUploadProtocol(uploadProtocol); + public GetShieldedVmIdentity setQuotaUser(java.lang.String quotaUser) { + return (GetShieldedVmIdentity) super.setQuotaUser(quotaUser); } @Override - public ReportHostAsFaulty setUserIp(java.lang.String userIp) { - return (ReportHostAsFaulty) super.setUserIp(userIp); + public GetShieldedVmIdentity setUploadType(java.lang.String uploadType) { + return (GetShieldedVmIdentity) super.setUploadType(uploadType); + } + + @Override + public GetShieldedVmIdentity setUploadProtocol(java.lang.String uploadProtocol) { + return (GetShieldedVmIdentity) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetShieldedVmIdentity setUserIp(java.lang.String userIp) { + return (GetShieldedVmIdentity) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -80812,7 +79909,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ReportHostAsFaulty setProject(java.lang.String project) { + public GetShieldedVmIdentity setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -80833,7 +79930,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public ReportHostAsFaulty setZone(java.lang.String zone) { + public GetShieldedVmIdentity 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 " + @@ -80854,7 +79951,7 @@ public java.lang.String getInstance() { } /** Name of the instance scoping this request. */ - public ReportHostAsFaulty setInstance(java.lang.String instance) { + public GetShieldedVmIdentity 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 " + @@ -80864,83 +79961,34 @@ public ReportHostAsFaulty setInstance(java.lang.String 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); + public GetShieldedVmIdentity set(String parameterName, Object value) { + return (GetShieldedVmIdentity) 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. + * Retrieves details of a specific VM extension state. This is a read-only API. * - * Create a request for the method "instances.reset". + * 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 Reset#execute()} method to invoke the remote operation. + * parameters, call the {@link GetVmExtensionState#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 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 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 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 Reset extends ComputeRequest { + public class GetVmExtensionState extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/reset"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/vmExtensionStates/{extensionName}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -80951,24 +79999,28 @@ public class Reset extends ComputeRequest {@link - * Reset#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

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

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

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance scoping 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 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 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(), @@ -80987,66 +80039,82 @@ protected Reset(java.lang.String project, java.lang.String zone, java.lang.Strin "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 Reset set$Xgafv(java.lang.String $Xgafv) { - return (Reset) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Reset setAccessToken(java.lang.String accessToken) { - return (Reset) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Reset setAlt(java.lang.String alt) { - return (Reset) super.setAlt(alt); + public GetVmExtensionState set$Xgafv(java.lang.String $Xgafv) { + return (GetVmExtensionState) super.set$Xgafv($Xgafv); } @Override - public Reset setCallback(java.lang.String callback) { - return (Reset) super.setCallback(callback); + public GetVmExtensionState setAccessToken(java.lang.String accessToken) { + return (GetVmExtensionState) super.setAccessToken(accessToken); } @Override - public Reset setFields(java.lang.String fields) { - return (Reset) super.setFields(fields); + public GetVmExtensionState setAlt(java.lang.String alt) { + return (GetVmExtensionState) super.setAlt(alt); } @Override - public Reset setKey(java.lang.String key) { - return (Reset) super.setKey(key); + public GetVmExtensionState setCallback(java.lang.String callback) { + return (GetVmExtensionState) super.setCallback(callback); } @Override - public Reset setOauthToken(java.lang.String oauthToken) { - return (Reset) super.setOauthToken(oauthToken); + public GetVmExtensionState setFields(java.lang.String fields) { + return (GetVmExtensionState) super.setFields(fields); } @Override - public Reset setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Reset) super.setPrettyPrint(prettyPrint); + public GetVmExtensionState setKey(java.lang.String key) { + return (GetVmExtensionState) super.setKey(key); } @Override - public Reset setQuotaUser(java.lang.String quotaUser) { - return (Reset) super.setQuotaUser(quotaUser); + public GetVmExtensionState setOauthToken(java.lang.String oauthToken) { + return (GetVmExtensionState) super.setOauthToken(oauthToken); } @Override - public Reset setUploadType(java.lang.String uploadType) { - return (Reset) super.setUploadType(uploadType); + public GetVmExtensionState setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetVmExtensionState) super.setPrettyPrint(prettyPrint); } @Override - public Reset setUploadProtocol(java.lang.String uploadProtocol) { - return (Reset) super.setUploadProtocol(uploadProtocol); + public GetVmExtensionState setQuotaUser(java.lang.String quotaUser) { + return (GetVmExtensionState) super.setQuotaUser(quotaUser); } @Override - public Reset setUserIp(java.lang.String userIp) { - return (Reset) super.setUserIp(userIp); + 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. */ @@ -81060,7 +80128,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Reset setProject(java.lang.String project) { + 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 " + @@ -81070,18 +80138,18 @@ public Reset setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** 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. + /** Name of the zone for this request. */ public java.lang.String getZone() { return zone; } - /** The name of the zone for this request. */ - public Reset setZone(java.lang.String 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 " + @@ -81091,18 +80159,18 @@ public Reset setZone(java.lang.String zone) { return this; } - /** Name of the instance scoping this request. */ + /** Name or id of the instance resource. */ @com.google.api.client.util.Key private java.lang.String instance; - /** Name of the instance scoping this request. + /** Name or id of the instance resource. */ public java.lang.String getInstance() { return instance; } - /** Name of the instance scoping this request. */ - public Reset setInstance(java.lang.String 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 " + @@ -81112,83 +80180,54 @@ public Reset setInstance(java.lang.String 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). - */ + /** The name of the extension to get the state for. */ @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 extensionName; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** The name of the extension to get the state for. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getExtensionName() { + return extensionName; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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 Reset setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** 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 Reset set(String parameterName, Object value) { - return (Reset) super.set(parameterName, value); + public GetVmExtensionState set(String parameterName, Object value) { + return (GetVmExtensionState) super.set(parameterName, value); } } /** - * Resumes an instance that was suspended using theinstances().suspend method. + * Creates an instance resource in the specified project using the data included in the request. * - * Create a request for the method "instances.resume". + * Create a request for the method "instances.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Resume#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param instance Name of the instance resource to resume. - * @param content the {@link com.google.api.services.compute.model.InstancesResumeRequest} + * @param content the {@link com.google.api.services.compute.model.Instance} * @return the request */ - public Resume resume(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesResumeRequest content) throws java.io.IOException { - Resume result = new Resume(project, zone, instance, content); + public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.Instance content) throws java.io.IOException { + Insert result = new Insert(project, zone, content); initialize(result); return result; } - public class Resume extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/resume"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -81196,26 +80235,22 @@ public class Resume extends ComputeRequest {@link - * Resume#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param instance Name of the instance resource to resume. - * @param content the {@link com.google.api.services.compute.model.InstancesResumeRequest} + * @param content the {@link com.google.api.services.compute.model.Instance} * @since 1.13 */ - protected Resume(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesResumeRequest content) { + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.Instance 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()) { @@ -81229,72 +80264,66 @@ protected Resume(java.lang.String project, java.lang.String zone, java.lang.Stri "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.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 Resume set$Xgafv(java.lang.String $Xgafv) { - return (Resume) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Resume setAccessToken(java.lang.String accessToken) { - return (Resume) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Resume setAlt(java.lang.String alt) { - return (Resume) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Resume setCallback(java.lang.String callback) { - return (Resume) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Resume setFields(java.lang.String fields) { - return (Resume) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Resume setKey(java.lang.String key) { - return (Resume) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Resume setOauthToken(java.lang.String oauthToken) { - return (Resume) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Resume setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Resume) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Resume setQuotaUser(java.lang.String quotaUser) { - return (Resume) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Resume setUploadType(java.lang.String uploadType) { - return (Resume) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Resume setUploadProtocol(java.lang.String uploadProtocol) { - return (Resume) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Resume setUserIp(java.lang.String userIp) { - return (Resume) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -81308,7 +80337,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Resume setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -81329,7 +80358,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public Resume setZone(java.lang.String zone) { + public Insert setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), "Parameter zone must conform to the pattern " + @@ -81339,27 +80368,6 @@ public Resume setZone(java.lang.String zone) { return this; } - /** Name of the instance resource to resume. */ - @com.google.api.client.util.Key - private java.lang.String instance; - - /** Name of the instance resource to resume. - */ - public java.lang.String getInstance() { - return instance; - } - - /** Name of the instance resource to resume. */ - public Resume 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 @@ -81404,238 +80412,118 @@ 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 Resume setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } - @Override - public Resume set(String parameterName, Object value) { - return (Resume) super.set(parameterName, value); - } - } - /** - * Sends diagnostic interrupt to the instance. - * - * Create a request for the method "instances.sendDiagnosticInterrupt". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SendDiagnosticInterrupt#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 SendDiagnosticInterrupt sendDiagnosticInterrupt(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - SendDiagnosticInterrupt result = new SendDiagnosticInterrupt(project, zone, instance); - initialize(result); - return result; - } - - public class SendDiagnosticInterrupt extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Sends diagnostic interrupt to the instance. - * - * Create a request for the method "instances.sendDiagnosticInterrupt". + * Specifies instance template to create the instance. * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SendDiagnosticInterrupt#execute()} method to invoke the remote - * operation.

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

+ * This field is optional. It can be a full or partial URL. For example, the following are all + * valid URLs to an instance template: * - * @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 + * - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceT + * emplate - projects/project/global/instanceTemplates/instanceTemplate - + * global/instanceTemplates/instanceTemplate */ - protected SendDiagnosticInterrupt(java.lang.String project, java.lang.String zone, java.lang.String instance) { - super(Compute.this, "POST", REST_PATH, null, Void.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.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 SendDiagnosticInterrupt set$Xgafv(java.lang.String $Xgafv) { - return (SendDiagnosticInterrupt) super.set$Xgafv($Xgafv); - } - - @Override - public SendDiagnosticInterrupt setAccessToken(java.lang.String accessToken) { - return (SendDiagnosticInterrupt) super.setAccessToken(accessToken); - } - - @Override - public SendDiagnosticInterrupt setAlt(java.lang.String alt) { - return (SendDiagnosticInterrupt) super.setAlt(alt); - } - - @Override - public SendDiagnosticInterrupt setCallback(java.lang.String callback) { - return (SendDiagnosticInterrupt) super.setCallback(callback); - } - - @Override - public SendDiagnosticInterrupt setFields(java.lang.String fields) { - return (SendDiagnosticInterrupt) super.setFields(fields); - } - - @Override - public SendDiagnosticInterrupt setKey(java.lang.String key) { - return (SendDiagnosticInterrupt) super.setKey(key); - } - - @Override - public SendDiagnosticInterrupt setOauthToken(java.lang.String oauthToken) { - return (SendDiagnosticInterrupt) super.setOauthToken(oauthToken); - } - - @Override - public SendDiagnosticInterrupt setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SendDiagnosticInterrupt) super.setPrettyPrint(prettyPrint); - } - - @Override - public SendDiagnosticInterrupt setQuotaUser(java.lang.String quotaUser) { - return (SendDiagnosticInterrupt) super.setQuotaUser(quotaUser); - } - - @Override - public SendDiagnosticInterrupt setUploadType(java.lang.String uploadType) { - return (SendDiagnosticInterrupt) super.setUploadType(uploadType); - } - - @Override - public SendDiagnosticInterrupt setUploadProtocol(java.lang.String uploadProtocol) { - return (SendDiagnosticInterrupt) super.setUploadProtocol(uploadProtocol); - } + @com.google.api.client.util.Key + private java.lang.String sourceInstanceTemplate; - @Override - public SendDiagnosticInterrupt setUserIp(java.lang.String userIp) { - return (SendDiagnosticInterrupt) super.setUserIp(userIp); - } + /** Specifies instance template to create the instance. - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; + This field is optional. It can be a full or partial URL. For example, the following are all valid + URLs to an instance template: - /** Project ID for this request. + - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate + - projects/project/global/instanceTemplates/instanceTemplate - + global/instanceTemplates/instanceTemplate */ - public java.lang.String getProject() { - return project; + public java.lang.String getSourceInstanceTemplate() { + return sourceInstanceTemplate; } - /** Project ID for this request. */ - public SendDiagnosticInterrupt setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; + /** + * Specifies instance template to create the instance. + * + * This field is optional. It can be a full or partial URL. For example, the following are all + * valid URLs to an instance template: + * + * - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceT + * emplate - projects/project/global/instanceTemplates/instanceTemplate - + * global/instanceTemplates/instanceTemplate + */ + public Insert setSourceInstanceTemplate(java.lang.String sourceInstanceTemplate) { + this.sourceInstanceTemplate = sourceInstanceTemplate; 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. + /** + * Specifies the machine image to use to create the instance. + * + * This field is optional. It can be a full or partial URL. For example, the following are all + * valid URLs to a machine image: + * + * - https://www.googleapis.com/compute/v1/projects/project/global/global/machineImages/machin + * eImage - projects/project/global/global/machineImages/machineImage - + * global/machineImages/machineImage */ - public java.lang.String getZone() { - return zone; - } + @com.google.api.client.util.Key + private java.lang.String sourceMachineImage; - /** The name of the zone for this request. */ - public SendDiagnosticInterrupt 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; - } + /** Specifies the machine image to use to create the instance. - /** Name of the instance scoping this request. */ - @com.google.api.client.util.Key - private java.lang.String instance; + This field is optional. It can be a full or partial URL. For example, the following are all valid + URLs to a machine image: - /** Name of the instance scoping this request. + - https://www.googleapis.com/compute/v1/projects/project/global/global/machineImages/machineImage - + projects/project/global/global/machineImages/machineImage - global/machineImages/machineImage */ - public java.lang.String getInstance() { - return instance; + public java.lang.String getSourceMachineImage() { + return sourceMachineImage; } - /** Name of the instance scoping this request. */ - public SendDiagnosticInterrupt 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; + /** + * Specifies the machine image to use to create the instance. + * + * This field is optional. It can be a full or partial URL. For example, the following are all + * valid URLs to a machine image: + * + * - https://www.googleapis.com/compute/v1/projects/project/global/global/machineImages/machin + * eImage - projects/project/global/global/machineImages/machineImage - + * global/machineImages/machineImage + */ + public Insert setSourceMachineImage(java.lang.String sourceMachineImage) { + this.sourceMachineImage = sourceMachineImage; return this; } @Override - public SendDiagnosticInterrupt set(String parameterName, Object value) { - return (SendDiagnosticInterrupt) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Sets deletion protection on the instance. + * Retrieves the list of instances contained within the specified zone. * - * Create a request for the method "instances.setDeletionProtection". + * Create a request for the method "instances.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetDeletionProtection#execute()} method to invoke the remote - * operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. * @return the request */ - public SetDeletionProtection setDeletionProtection(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException { - SetDeletionProtection result = new SetDeletionProtection(project, zone, resource); + 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 SetDeletionProtection extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -81643,27 +80531,22 @@ public class SetDeletionProtection extends ComputeRequest {@link SetDeletionProtection#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 List#execute()} method to invoke the remote operation.

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. * @since 1.13 */ - protected SetDeletionProtection(java.lang.String project, java.lang.String zone, java.lang.String resource) { - super(Compute.this, "POST", REST_PATH, null, 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.InstanceList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -81676,72 +80559,76 @@ protected SetDeletionProtection(java.lang.String project, java.lang.String zone, "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 SetDeletionProtection set$Xgafv(java.lang.String $Xgafv) { - return (SetDeletionProtection) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetDeletionProtection setAccessToken(java.lang.String accessToken) { - return (SetDeletionProtection) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetDeletionProtection setAlt(java.lang.String alt) { - return (SetDeletionProtection) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public SetDeletionProtection setCallback(java.lang.String callback) { - return (SetDeletionProtection) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public SetDeletionProtection setFields(java.lang.String fields) { - return (SetDeletionProtection) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public SetDeletionProtection setKey(java.lang.String key) { - return (SetDeletionProtection) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public SetDeletionProtection setOauthToken(java.lang.String oauthToken) { - return (SetDeletionProtection) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public SetDeletionProtection setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetDeletionProtection) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public SetDeletionProtection setQuotaUser(java.lang.String quotaUser) { - return (SetDeletionProtection) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public SetDeletionProtection setUploadType(java.lang.String uploadType) { - return (SetDeletionProtection) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public SetDeletionProtection setUploadProtocol(java.lang.String uploadProtocol) { - return (SetDeletionProtection) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public SetDeletionProtection setUserIp(java.lang.String userIp) { - return (SetDeletionProtection) 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. */ @@ -81755,7 +80642,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetDeletionProtection 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 " + @@ -81776,7 +80663,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public SetDeletionProtection 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 " + @@ -81786,150 +80673,317 @@ public SetDeletionProtection 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. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetDeletionProtection setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + @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; } - /** Whether the resource should be protected against deletion. */ + /** + * 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.Boolean deletionProtection; + private java.lang.Long maxResults; - /** Whether the resource should be protected against deletion. [default: true] + /** 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.Boolean getDeletionProtection() { - return deletionProtection; + public java.lang.Long getMaxResults() { + return maxResults; } - /** Whether the resource should be protected against deletion. */ - public SetDeletionProtection setDeletionProtection(java.lang.Boolean deletionProtection) { - this.deletionProtection = deletionProtection; + /** + * 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; } /** - * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. - * - *

- * Boolean properties can have four possible values: - * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} - * or {@link Boolean#FALSE}. - *

+ * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. * - *

- * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} - * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and - * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. - *

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

- * Whether the resource should be protected against deletion. - *

+ * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public boolean isDeletionProtection() { - if (deletionProtection == null || deletionProtection == com.google.api.client.util.Data.NULL_BOOLEAN) { - return true; - } - return deletionProtection; + @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; } /** - * An optional request ID to identify requests. Specify a unique 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. */ - @com.google.api.client.util.Key - private java.lang.String requestId; + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + 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. + /** + * 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; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** + * 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 getRequestId() { - return requestId; + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @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. * - * 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 SetDeletionProtection setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + /** View of the instance. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** View of the instance. + */ + public java.lang.String getView() { + return view; + } + + /** View of the instance. */ + public List setView(java.lang.String view) { + this.view = view; return this; } @Override - public SetDeletionProtection set(String parameterName, Object value) { - return (SetDeletionProtection) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Sets the auto-delete flag for a disk attached to an instance. + * Retrieves a list of resources that refer to the VM instance specified in the request. For + * example, if the VM instance is part of a managed or unmanaged instance group, the referrers list + * includes the instance group. For more information, readViewing referrers to VM instances. * - * Create a request for the method "instances.setDiskAutoDelete". + * Create a request for the method "instances.listReferrers". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetDiskAutoDelete#execute()} method to invoke the remote operation. + * parameters, call the {@link ListReferrers#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 autoDelete Whether to auto-delete the disk when the instance is deleted. - * @param deviceName The device name of the disk to modify. Make a get() request - on the instance to view currently - * attached disks and device names. + * @param instance Name of the target instance scoping this request, or '-' if the + request should span over all + * instances in the container. * @return the request */ - public SetDiskAutoDelete setDiskAutoDelete(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.Boolean autoDelete, java.lang.String deviceName) throws java.io.IOException { - SetDiskAutoDelete result = new SetDiskAutoDelete(project, zone, instance, autoDelete, deviceName); + public ListReferrers listReferrers(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + ListReferrers result = new ListReferrers(project, zone, instance); initialize(result); return result; } - public class SetDiskAutoDelete extends ComputeRequest { + public class ListReferrers extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/referrers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -81938,33 +80992,30 @@ public class SetDiskAutoDelete extends ComputeRequest {@link SetDiskAutoDelete#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

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

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param instance The instance name for this request. - * @param autoDelete Whether to auto-delete the disk when the instance is deleted. - * @param deviceName The device name of the disk to modify. Make a get() request - on the instance to view currently - * attached disks and device names. + * @param instance Name of the target instance scoping this request, or '-' if the + request should span over all + * instances in the container. * @since 1.13 */ - protected SetDiskAutoDelete(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.Boolean autoDelete, java.lang.String deviceName) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected ListReferrers(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.InstanceListReferrers.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -81981,75 +81032,78 @@ protected SetDiskAutoDelete(java.lang.String project, java.lang.String zone, jav 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.autoDelete = com.google.api.client.util.Preconditions.checkNotNull(autoDelete, "Required parameter autoDelete must be specified."); - this.deviceName = com.google.api.client.util.Preconditions.checkNotNull(deviceName, "Required parameter deviceName must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DEVICE_NAME_PATTERN.matcher(deviceName).matches(), - "Parameter deviceName must conform to the pattern " + - "\\w[\\w.-]{0,254}"); + "-|[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetDiskAutoDelete set$Xgafv(java.lang.String $Xgafv) { - return (SetDiskAutoDelete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetDiskAutoDelete setAccessToken(java.lang.String accessToken) { - return (SetDiskAutoDelete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetDiskAutoDelete setAlt(java.lang.String alt) { - return (SetDiskAutoDelete) super.setAlt(alt); + public ListReferrers set$Xgafv(java.lang.String $Xgafv) { + return (ListReferrers) super.set$Xgafv($Xgafv); } @Override - public SetDiskAutoDelete setCallback(java.lang.String callback) { - return (SetDiskAutoDelete) super.setCallback(callback); + public ListReferrers setAccessToken(java.lang.String accessToken) { + return (ListReferrers) super.setAccessToken(accessToken); } @Override - public SetDiskAutoDelete setFields(java.lang.String fields) { - return (SetDiskAutoDelete) super.setFields(fields); + public ListReferrers setAlt(java.lang.String alt) { + return (ListReferrers) super.setAlt(alt); } @Override - public SetDiskAutoDelete setKey(java.lang.String key) { - return (SetDiskAutoDelete) super.setKey(key); + public ListReferrers setCallback(java.lang.String callback) { + return (ListReferrers) super.setCallback(callback); } @Override - public SetDiskAutoDelete setOauthToken(java.lang.String oauthToken) { - return (SetDiskAutoDelete) super.setOauthToken(oauthToken); + public ListReferrers setFields(java.lang.String fields) { + return (ListReferrers) super.setFields(fields); } @Override - public SetDiskAutoDelete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetDiskAutoDelete) super.setPrettyPrint(prettyPrint); + public ListReferrers setKey(java.lang.String key) { + return (ListReferrers) super.setKey(key); } @Override - public SetDiskAutoDelete setQuotaUser(java.lang.String quotaUser) { - return (SetDiskAutoDelete) super.setQuotaUser(quotaUser); + public ListReferrers setOauthToken(java.lang.String oauthToken) { + return (ListReferrers) super.setOauthToken(oauthToken); } @Override - public SetDiskAutoDelete setUploadType(java.lang.String uploadType) { - return (SetDiskAutoDelete) super.setUploadType(uploadType); + public ListReferrers setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListReferrers) super.setPrettyPrint(prettyPrint); } @Override - public SetDiskAutoDelete setUploadProtocol(java.lang.String uploadProtocol) { - return (SetDiskAutoDelete) super.setUploadProtocol(uploadProtocol); + public ListReferrers setQuotaUser(java.lang.String quotaUser) { + return (ListReferrers) super.setQuotaUser(quotaUser); } @Override - public SetDiskAutoDelete setUserIp(java.lang.String userIp) { - return (SetDiskAutoDelete) super.setUserIp(userIp); + public ListReferrers setUploadType(java.lang.String uploadType) { + return (ListReferrers) super.setUploadType(uploadType); + } + + @Override + public ListReferrers setUploadProtocol(java.lang.String uploadProtocol) { + return (ListReferrers) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListReferrers setUserIp(java.lang.String userIp) { + return (ListReferrers) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -82063,7 +81117,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetDiskAutoDelete setProject(java.lang.String project) { + public ListReferrers setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -82084,7 +81138,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public SetDiskAutoDelete setZone(java.lang.String zone) { + public ListReferrers 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 " + @@ -82094,349 +81148,326 @@ public SetDiskAutoDelete setZone(java.lang.String zone) { return this; } - /** The instance name for this request. */ + /** + * Name of the target instance scoping this request, or '-' if the request should span over + * all instances in the container. + */ @com.google.api.client.util.Key private java.lang.String instance; - /** The instance name for this request. + /** Name of the target instance scoping this request, or '-' if the request should span over all + instances in the container. */ public java.lang.String getInstance() { return instance; } - /** The instance name for this request. */ - public SetDiskAutoDelete setInstance(java.lang.String instance) { + /** + * Name of the target instance scoping this request, or '-' if the request should span over + * all instances in the container. + */ + public ListReferrers 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}"); + "-|[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.instance = instance; return this; } - /** Whether to auto-delete the disk when the instance is deleted. */ + /** + * 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.Boolean autoDelete; + private java.lang.String filter; - /** Whether to auto-delete the disk when the instance is deleted. - */ - public java.lang.Boolean getAutoDelete() { - return autoDelete; - } + /** 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. - /** Whether to auto-delete the disk when the instance is deleted. */ - public SetDiskAutoDelete setAutoDelete(java.lang.Boolean autoDelete) { - this.autoDelete = autoDelete; + 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 ListReferrers setFilter(java.lang.String filter) { + this.filter = filter; return this; } /** - * The device name of the disk to modify. Make a get() request on the instance to view - * currently attached disks and device names. + * 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 deviceName; + private java.lang.Long maxResults; - /** The device name of the disk to modify. Make a get() request on the instance to view currently - attached disks and device names. + /** 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 getDeviceName() { - return deviceName; + public java.lang.Long getMaxResults() { + return maxResults; } /** - * The device name of the disk to modify. Make a get() request on the instance to view - * currently attached disks and device names. + * 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 SetDiskAutoDelete setDeviceName(java.lang.String deviceName) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(DEVICE_NAME_PATTERN.matcher(deviceName).matches(), - "Parameter deviceName must conform to the pattern " + - "\\w[\\w.-]{0,254}"); - } - this.deviceName = deviceName; + public ListReferrers setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; 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. + * 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 SetDiskAutoDelete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public ListReferrers setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; return this; } - @Override - public SetDiskAutoDelete set(String parameterName, Object value) { - return (SetDiskAutoDelete) super.set(parameterName, value); - } - } - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "instances.setIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param 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.ZoneSetPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - * Create a request for the method "instances.setIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param 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.ZoneSetPolicyRequest} - * @since 1.13 + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. */ - protected SetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } - - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } - - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } - - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } - - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String pageToken; - /** Project ID for this request. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; + public java.lang.String getPageToken() { + return pageToken; } - /** 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. + /** + * 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 getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public SetIamPolicy setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.zone = zone; + public ListReferrers setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } - /** Name or id of the resource for this request. */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.Boolean returnPartialSuccess; - /** Name or id of the resource for this request. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getResource() { - return resource; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; + /** + * 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 ListReferrers setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public ListReferrers set(String parameterName, Object value) { + return (ListReferrers) super.set(parameterName, value); } } /** - * Sets labels on an instance. To learn more about labels, read theLabeling Resources - * documentation. + * Lists all VM extensions states for a specific instance. This is a read-only API. * - * Create a request for the method "instances.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation. + * 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.InstancesSetLabelsRequest} + * @param zone Required. Name of the zone for this request. + * @param instance Name of the target instance scoping this request. * @return the request */ - public SetLabels setLabels(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(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 SetLabels extends ComputeRequest { + public class ListVmExtensionStates extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setLabels"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/vmExtensionStates"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -82448,25 +81479,23 @@ public class SetLabels extends ComputeRequest - * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

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

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

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.model.InstancesSetLabelsRequest} + * @param zone Required. Name of the zone for this request. + * @param instance Name of the target instance scoping this request. * @since 1.13 */ - protected SetLabels(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetLabelsRequest 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(), @@ -82488,63 +81517,73 @@ protected SetLabels(java.lang.String project, java.lang.String zone, java.lang.S } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public ListVmExtensionStates set$Xgafv(java.lang.String $Xgafv) { + return (ListVmExtensionStates) super.set$Xgafv($Xgafv); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public ListVmExtensionStates setAccessToken(java.lang.String accessToken) { + return (ListVmExtensionStates) super.setAccessToken(accessToken); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public ListVmExtensionStates setAlt(java.lang.String alt) { + return (ListVmExtensionStates) super.setAlt(alt); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public ListVmExtensionStates setCallback(java.lang.String callback) { + return (ListVmExtensionStates) super.setCallback(callback); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public ListVmExtensionStates setFields(java.lang.String fields) { + return (ListVmExtensionStates) super.setFields(fields); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public ListVmExtensionStates setKey(java.lang.String key) { + return (ListVmExtensionStates) super.setKey(key); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public ListVmExtensionStates setOauthToken(java.lang.String oauthToken) { + return (ListVmExtensionStates) super.setOauthToken(oauthToken); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public ListVmExtensionStates setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListVmExtensionStates) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public ListVmExtensionStates setQuotaUser(java.lang.String quotaUser) { + return (ListVmExtensionStates) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) 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. */ @@ -82558,7 +81597,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels 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 " + @@ -82568,18 +81607,18 @@ public SetLabels 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 SetLabels 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 " + @@ -82589,18 +81628,18 @@ public SetLabels 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 SetLabels 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 " + @@ -82611,83 +81650,298 @@ public SetLabels 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 SetLabels 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 SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public ListVmExtensionStates set(String parameterName, Object value) { + return (ListVmExtensionStates) super.set(parameterName, value); } } /** - * Changes the number and/or type of accelerator for a stopped instance to the values specified in - * the request. + * Patches partner metadata of the specified instance. * - * Create a request for the method "instances.setMachineResources". + * 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 SetMachineResources#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.InstancesSetMachineResourcesRequest} + * @param content the {@link com.google.api.services.compute.model.PartnerMetadata} * @return the request */ - public SetMachineResources setMachineResources(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetMachineResourcesRequest content) throws java.io.IOException { - SetMachineResources result = new SetMachineResources(project, zone, instance, content); + 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 SetMachineResources extends ComputeRequest { + public class PatchPartnerMetadata extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setMachineResources"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/patchPartnerMetadata"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -82699,24 +81953,23 @@ public class SetMachineResources extends ComputeRequest {@link SetMachineResources#initialize(com.google.api.client.googleapis.services. - * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * parameters, call the {@link PatchPartnerMetadata#execute()} method to invoke the remote + * operation.

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. * @param instance Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.model.InstancesSetMachineResourcesRequest} + * @param content the {@link com.google.api.services.compute.model.PartnerMetadata} * @since 1.13 */ - protected SetMachineResources(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetMachineResourcesRequest content) { + 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()) { @@ -82739,63 +81992,63 @@ protected SetMachineResources(java.lang.String project, java.lang.String zone, j } @Override - public SetMachineResources set$Xgafv(java.lang.String $Xgafv) { - return (SetMachineResources) super.set$Xgafv($Xgafv); + public PatchPartnerMetadata set$Xgafv(java.lang.String $Xgafv) { + return (PatchPartnerMetadata) super.set$Xgafv($Xgafv); } @Override - public SetMachineResources setAccessToken(java.lang.String accessToken) { - return (SetMachineResources) super.setAccessToken(accessToken); + public PatchPartnerMetadata setAccessToken(java.lang.String accessToken) { + return (PatchPartnerMetadata) super.setAccessToken(accessToken); } @Override - public SetMachineResources setAlt(java.lang.String alt) { - return (SetMachineResources) super.setAlt(alt); + public PatchPartnerMetadata setAlt(java.lang.String alt) { + return (PatchPartnerMetadata) super.setAlt(alt); } @Override - public SetMachineResources setCallback(java.lang.String callback) { - return (SetMachineResources) super.setCallback(callback); + public PatchPartnerMetadata setCallback(java.lang.String callback) { + return (PatchPartnerMetadata) super.setCallback(callback); } @Override - public SetMachineResources setFields(java.lang.String fields) { - return (SetMachineResources) super.setFields(fields); + public PatchPartnerMetadata setFields(java.lang.String fields) { + return (PatchPartnerMetadata) super.setFields(fields); } @Override - public SetMachineResources setKey(java.lang.String key) { - return (SetMachineResources) super.setKey(key); + public PatchPartnerMetadata setKey(java.lang.String key) { + return (PatchPartnerMetadata) super.setKey(key); } @Override - public SetMachineResources setOauthToken(java.lang.String oauthToken) { - return (SetMachineResources) super.setOauthToken(oauthToken); + public PatchPartnerMetadata setOauthToken(java.lang.String oauthToken) { + return (PatchPartnerMetadata) super.setOauthToken(oauthToken); } @Override - public SetMachineResources setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetMachineResources) super.setPrettyPrint(prettyPrint); + public PatchPartnerMetadata setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchPartnerMetadata) super.setPrettyPrint(prettyPrint); } @Override - public SetMachineResources setQuotaUser(java.lang.String quotaUser) { - return (SetMachineResources) super.setQuotaUser(quotaUser); + public PatchPartnerMetadata setQuotaUser(java.lang.String quotaUser) { + return (PatchPartnerMetadata) super.setQuotaUser(quotaUser); } @Override - public SetMachineResources setUploadType(java.lang.String uploadType) { - return (SetMachineResources) super.setUploadType(uploadType); + public PatchPartnerMetadata setUploadType(java.lang.String uploadType) { + return (PatchPartnerMetadata) super.setUploadType(uploadType); } @Override - public SetMachineResources setUploadProtocol(java.lang.String uploadProtocol) { - return (SetMachineResources) super.setUploadProtocol(uploadProtocol); + public PatchPartnerMetadata setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchPartnerMetadata) super.setUploadProtocol(uploadProtocol); } @Override - public SetMachineResources setUserIp(java.lang.String userIp) { - return (SetMachineResources) super.setUserIp(userIp); + public PatchPartnerMetadata setUserIp(java.lang.String userIp) { + return (PatchPartnerMetadata) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -82809,7 +82062,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetMachineResources 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 " + @@ -82830,7 +82083,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public SetMachineResources 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 " + @@ -82851,7 +82104,7 @@ public java.lang.String getInstance() { } /** Name of the instance scoping this request. */ - public SetMachineResources 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 " + @@ -82905,39 +82158,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 SetMachineResources setRequestId(java.lang.String requestId) { + public PatchPartnerMetadata setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetMachineResources set(String parameterName, Object value) { - return (SetMachineResources) super.set(parameterName, value); + public PatchPartnerMetadata set(String parameterName, Object value) { + return (PatchPartnerMetadata) super.set(parameterName, value); } } /** - * Changes the machine type for a stopped instance to the machine type specified in the request. + * Perform a manual maintenance on the instance. * - * Create a request for the method "instances.setMachineType". + * 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 SetMachineType#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 Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.model.InstancesSetMachineTypeRequest} * @return the request */ - public SetMachineType setMachineType(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetMachineTypeRequest content) throws java.io.IOException { - SetMachineType result = new SetMachineType(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 SetMachineType extends ComputeRequest { + public class PerformMaintenance extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setMachineType"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/performMaintenance"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -82949,24 +82201,23 @@ public class SetMachineType extends ComputeRequest {@link SetMachineType#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 PerformMaintenance#execute()} method to invoke the remote + * operation.

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. * @param instance Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.model.InstancesSetMachineTypeRequest} * @since 1.13 */ - protected SetMachineType(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetMachineTypeRequest 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(), @@ -82988,63 +82239,63 @@ protected SetMachineType(java.lang.String project, java.lang.String zone, java.l } @Override - public SetMachineType set$Xgafv(java.lang.String $Xgafv) { - return (SetMachineType) super.set$Xgafv($Xgafv); + public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { + return (PerformMaintenance) super.set$Xgafv($Xgafv); } @Override - public SetMachineType setAccessToken(java.lang.String accessToken) { - return (SetMachineType) super.setAccessToken(accessToken); + public PerformMaintenance setAccessToken(java.lang.String accessToken) { + return (PerformMaintenance) super.setAccessToken(accessToken); } @Override - public SetMachineType setAlt(java.lang.String alt) { - return (SetMachineType) super.setAlt(alt); + public PerformMaintenance setAlt(java.lang.String alt) { + return (PerformMaintenance) super.setAlt(alt); } @Override - public SetMachineType setCallback(java.lang.String callback) { - return (SetMachineType) super.setCallback(callback); + public PerformMaintenance setCallback(java.lang.String callback) { + return (PerformMaintenance) super.setCallback(callback); } @Override - public SetMachineType setFields(java.lang.String fields) { - return (SetMachineType) super.setFields(fields); + public PerformMaintenance setFields(java.lang.String fields) { + return (PerformMaintenance) super.setFields(fields); } @Override - public SetMachineType setKey(java.lang.String key) { - return (SetMachineType) super.setKey(key); + public PerformMaintenance setKey(java.lang.String key) { + return (PerformMaintenance) super.setKey(key); } @Override - public SetMachineType setOauthToken(java.lang.String oauthToken) { - return (SetMachineType) super.setOauthToken(oauthToken); + public PerformMaintenance setOauthToken(java.lang.String oauthToken) { + return (PerformMaintenance) super.setOauthToken(oauthToken); } @Override - public SetMachineType setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetMachineType) super.setPrettyPrint(prettyPrint); + public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PerformMaintenance) super.setPrettyPrint(prettyPrint); } @Override - public SetMachineType setQuotaUser(java.lang.String quotaUser) { - return (SetMachineType) super.setQuotaUser(quotaUser); + public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { + return (PerformMaintenance) super.setQuotaUser(quotaUser); } @Override - public SetMachineType setUploadType(java.lang.String uploadType) { - return (SetMachineType) super.setUploadType(uploadType); + public PerformMaintenance setUploadType(java.lang.String uploadType) { + return (PerformMaintenance) super.setUploadType(uploadType); } @Override - public SetMachineType setUploadProtocol(java.lang.String uploadProtocol) { - return (SetMachineType) super.setUploadProtocol(uploadProtocol); + public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { + return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); } @Override - public SetMachineType setUserIp(java.lang.String userIp) { - return (SetMachineType) super.setUserIp(userIp); + public PerformMaintenance setUserIp(java.lang.String userIp) { + return (PerformMaintenance) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -83058,7 +82309,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetMachineType 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 " + @@ -83079,7 +82330,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public SetMachineType 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 " + @@ -83100,7 +82351,7 @@ public java.lang.String getInstance() { } /** Name of the instance scoping this request. */ - public SetMachineType setInstance(java.lang.String instance) { + 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 " + @@ -83154,39 +82405,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 SetMachineType setRequestId(java.lang.String requestId) { + public PerformMaintenance setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetMachineType set(String parameterName, Object value) { - return (SetMachineType) super.set(parameterName, value); + public PerformMaintenance set(String parameterName, Object value) { + return (PerformMaintenance) super.set(parameterName, value); } } /** - * Sets metadata for the specified instance to the data included in the request. + * Removes resource policies from an instance. * - * Create a request for the method "instances.setMetadata". + * 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 SetMetadata#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.Metadata} + * @param instance The instance name for this request. + * @param content the {@link com.google.api.services.compute.model.InstancesRemoveResourcePoliciesRequest} * @return the request */ - public SetMetadata setMetadata(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Metadata content) throws java.io.IOException { - SetMetadata result = new SetMetadata(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 SetMetadata extends ComputeRequest { + public class RemoveResourcePolicies extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setMetadata"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -83198,23 +82450,23 @@ public class SetMetadata extends ComputeRequest - * {@link - * SetMetadata#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

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

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

* * @param project Project ID for this request. * @param 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.Metadata} + * @param instance The instance name for this request. + * @param content the {@link com.google.api.services.compute.model.InstancesRemoveResourcePoliciesRequest} * @since 1.13 */ - protected SetMetadata(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Metadata 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()) { @@ -83237,63 +82489,63 @@ protected SetMetadata(java.lang.String project, java.lang.String zone, java.lang } @Override - public SetMetadata set$Xgafv(java.lang.String $Xgafv) { - return (SetMetadata) super.set$Xgafv($Xgafv); + public RemoveResourcePolicies set$Xgafv(java.lang.String $Xgafv) { + return (RemoveResourcePolicies) super.set$Xgafv($Xgafv); } @Override - public SetMetadata setAccessToken(java.lang.String accessToken) { - return (SetMetadata) super.setAccessToken(accessToken); + public RemoveResourcePolicies setAccessToken(java.lang.String accessToken) { + return (RemoveResourcePolicies) super.setAccessToken(accessToken); } @Override - public SetMetadata setAlt(java.lang.String alt) { - return (SetMetadata) super.setAlt(alt); + public RemoveResourcePolicies setAlt(java.lang.String alt) { + return (RemoveResourcePolicies) super.setAlt(alt); } @Override - public SetMetadata setCallback(java.lang.String callback) { - return (SetMetadata) super.setCallback(callback); + public RemoveResourcePolicies setCallback(java.lang.String callback) { + return (RemoveResourcePolicies) super.setCallback(callback); } @Override - public SetMetadata setFields(java.lang.String fields) { - return (SetMetadata) super.setFields(fields); + public RemoveResourcePolicies setFields(java.lang.String fields) { + return (RemoveResourcePolicies) super.setFields(fields); } @Override - public SetMetadata setKey(java.lang.String key) { - return (SetMetadata) super.setKey(key); + public RemoveResourcePolicies setKey(java.lang.String key) { + return (RemoveResourcePolicies) super.setKey(key); } @Override - public SetMetadata setOauthToken(java.lang.String oauthToken) { - return (SetMetadata) super.setOauthToken(oauthToken); + public RemoveResourcePolicies setOauthToken(java.lang.String oauthToken) { + return (RemoveResourcePolicies) super.setOauthToken(oauthToken); } @Override - public SetMetadata setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetMetadata) super.setPrettyPrint(prettyPrint); + public RemoveResourcePolicies setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveResourcePolicies) super.setPrettyPrint(prettyPrint); } @Override - public SetMetadata setQuotaUser(java.lang.String quotaUser) { - return (SetMetadata) super.setQuotaUser(quotaUser); + public RemoveResourcePolicies setQuotaUser(java.lang.String quotaUser) { + return (RemoveResourcePolicies) super.setQuotaUser(quotaUser); } @Override - public SetMetadata setUploadType(java.lang.String uploadType) { - return (SetMetadata) super.setUploadType(uploadType); + public RemoveResourcePolicies setUploadType(java.lang.String uploadType) { + return (RemoveResourcePolicies) super.setUploadType(uploadType); } @Override - public SetMetadata setUploadProtocol(java.lang.String uploadProtocol) { - return (SetMetadata) super.setUploadProtocol(uploadProtocol); + public RemoveResourcePolicies setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveResourcePolicies) super.setUploadProtocol(uploadProtocol); } @Override - public SetMetadata setUserIp(java.lang.String userIp) { - return (SetMetadata) super.setUserIp(userIp); + public RemoveResourcePolicies setUserIp(java.lang.String userIp) { + return (RemoveResourcePolicies) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -83307,7 +82559,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetMetadata 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 " + @@ -83328,7 +82580,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public SetMetadata 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 " + @@ -83338,18 +82590,18 @@ public SetMetadata 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 SetMetadata 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 " + @@ -83403,40 +82655,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 SetMetadata setRequestId(java.lang.String requestId) { + public RemoveResourcePolicies setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetMetadata set(String parameterName, Object value) { - return (SetMetadata) super.set(parameterName, value); + public RemoveResourcePolicies set(String parameterName, Object value) { + return (RemoveResourcePolicies) super.set(parameterName, value); } } /** - * Changes the minimum CPU platform that this instance should use. This method can only be called on - * a stopped instance. For more information, readSpecifying a Minimum CPU Platform. + * Mark the host as faulty and try to restart the instance on a new host. * - * Create a request for the method "instances.setMinCpuPlatform". + * 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 SetMinCpuPlatform#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.InstancesSetMinCpuPlatformRequest} + * @param content the {@link com.google.api.services.compute.model.InstancesReportHostAsFaultyRequest} * @return the request */ - public SetMinCpuPlatform setMinCpuPlatform(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetMinCpuPlatformRequest content) throws java.io.IOException { - SetMinCpuPlatform result = new SetMinCpuPlatform(project, zone, instance, content); + 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 SetMinCpuPlatform extends ComputeRequest { + public class ReportHostAsFaulty extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/reportHostAsFaulty"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -83448,24 +82699,23 @@ public class SetMinCpuPlatform extends ComputeRequest {@link SetMinCpuPlatform#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

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

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. * @param instance Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.model.InstancesSetMinCpuPlatformRequest} + * @param content the {@link com.google.api.services.compute.model.InstancesReportHostAsFaultyRequest} * @since 1.13 */ - protected SetMinCpuPlatform(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetMinCpuPlatformRequest content) { + 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()) { @@ -83488,63 +82738,63 @@ protected SetMinCpuPlatform(java.lang.String project, java.lang.String zone, jav } @Override - public SetMinCpuPlatform set$Xgafv(java.lang.String $Xgafv) { - return (SetMinCpuPlatform) super.set$Xgafv($Xgafv); + public ReportHostAsFaulty set$Xgafv(java.lang.String $Xgafv) { + return (ReportHostAsFaulty) super.set$Xgafv($Xgafv); } @Override - public SetMinCpuPlatform setAccessToken(java.lang.String accessToken) { - return (SetMinCpuPlatform) super.setAccessToken(accessToken); + public ReportHostAsFaulty setAccessToken(java.lang.String accessToken) { + return (ReportHostAsFaulty) super.setAccessToken(accessToken); } @Override - public SetMinCpuPlatform setAlt(java.lang.String alt) { - return (SetMinCpuPlatform) super.setAlt(alt); + public ReportHostAsFaulty setAlt(java.lang.String alt) { + return (ReportHostAsFaulty) super.setAlt(alt); } @Override - public SetMinCpuPlatform setCallback(java.lang.String callback) { - return (SetMinCpuPlatform) super.setCallback(callback); + public ReportHostAsFaulty setCallback(java.lang.String callback) { + return (ReportHostAsFaulty) super.setCallback(callback); } @Override - public SetMinCpuPlatform setFields(java.lang.String fields) { - return (SetMinCpuPlatform) super.setFields(fields); + public ReportHostAsFaulty setFields(java.lang.String fields) { + return (ReportHostAsFaulty) super.setFields(fields); } @Override - public SetMinCpuPlatform setKey(java.lang.String key) { - return (SetMinCpuPlatform) super.setKey(key); + public ReportHostAsFaulty setKey(java.lang.String key) { + return (ReportHostAsFaulty) super.setKey(key); } @Override - public SetMinCpuPlatform setOauthToken(java.lang.String oauthToken) { - return (SetMinCpuPlatform) super.setOauthToken(oauthToken); + public ReportHostAsFaulty setOauthToken(java.lang.String oauthToken) { + return (ReportHostAsFaulty) super.setOauthToken(oauthToken); } @Override - public SetMinCpuPlatform setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetMinCpuPlatform) super.setPrettyPrint(prettyPrint); + public ReportHostAsFaulty setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ReportHostAsFaulty) super.setPrettyPrint(prettyPrint); } @Override - public SetMinCpuPlatform setQuotaUser(java.lang.String quotaUser) { - return (SetMinCpuPlatform) super.setQuotaUser(quotaUser); + public ReportHostAsFaulty setQuotaUser(java.lang.String quotaUser) { + return (ReportHostAsFaulty) super.setQuotaUser(quotaUser); } @Override - public SetMinCpuPlatform setUploadType(java.lang.String uploadType) { - return (SetMinCpuPlatform) super.setUploadType(uploadType); + public ReportHostAsFaulty setUploadType(java.lang.String uploadType) { + return (ReportHostAsFaulty) super.setUploadType(uploadType); } @Override - public SetMinCpuPlatform setUploadProtocol(java.lang.String uploadProtocol) { - return (SetMinCpuPlatform) super.setUploadProtocol(uploadProtocol); + public ReportHostAsFaulty setUploadProtocol(java.lang.String uploadProtocol) { + return (ReportHostAsFaulty) super.setUploadProtocol(uploadProtocol); } @Override - public SetMinCpuPlatform setUserIp(java.lang.String userIp) { - return (SetMinCpuPlatform) super.setUserIp(userIp); + public ReportHostAsFaulty setUserIp(java.lang.String userIp) { + return (ReportHostAsFaulty) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -83558,7 +82808,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetMinCpuPlatform setProject(java.lang.String project) { + 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 " + @@ -83579,7 +82829,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public SetMinCpuPlatform setZone(java.lang.String zone) { + 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 " + @@ -83600,7 +82850,7 @@ public java.lang.String getInstance() { } /** Name of the instance scoping this request. */ - public SetMinCpuPlatform setInstance(java.lang.String instance) { + 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 " + @@ -83654,39 +82904,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 SetMinCpuPlatform setRequestId(java.lang.String requestId) { + public ReportHostAsFaulty setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetMinCpuPlatform set(String parameterName, Object value) { - return (SetMinCpuPlatform) super.set(parameterName, value); + public ReportHostAsFaulty set(String parameterName, Object value) { + return (ReportHostAsFaulty) super.set(parameterName, value); } } /** - * Sets name of an instance. + * 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.setName". + * 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 SetName#execute()} method to invoke the remote operation. + * 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 The instance name for this request. - * @param content the {@link com.google.api.services.compute.model.InstancesSetNameRequest} + * @param instance Name of the instance scoping this request. * @return the request */ - public SetName setName(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetNameRequest content) throws java.io.IOException { - SetName result = new SetName(project, zone, instance, content); + 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 SetName extends ComputeRequest { + public class Reset extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setName"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/reset"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -83698,24 +82948,23 @@ public class SetName extends ComputeRequest - * {@link - * SetName#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * parameters, call the {@link Reset#execute()} method to invoke the remote operation.

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param instance The instance name for this request. - * @param content the {@link com.google.api.services.compute.model.InstancesSetNameRequest} + * @param instance Name of the instance scoping this request. * @since 1.13 */ - protected SetName(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetNameRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + 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(), @@ -83737,63 +82986,63 @@ protected SetName(java.lang.String project, java.lang.String zone, java.lang.Str } @Override - public SetName set$Xgafv(java.lang.String $Xgafv) { - return (SetName) super.set$Xgafv($Xgafv); + public Reset set$Xgafv(java.lang.String $Xgafv) { + return (Reset) super.set$Xgafv($Xgafv); } @Override - public SetName setAccessToken(java.lang.String accessToken) { - return (SetName) super.setAccessToken(accessToken); + public Reset setAccessToken(java.lang.String accessToken) { + return (Reset) super.setAccessToken(accessToken); } @Override - public SetName setAlt(java.lang.String alt) { - return (SetName) super.setAlt(alt); + public Reset setAlt(java.lang.String alt) { + return (Reset) super.setAlt(alt); } @Override - public SetName setCallback(java.lang.String callback) { - return (SetName) super.setCallback(callback); + public Reset setCallback(java.lang.String callback) { + return (Reset) super.setCallback(callback); } @Override - public SetName setFields(java.lang.String fields) { - return (SetName) super.setFields(fields); + public Reset setFields(java.lang.String fields) { + return (Reset) super.setFields(fields); } @Override - public SetName setKey(java.lang.String key) { - return (SetName) super.setKey(key); + public Reset setKey(java.lang.String key) { + return (Reset) super.setKey(key); } @Override - public SetName setOauthToken(java.lang.String oauthToken) { - return (SetName) super.setOauthToken(oauthToken); + public Reset setOauthToken(java.lang.String oauthToken) { + return (Reset) super.setOauthToken(oauthToken); } @Override - public SetName setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetName) super.setPrettyPrint(prettyPrint); + public Reset setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Reset) super.setPrettyPrint(prettyPrint); } @Override - public SetName setQuotaUser(java.lang.String quotaUser) { - return (SetName) super.setQuotaUser(quotaUser); + public Reset setQuotaUser(java.lang.String quotaUser) { + return (Reset) super.setQuotaUser(quotaUser); } @Override - public SetName setUploadType(java.lang.String uploadType) { - return (SetName) super.setUploadType(uploadType); + public Reset setUploadType(java.lang.String uploadType) { + return (Reset) super.setUploadType(uploadType); } @Override - public SetName setUploadProtocol(java.lang.String uploadProtocol) { - return (SetName) super.setUploadProtocol(uploadProtocol); + public Reset setUploadProtocol(java.lang.String uploadProtocol) { + return (Reset) super.setUploadProtocol(uploadProtocol); } @Override - public SetName setUserIp(java.lang.String userIp) { - return (SetName) super.setUserIp(userIp); + public Reset setUserIp(java.lang.String userIp) { + return (Reset) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -83807,7 +83056,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetName setProject(java.lang.String project) { + public Reset setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -83828,7 +83077,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public SetName setZone(java.lang.String zone) { + public Reset 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 " + @@ -83838,18 +83087,18 @@ public SetName 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 SetName setInstance(java.lang.String instance) { + /** Name of the instance scoping this request. */ + public Reset 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 " + @@ -83903,42 +83152,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 SetName setRequestId(java.lang.String requestId) { + public Reset setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetName set(String parameterName, Object value) { - return (SetName) super.set(parameterName, value); + public Reset set(String parameterName, Object value) { + return (Reset) super.set(parameterName, value); } } /** - * Sets an instance's scheduling options. You can only call this method on astopped instance, that - * is, a VM instance that is in a `TERMINATED` state. SeeInstance Life Cycle for more information on - * the possible instance states. For more information about setting scheduling options for a VM, - * seeSet VM host maintenance policy. + * Resumes an instance that was suspended using theinstances().suspend method. * - * Create a request for the method "instances.setScheduling". + * Create a request for the method "instances.resume". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetScheduling#execute()} method to invoke the remote operation. + * parameters, call the {@link Resume#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 Instance name for this request. - * @param content the {@link com.google.api.services.compute.model.Scheduling} + * @param instance Name of the instance resource to resume. + * @param content the {@link com.google.api.services.compute.model.InstancesResumeRequest} * @return the request */ - public SetScheduling setScheduling(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Scheduling content) throws java.io.IOException { - SetScheduling result = new SetScheduling(project, zone, instance, content); + public Resume resume(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesResumeRequest content) throws java.io.IOException { + Resume result = new Resume(project, zone, instance, content); initialize(result); return result; } - public class SetScheduling extends ComputeRequest { + public class Resume extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setScheduling"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/resume"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -83950,26 +83196,22 @@ public class SetScheduling extends ComputeRequest - * {@link SetScheduling#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} must be called to initialize this instance immediately after invoking the constructor. - *

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

{@link + * Resume#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 Instance name for this request. - * @param content the {@link com.google.api.services.compute.model.Scheduling} + * @param instance Name of the instance resource to resume. + * @param content the {@link com.google.api.services.compute.model.InstancesResumeRequest} * @since 1.13 */ - protected SetScheduling(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Scheduling content) { + protected Resume(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesResumeRequest 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()) { @@ -83992,63 +83234,63 @@ protected SetScheduling(java.lang.String project, java.lang.String zone, java.la } @Override - public SetScheduling set$Xgafv(java.lang.String $Xgafv) { - return (SetScheduling) super.set$Xgafv($Xgafv); + public Resume set$Xgafv(java.lang.String $Xgafv) { + return (Resume) super.set$Xgafv($Xgafv); } @Override - public SetScheduling setAccessToken(java.lang.String accessToken) { - return (SetScheduling) super.setAccessToken(accessToken); + public Resume setAccessToken(java.lang.String accessToken) { + return (Resume) super.setAccessToken(accessToken); } @Override - public SetScheduling setAlt(java.lang.String alt) { - return (SetScheduling) super.setAlt(alt); + public Resume setAlt(java.lang.String alt) { + return (Resume) super.setAlt(alt); } @Override - public SetScheduling setCallback(java.lang.String callback) { - return (SetScheduling) super.setCallback(callback); + public Resume setCallback(java.lang.String callback) { + return (Resume) super.setCallback(callback); } @Override - public SetScheduling setFields(java.lang.String fields) { - return (SetScheduling) super.setFields(fields); + public Resume setFields(java.lang.String fields) { + return (Resume) super.setFields(fields); } @Override - public SetScheduling setKey(java.lang.String key) { - return (SetScheduling) super.setKey(key); + public Resume setKey(java.lang.String key) { + return (Resume) super.setKey(key); } @Override - public SetScheduling setOauthToken(java.lang.String oauthToken) { - return (SetScheduling) super.setOauthToken(oauthToken); + public Resume setOauthToken(java.lang.String oauthToken) { + return (Resume) super.setOauthToken(oauthToken); } @Override - public SetScheduling setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetScheduling) super.setPrettyPrint(prettyPrint); + public Resume setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Resume) super.setPrettyPrint(prettyPrint); } @Override - public SetScheduling setQuotaUser(java.lang.String quotaUser) { - return (SetScheduling) super.setQuotaUser(quotaUser); + public Resume setQuotaUser(java.lang.String quotaUser) { + return (Resume) super.setQuotaUser(quotaUser); } @Override - public SetScheduling setUploadType(java.lang.String uploadType) { - return (SetScheduling) super.setUploadType(uploadType); + public Resume setUploadType(java.lang.String uploadType) { + return (Resume) super.setUploadType(uploadType); } @Override - public SetScheduling setUploadProtocol(java.lang.String uploadProtocol) { - return (SetScheduling) super.setUploadProtocol(uploadProtocol); + public Resume setUploadProtocol(java.lang.String uploadProtocol) { + return (Resume) super.setUploadProtocol(uploadProtocol); } @Override - public SetScheduling setUserIp(java.lang.String userIp) { - return (SetScheduling) super.setUserIp(userIp); + public Resume setUserIp(java.lang.String userIp) { + return (Resume) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -84062,7 +83304,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetScheduling setProject(java.lang.String project) { + public Resume setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -84083,7 +83325,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public SetScheduling setZone(java.lang.String zone) { + public Resume 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 " + @@ -84093,18 +83335,18 @@ public SetScheduling setZone(java.lang.String zone) { return this; } - /** Instance name for this request. */ + /** Name of the instance resource to resume. */ @com.google.api.client.util.Key private java.lang.String instance; - /** Instance name for this request. + /** Name of the instance resource to resume. */ public java.lang.String getInstance() { return instance; } - /** Instance name for this request. */ - public SetScheduling setInstance(java.lang.String instance) { + /** Name of the instance resource to resume. */ + public Resume 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 " + @@ -84158,42 +83400,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 SetScheduling setRequestId(java.lang.String requestId) { + public Resume setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetScheduling set(String parameterName, Object value) { - return (SetScheduling) super.set(parameterName, value); + public Resume set(String parameterName, Object value) { + return (Resume) super.set(parameterName, value); } } /** - * Sets the Google Cloud Armor security policy for the specified instance. For more information, - * seeGoogle Cloud Armor Overview + * Sends diagnostic interrupt to the instance. * - * Create a request for the method "instances.setSecurityPolicy". + * Create a request for the method "instances.sendDiagnosticInterrupt". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetSecurityPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link SendDiagnosticInterrupt#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param zone Name of the zone scoping this request. - * @param instance Name of the Instance resource to which the security policy should be - set. The name should conform to - * RFC1035. - * @param content the {@link com.google.api.services.compute.model.InstancesSetSecurityPolicyRequest} + * @param zone The name of the zone for this request. + * @param instance Name of the instance scoping this request. * @return the request */ - public SetSecurityPolicy setSecurityPolicy(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetSecurityPolicyRequest content) throws java.io.IOException { - SetSecurityPolicy result = new SetSecurityPolicy(project, zone, instance, content); + public SendDiagnosticInterrupt sendDiagnosticInterrupt(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + SendDiagnosticInterrupt result = new SendDiagnosticInterrupt(project, zone, instance); initialize(result); return result; } - public class SetSecurityPolicy extends ComputeRequest { + public class SendDiagnosticInterrupt extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setSecurityPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -84201,28 +83440,27 @@ public class SetSecurityPolicy extends ComputeRequest {@link SetSecurityPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

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

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

* * @param project Project ID for this request. - * @param zone Name of the zone scoping this request. - * @param instance Name of the Instance resource to which the security policy should be - set. The name should conform to - * RFC1035. - * @param content the {@link com.google.api.services.compute.model.InstancesSetSecurityPolicyRequest} + * @param zone The name of the zone for this request. + * @param instance Name of the instance scoping this request. * @since 1.13 */ - protected SetSecurityPolicy(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetSecurityPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected SendDiagnosticInterrupt(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "POST", REST_PATH, null, Void.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -84236,66 +83474,71 @@ protected SetSecurityPolicy(java.lang.String project, java.lang.String zone, jav "[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 SetSecurityPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetSecurityPolicy) super.set$Xgafv($Xgafv); + public SendDiagnosticInterrupt set$Xgafv(java.lang.String $Xgafv) { + return (SendDiagnosticInterrupt) super.set$Xgafv($Xgafv); } @Override - public SetSecurityPolicy setAccessToken(java.lang.String accessToken) { - return (SetSecurityPolicy) super.setAccessToken(accessToken); + public SendDiagnosticInterrupt setAccessToken(java.lang.String accessToken) { + return (SendDiagnosticInterrupt) super.setAccessToken(accessToken); } @Override - public SetSecurityPolicy setAlt(java.lang.String alt) { - return (SetSecurityPolicy) super.setAlt(alt); + public SendDiagnosticInterrupt setAlt(java.lang.String alt) { + return (SendDiagnosticInterrupt) super.setAlt(alt); } @Override - public SetSecurityPolicy setCallback(java.lang.String callback) { - return (SetSecurityPolicy) super.setCallback(callback); + public SendDiagnosticInterrupt setCallback(java.lang.String callback) { + return (SendDiagnosticInterrupt) super.setCallback(callback); } @Override - public SetSecurityPolicy setFields(java.lang.String fields) { - return (SetSecurityPolicy) super.setFields(fields); + public SendDiagnosticInterrupt setFields(java.lang.String fields) { + return (SendDiagnosticInterrupt) super.setFields(fields); } @Override - public SetSecurityPolicy setKey(java.lang.String key) { - return (SetSecurityPolicy) super.setKey(key); + public SendDiagnosticInterrupt setKey(java.lang.String key) { + return (SendDiagnosticInterrupt) super.setKey(key); } @Override - public SetSecurityPolicy setOauthToken(java.lang.String oauthToken) { - return (SetSecurityPolicy) super.setOauthToken(oauthToken); + public SendDiagnosticInterrupt setOauthToken(java.lang.String oauthToken) { + return (SendDiagnosticInterrupt) super.setOauthToken(oauthToken); } @Override - public SetSecurityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetSecurityPolicy) super.setPrettyPrint(prettyPrint); + public SendDiagnosticInterrupt setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SendDiagnosticInterrupt) super.setPrettyPrint(prettyPrint); } @Override - public SetSecurityPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetSecurityPolicy) super.setQuotaUser(quotaUser); + public SendDiagnosticInterrupt setQuotaUser(java.lang.String quotaUser) { + return (SendDiagnosticInterrupt) super.setQuotaUser(quotaUser); } @Override - public SetSecurityPolicy setUploadType(java.lang.String uploadType) { - return (SetSecurityPolicy) super.setUploadType(uploadType); + public SendDiagnosticInterrupt setUploadType(java.lang.String uploadType) { + return (SendDiagnosticInterrupt) super.setUploadType(uploadType); } @Override - public SetSecurityPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetSecurityPolicy) super.setUploadProtocol(uploadProtocol); + public SendDiagnosticInterrupt setUploadProtocol(java.lang.String uploadProtocol) { + return (SendDiagnosticInterrupt) super.setUploadProtocol(uploadProtocol); } @Override - public SetSecurityPolicy setUserIp(java.lang.String userIp) { - return (SetSecurityPolicy) super.setUserIp(userIp); + public SendDiagnosticInterrupt setUserIp(java.lang.String userIp) { + return (SendDiagnosticInterrupt) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -84309,7 +83552,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetSecurityPolicy setProject(java.lang.String project) { + public SendDiagnosticInterrupt setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -84319,18 +83562,18 @@ public SetSecurityPolicy setProject(java.lang.String project) { return this; } - /** Name of the zone scoping this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key private java.lang.String zone; - /** Name of the zone scoping this request. + /** The name of the zone for this request. */ public java.lang.String getZone() { return zone; } - /** Name of the zone scoping this request. */ - public SetSecurityPolicy setZone(java.lang.String zone) { + /** The name of the zone for this request. */ + public SendDiagnosticInterrupt 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 " + @@ -84340,107 +83583,55 @@ public SetSecurityPolicy setZone(java.lang.String zone) { return this; } - /** - * Name of the Instance resource to which the security policy should be set. The name should - * conform to RFC1035. - */ + /** Name of the instance scoping this request. */ @com.google.api.client.util.Key private java.lang.String instance; - /** Name of the Instance resource to which the security policy should be set. The name should conform - to RFC1035. + /** Name of the instance scoping this request. */ public java.lang.String getInstance() { return instance; } - /** - * Name of the Instance resource to which the security policy should be set. The name should - * conform to RFC1035. - */ - public SetSecurityPolicy setInstance(java.lang.String instance) { + /** Name of the instance scoping this request. */ + public SendDiagnosticInterrupt 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 SetSecurityPolicy setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - @Override - public SetSecurityPolicy set(String parameterName, Object value) { - return (SetSecurityPolicy) super.set(parameterName, value); + public SendDiagnosticInterrupt set(String parameterName, Object value) { + return (SendDiagnosticInterrupt) super.set(parameterName, value); } } /** - * Sets the service account on the instance. For more information, readChanging the service account - * and access scopes for an instance. + * Sets deletion protection on the instance. * - * Create a request for the method "instances.setServiceAccount". + * Create a request for the method "instances.setDeletionProtection". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetServiceAccount#execute()} method to invoke the remote operation. + * parameters, call the {@link SetDeletionProtection#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 resource to start. - * @param content the {@link com.google.api.services.compute.model.InstancesSetServiceAccountRequest} + * @param resource Name or id of the resource for this request. * @return the request */ - public SetServiceAccount setServiceAccount(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetServiceAccountRequest content) throws java.io.IOException { - SetServiceAccount result = new SetServiceAccount(project, zone, instance, content); + public SetDeletionProtection setDeletionProtection(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException { + SetDeletionProtection result = new SetDeletionProtection(project, zone, resource); initialize(result); return result; } - public class SetServiceAccount extends ComputeRequest { + public class SetDeletionProtection extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -84448,29 +83639,27 @@ public class SetServiceAccount extends ComputeRequest {@link SetServiceAccount#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

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

{@link SetDeletionProtection#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 resource to start. - * @param content the {@link com.google.api.services.compute.model.InstancesSetServiceAccountRequest} + * @param resource Name or id of the resource for this request. * @since 1.13 */ - protected SetServiceAccount(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetServiceAccountRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected SetDeletionProtection(java.lang.String project, java.lang.String zone, java.lang.String resource) { + 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(), @@ -84483,72 +83672,72 @@ protected SetServiceAccount(java.lang.String project, java.lang.String zone, jav "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."); + 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(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetServiceAccount set$Xgafv(java.lang.String $Xgafv) { - return (SetServiceAccount) super.set$Xgafv($Xgafv); + public SetDeletionProtection set$Xgafv(java.lang.String $Xgafv) { + return (SetDeletionProtection) super.set$Xgafv($Xgafv); } @Override - public SetServiceAccount setAccessToken(java.lang.String accessToken) { - return (SetServiceAccount) super.setAccessToken(accessToken); + public SetDeletionProtection setAccessToken(java.lang.String accessToken) { + return (SetDeletionProtection) super.setAccessToken(accessToken); } @Override - public SetServiceAccount setAlt(java.lang.String alt) { - return (SetServiceAccount) super.setAlt(alt); + public SetDeletionProtection setAlt(java.lang.String alt) { + return (SetDeletionProtection) super.setAlt(alt); } @Override - public SetServiceAccount setCallback(java.lang.String callback) { - return (SetServiceAccount) super.setCallback(callback); + public SetDeletionProtection setCallback(java.lang.String callback) { + return (SetDeletionProtection) super.setCallback(callback); } @Override - public SetServiceAccount setFields(java.lang.String fields) { - return (SetServiceAccount) super.setFields(fields); + public SetDeletionProtection setFields(java.lang.String fields) { + return (SetDeletionProtection) super.setFields(fields); } @Override - public SetServiceAccount setKey(java.lang.String key) { - return (SetServiceAccount) super.setKey(key); + public SetDeletionProtection setKey(java.lang.String key) { + return (SetDeletionProtection) super.setKey(key); } @Override - public SetServiceAccount setOauthToken(java.lang.String oauthToken) { - return (SetServiceAccount) super.setOauthToken(oauthToken); + public SetDeletionProtection setOauthToken(java.lang.String oauthToken) { + return (SetDeletionProtection) super.setOauthToken(oauthToken); } @Override - public SetServiceAccount setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetServiceAccount) super.setPrettyPrint(prettyPrint); + public SetDeletionProtection setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetDeletionProtection) super.setPrettyPrint(prettyPrint); } @Override - public SetServiceAccount setQuotaUser(java.lang.String quotaUser) { - return (SetServiceAccount) super.setQuotaUser(quotaUser); + public SetDeletionProtection setQuotaUser(java.lang.String quotaUser) { + return (SetDeletionProtection) super.setQuotaUser(quotaUser); } @Override - public SetServiceAccount setUploadType(java.lang.String uploadType) { - return (SetServiceAccount) super.setUploadType(uploadType); + public SetDeletionProtection setUploadType(java.lang.String uploadType) { + return (SetDeletionProtection) super.setUploadType(uploadType); } @Override - public SetServiceAccount setUploadProtocol(java.lang.String uploadProtocol) { - return (SetServiceAccount) super.setUploadProtocol(uploadProtocol); + public SetDeletionProtection setUploadProtocol(java.lang.String uploadProtocol) { + return (SetDeletionProtection) super.setUploadProtocol(uploadProtocol); } @Override - public SetServiceAccount setUserIp(java.lang.String userIp) { - return (SetServiceAccount) super.setUserIp(userIp); + public SetDeletionProtection setUserIp(java.lang.String userIp) { + return (SetDeletionProtection) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -84562,7 +83751,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetServiceAccount setProject(java.lang.String project) { + public SetDeletionProtection setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -84583,7 +83772,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public SetServiceAccount setZone(java.lang.String zone) { + public SetDeletionProtection 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 " + @@ -84593,27 +83782,70 @@ public SetServiceAccount setZone(java.lang.String zone) { return this; } - /** Name of the instance resource to start. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String instance; + private java.lang.String resource; - /** Name of the instance resource to start. + /** Name or id of the resource for this request. */ - public java.lang.String getInstance() { - return instance; + public java.lang.String getResource() { + return resource; } - /** Name of the instance resource to start. */ - public SetServiceAccount setInstance(java.lang.String instance) { + /** Name or id of the resource for this request. */ + public SetDeletionProtection setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.instance = instance; + this.resource = resource; + return this; + } + + /** Whether the resource should be protected against deletion. */ + @com.google.api.client.util.Key + private java.lang.Boolean deletionProtection; + + /** Whether the resource should be protected against deletion. [default: true] + */ + public java.lang.Boolean getDeletionProtection() { + return deletionProtection; + } + + /** Whether the resource should be protected against deletion. */ + public SetDeletionProtection setDeletionProtection(java.lang.Boolean deletionProtection) { + this.deletionProtection = deletionProtection; return this; } + /** + * Convenience method that returns only {@link Boolean#TRUE} or {@link Boolean#FALSE}. + * + *

+ * Boolean properties can have four possible values: + * {@code null}, {@link com.google.api.client.util.Data#NULL_BOOLEAN}, {@link Boolean#TRUE} + * or {@link Boolean#FALSE}. + *

+ * + *

+ * This method returns {@link Boolean#TRUE} if the default of the property is {@link Boolean#TRUE} + * and it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + * {@link Boolean#FALSE} is returned if the default of the property is {@link Boolean#FALSE} and + * it is {@code null} or {@link com.google.api.client.util.Data#NULL_BOOLEAN}. + *

+ * + *

+ * Whether the resource should be protected against deletion. + *

+ */ + public boolean isDeletionProtection() { + if (deletionProtection == null || deletionProtection == com.google.api.client.util.Data.NULL_BOOLEAN) { + return true; + } + return deletionProtection; + } + /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -84658,42 +83890,42 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public SetServiceAccount setRequestId(java.lang.String requestId) { + public SetDeletionProtection setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetServiceAccount set(String parameterName, Object value) { - return (SetServiceAccount) super.set(parameterName, value); + public SetDeletionProtection set(String parameterName, Object value) { + return (SetDeletionProtection) super.set(parameterName, value); } } /** - * Sets the Shielded Instance integrity policy for an instance. You can only use this method on a - * running instance. This method supports PATCH semantics and uses the JSON merge patch format and - * processing rules. + * Sets the auto-delete flag for a disk attached to an instance. * - * Create a request for the method "instances.setShieldedInstanceIntegrityPolicy". + * Create a request for the method "instances.setDiskAutoDelete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetShieldedInstanceIntegrityPolicy#execute()} method to invoke the - * remote operation. + * parameters, call the {@link SetDiskAutoDelete#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 or id of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.model.ShieldedInstanceIntegrityPolicy} + * @param instance The instance name for this request. + * @param autoDelete Whether to auto-delete the disk when the instance is deleted. + * @param deviceName The device name of the disk to modify. Make a get() request + on the instance to view currently + * attached disks and device names. * @return the request */ - public SetShieldedInstanceIntegrityPolicy setShieldedInstanceIntegrityPolicy(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.ShieldedInstanceIntegrityPolicy content) throws java.io.IOException { - SetShieldedInstanceIntegrityPolicy result = new SetShieldedInstanceIntegrityPolicy(project, zone, instance, content); + public SetDiskAutoDelete setDiskAutoDelete(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.Boolean autoDelete, java.lang.String deviceName) throws java.io.IOException { + SetDiskAutoDelete result = new SetDiskAutoDelete(project, zone, instance, autoDelete, deviceName); initialize(result); return result; } - public class SetShieldedInstanceIntegrityPolicy extends ComputeRequest { + public class SetDiskAutoDelete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -84704,27 +83936,31 @@ public class SetShieldedInstanceIntegrityPolicy extends ComputeRequest {@link SetShieldedInstanceIntegrityPolicy#initialize(com.google.api.clien - * t.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.

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

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param instance Name or id of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.model.ShieldedInstanceIntegrityPolicy} + * @param instance The instance name for this request. + * @param autoDelete Whether to auto-delete the disk when the instance is deleted. + * @param deviceName The device name of the disk to modify. Make a get() request + on the instance to view currently + * attached disks and device names. * @since 1.13 */ - protected SetShieldedInstanceIntegrityPolicy(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.ShieldedInstanceIntegrityPolicy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected SetDiskAutoDelete(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.Boolean autoDelete, java.lang.String deviceName) { + 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(), @@ -84743,66 +83979,73 @@ protected SetShieldedInstanceIntegrityPolicy(java.lang.String project, java.lang "Parameter instance must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } + this.autoDelete = com.google.api.client.util.Preconditions.checkNotNull(autoDelete, "Required parameter autoDelete must be specified."); + this.deviceName = com.google.api.client.util.Preconditions.checkNotNull(deviceName, "Required parameter deviceName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DEVICE_NAME_PATTERN.matcher(deviceName).matches(), + "Parameter deviceName must conform to the pattern " + + "\\w[\\w.-]{0,254}"); + } } @Override - public SetShieldedInstanceIntegrityPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetShieldedInstanceIntegrityPolicy) super.set$Xgafv($Xgafv); + public SetDiskAutoDelete set$Xgafv(java.lang.String $Xgafv) { + return (SetDiskAutoDelete) super.set$Xgafv($Xgafv); } @Override - public SetShieldedInstanceIntegrityPolicy setAccessToken(java.lang.String accessToken) { - return (SetShieldedInstanceIntegrityPolicy) super.setAccessToken(accessToken); + public SetDiskAutoDelete setAccessToken(java.lang.String accessToken) { + return (SetDiskAutoDelete) super.setAccessToken(accessToken); } @Override - public SetShieldedInstanceIntegrityPolicy setAlt(java.lang.String alt) { - return (SetShieldedInstanceIntegrityPolicy) super.setAlt(alt); + public SetDiskAutoDelete setAlt(java.lang.String alt) { + return (SetDiskAutoDelete) super.setAlt(alt); } @Override - public SetShieldedInstanceIntegrityPolicy setCallback(java.lang.String callback) { - return (SetShieldedInstanceIntegrityPolicy) super.setCallback(callback); + public SetDiskAutoDelete setCallback(java.lang.String callback) { + return (SetDiskAutoDelete) super.setCallback(callback); } @Override - public SetShieldedInstanceIntegrityPolicy setFields(java.lang.String fields) { - return (SetShieldedInstanceIntegrityPolicy) super.setFields(fields); + public SetDiskAutoDelete setFields(java.lang.String fields) { + return (SetDiskAutoDelete) super.setFields(fields); } @Override - public SetShieldedInstanceIntegrityPolicy setKey(java.lang.String key) { - return (SetShieldedInstanceIntegrityPolicy) super.setKey(key); + public SetDiskAutoDelete setKey(java.lang.String key) { + return (SetDiskAutoDelete) super.setKey(key); } @Override - public SetShieldedInstanceIntegrityPolicy setOauthToken(java.lang.String oauthToken) { - return (SetShieldedInstanceIntegrityPolicy) super.setOauthToken(oauthToken); + public SetDiskAutoDelete setOauthToken(java.lang.String oauthToken) { + return (SetDiskAutoDelete) super.setOauthToken(oauthToken); } @Override - public SetShieldedInstanceIntegrityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetShieldedInstanceIntegrityPolicy) super.setPrettyPrint(prettyPrint); + public SetDiskAutoDelete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetDiskAutoDelete) super.setPrettyPrint(prettyPrint); } @Override - public SetShieldedInstanceIntegrityPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetShieldedInstanceIntegrityPolicy) super.setQuotaUser(quotaUser); + public SetDiskAutoDelete setQuotaUser(java.lang.String quotaUser) { + return (SetDiskAutoDelete) super.setQuotaUser(quotaUser); } @Override - public SetShieldedInstanceIntegrityPolicy setUploadType(java.lang.String uploadType) { - return (SetShieldedInstanceIntegrityPolicy) super.setUploadType(uploadType); + public SetDiskAutoDelete setUploadType(java.lang.String uploadType) { + return (SetDiskAutoDelete) super.setUploadType(uploadType); } @Override - public SetShieldedInstanceIntegrityPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetShieldedInstanceIntegrityPolicy) super.setUploadProtocol(uploadProtocol); + public SetDiskAutoDelete setUploadProtocol(java.lang.String uploadProtocol) { + return (SetDiskAutoDelete) super.setUploadProtocol(uploadProtocol); } @Override - public SetShieldedInstanceIntegrityPolicy setUserIp(java.lang.String userIp) { - return (SetShieldedInstanceIntegrityPolicy) super.setUserIp(userIp); + public SetDiskAutoDelete setUserIp(java.lang.String userIp) { + return (SetDiskAutoDelete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -84816,7 +84059,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetShieldedInstanceIntegrityPolicy setProject(java.lang.String project) { + public SetDiskAutoDelete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -84837,7 +84080,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public SetShieldedInstanceIntegrityPolicy setZone(java.lang.String zone) { + public SetDiskAutoDelete 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 " + @@ -84847,18 +84090,18 @@ public SetShieldedInstanceIntegrityPolicy setZone(java.lang.String zone) { return this; } - /** Name or id of the instance scoping this request. */ + /** The instance name for this request. */ @com.google.api.client.util.Key private java.lang.String instance; - /** Name or id of the instance scoping this request. + /** The instance name for this request. */ public java.lang.String getInstance() { return instance; } - /** Name or id of the instance scoping this request. */ - public SetShieldedInstanceIntegrityPolicy setInstance(java.lang.String instance) { + /** The instance name for this request. */ + public SetDiskAutoDelete 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 " + @@ -84868,6 +84111,50 @@ public SetShieldedInstanceIntegrityPolicy setInstance(java.lang.String instance) return this; } + /** Whether to auto-delete the disk when the instance is deleted. */ + @com.google.api.client.util.Key + private java.lang.Boolean autoDelete; + + /** Whether to auto-delete the disk when the instance is deleted. + */ + public java.lang.Boolean getAutoDelete() { + return autoDelete; + } + + /** Whether to auto-delete the disk when the instance is deleted. */ + public SetDiskAutoDelete setAutoDelete(java.lang.Boolean autoDelete) { + this.autoDelete = autoDelete; + return this; + } + + /** + * The device name of the disk to modify. Make a get() request on the instance to view + * currently attached disks and device names. + */ + @com.google.api.client.util.Key + private java.lang.String deviceName; + + /** The device name of the disk to modify. Make a get() request on the instance to view currently + attached disks and device names. + */ + public java.lang.String getDeviceName() { + return deviceName; + } + + /** + * The device name of the disk to modify. Make a get() request on the instance to view + * currently attached disks and device names. + */ + public SetDiskAutoDelete setDeviceName(java.lang.String deviceName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(DEVICE_NAME_PATTERN.matcher(deviceName).matches(), + "Parameter deviceName must conform to the pattern " + + "\\w[\\w.-]{0,254}"); + } + this.deviceName = deviceName; + 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 @@ -84912,42 +84199,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 SetShieldedInstanceIntegrityPolicy setRequestId(java.lang.String requestId) { + public SetDiskAutoDelete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetShieldedInstanceIntegrityPolicy set(String parameterName, Object value) { - return (SetShieldedInstanceIntegrityPolicy) super.set(parameterName, value); + public SetDiskAutoDelete set(String parameterName, Object value) { + return (SetDiskAutoDelete) super.set(parameterName, value); } } /** - * Sets the Shielded VM integrity policy for a VM instance. You can only use this method on a - * running VM instance. This method supports PATCH semantics and uses the JSON merge patch format - * and processing rules. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "instances.setShieldedVmIntegrityPolicy". + * Create a request for the method "instances.setIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetShieldedVmIntegrityPolicy#execute()} method to invoke the remote - * operation. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param instance Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.model.ShieldedVmIntegrityPolicy} + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} * @return the request */ - public SetShieldedVmIntegrityPolicy setShieldedVmIntegrityPolicy(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.ShieldedVmIntegrityPolicy content) throws java.io.IOException { - SetShieldedVmIntegrityPolicy result = new SetShieldedVmIntegrityPolicy(project, zone, instance, content); + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); initialize(result); return result; } - public class SetShieldedVmIntegrityPolicy extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -84955,30 +84239,28 @@ public class SetShieldedVmIntegrityPolicy extends ComputeRequest {@link SetShieldedVmIntegrityPolicy#initialize(com.google.api.client.googleapis. - * services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.

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

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param instance Name of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.model.ShieldedVmIntegrityPolicy} + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} * @since 1.13 */ - protected SetShieldedVmIntegrityPolicy(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.ShieldedVmIntegrityPolicy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected SetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -84991,72 +84273,72 @@ protected SetShieldedVmIntegrityPolicy(java.lang.String project, java.lang.Strin "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."); + 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(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetShieldedVmIntegrityPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetShieldedVmIntegrityPolicy) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public SetShieldedVmIntegrityPolicy setAccessToken(java.lang.String accessToken) { - return (SetShieldedVmIntegrityPolicy) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public SetShieldedVmIntegrityPolicy setAlt(java.lang.String alt) { - return (SetShieldedVmIntegrityPolicy) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public SetShieldedVmIntegrityPolicy setCallback(java.lang.String callback) { - return (SetShieldedVmIntegrityPolicy) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public SetShieldedVmIntegrityPolicy setFields(java.lang.String fields) { - return (SetShieldedVmIntegrityPolicy) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public SetShieldedVmIntegrityPolicy setKey(java.lang.String key) { - return (SetShieldedVmIntegrityPolicy) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public SetShieldedVmIntegrityPolicy setOauthToken(java.lang.String oauthToken) { - return (SetShieldedVmIntegrityPolicy) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public SetShieldedVmIntegrityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetShieldedVmIntegrityPolicy) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public SetShieldedVmIntegrityPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetShieldedVmIntegrityPolicy) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public SetShieldedVmIntegrityPolicy setUploadType(java.lang.String uploadType) { - return (SetShieldedVmIntegrityPolicy) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public SetShieldedVmIntegrityPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetShieldedVmIntegrityPolicy) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public SetShieldedVmIntegrityPolicy setUserIp(java.lang.String userIp) { - return (SetShieldedVmIntegrityPolicy) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -85070,7 +84352,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetShieldedVmIntegrityPolicy setProject(java.lang.String project) { + public SetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -85091,7 +84373,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public SetShieldedVmIntegrityPolicy setZone(java.lang.String zone) { + public SetIamPolicy setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), "Parameter zone must conform to the pattern " + @@ -85101,104 +84383,56 @@ public SetShieldedVmIntegrityPolicy setZone(java.lang.String zone) { return this; } - /** Name of the instance scoping this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String instance; + private java.lang.String resource; - /** Name of the instance scoping this request. + /** Name or id of the resource for this request. */ - public java.lang.String getInstance() { - return instance; + public java.lang.String getResource() { + return resource; } - /** Name of the instance scoping this request. */ - public SetShieldedVmIntegrityPolicy setInstance(java.lang.String instance) { + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), - "Parameter instance must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.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 SetShieldedVmIntegrityPolicy setRequestId(java.lang.String requestId) { - this.requestId = requestId; + this.resource = resource; return this; } @Override - public SetShieldedVmIntegrityPolicy set(String parameterName, Object value) { - return (SetShieldedVmIntegrityPolicy) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Sets network tags for the specified instance to the data included in the request. + * Sets labels on an instance. To learn more about labels, read theLabeling Resources + * documentation. * - * Create a request for the method "instances.setTags". + * Create a request for the method "instances.setLabels". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetTags#execute()} method to invoke the remote operation. + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param 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.Tags} + * @param content the {@link com.google.api.services.compute.model.InstancesSetLabelsRequest} * @return the request */ - public SetTags setTags(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Tags content) throws java.io.IOException { - SetTags result = new SetTags(project, zone, instance, content); + public SetLabels setLabels(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, zone, instance, content); initialize(result); return result; } - public class SetTags extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setTags"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -85210,23 +84444,24 @@ public class SetTags extends ComputeRequest + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. * @param 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.Tags} + * @param content the {@link com.google.api.services.compute.model.InstancesSetLabelsRequest} * @since 1.13 */ - protected SetTags(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Tags content) { + protected SetLabels(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetLabelsRequest 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()) { @@ -85249,63 +84484,63 @@ protected SetTags(java.lang.String project, java.lang.String zone, java.lang.Str } @Override - public SetTags set$Xgafv(java.lang.String $Xgafv) { - return (SetTags) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public SetTags setAccessToken(java.lang.String accessToken) { - return (SetTags) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public SetTags setAlt(java.lang.String alt) { - return (SetTags) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public SetTags setCallback(java.lang.String callback) { - return (SetTags) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public SetTags setFields(java.lang.String fields) { - return (SetTags) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public SetTags setKey(java.lang.String key) { - return (SetTags) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public SetTags setOauthToken(java.lang.String oauthToken) { - return (SetTags) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public SetTags setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetTags) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public SetTags setQuotaUser(java.lang.String quotaUser) { - return (SetTags) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public SetTags setUploadType(java.lang.String uploadType) { - return (SetTags) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public SetTags setUploadProtocol(java.lang.String uploadProtocol) { - return (SetTags) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public SetTags setUserIp(java.lang.String userIp) { - return (SetTags) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -85319,7 +84554,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetTags setProject(java.lang.String project) { + public SetLabels setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -85340,7 +84575,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public SetTags setZone(java.lang.String zone) { + public SetLabels 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 " + @@ -85361,7 +84596,7 @@ public java.lang.String getInstance() { } /** Name of the instance scoping this request. */ - public SetTags setInstance(java.lang.String instance) { + public SetLabels 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 " + @@ -85415,40 +84650,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 SetTags setRequestId(java.lang.String requestId) { + public SetLabels setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetTags set(String parameterName, Object value) { - return (SetTags) super.set(parameterName, value); + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); } } /** - * Simulates a host maintenance event on a VM. For more information, see Simulate a host maintenance - * event. + * Changes the number and/or type of accelerator for a stopped instance to the values specified in + * the request. * - * Create a request for the method "instances.simulateMaintenanceEvent". + * Create a request for the method "instances.setMachineResources". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SimulateMaintenanceEvent#execute()} method to invoke the remote - * operation. + * parameters, call the {@link SetMachineResources#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.InstancesSetMachineResourcesRequest} * @return the request */ - public SimulateMaintenanceEvent simulateMaintenanceEvent(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - SimulateMaintenanceEvent result = new SimulateMaintenanceEvent(project, zone, instance); + public SetMachineResources setMachineResources(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetMachineResourcesRequest content) throws java.io.IOException { + SetMachineResources result = new SetMachineResources(project, zone, instance, content); initialize(result); return result; } - public class SimulateMaintenanceEvent extends ComputeRequest { + public class SetMachineResources extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setMachineResources"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -85460,24 +84695,25 @@ public class SimulateMaintenanceEvent extends ComputeRequest {@link SimulateMaintenanceEvent#initialize(com.google.api.client.googleapis.serv - * ices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * parameters, call the {@link SetMachineResources#execute()} method to invoke the remote + * operation.

{@link SetMachineResources#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.InstancesSetMachineResourcesRequest} * @since 1.13 */ - protected SimulateMaintenanceEvent(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 SetMachineResources(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetMachineResourcesRequest 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(), @@ -85499,63 +84735,63 @@ protected SimulateMaintenanceEvent(java.lang.String project, java.lang.String zo } @Override - public SimulateMaintenanceEvent set$Xgafv(java.lang.String $Xgafv) { - return (SimulateMaintenanceEvent) super.set$Xgafv($Xgafv); + public SetMachineResources set$Xgafv(java.lang.String $Xgafv) { + return (SetMachineResources) super.set$Xgafv($Xgafv); } @Override - public SimulateMaintenanceEvent setAccessToken(java.lang.String accessToken) { - return (SimulateMaintenanceEvent) super.setAccessToken(accessToken); + public SetMachineResources setAccessToken(java.lang.String accessToken) { + return (SetMachineResources) super.setAccessToken(accessToken); } @Override - public SimulateMaintenanceEvent setAlt(java.lang.String alt) { - return (SimulateMaintenanceEvent) super.setAlt(alt); + public SetMachineResources setAlt(java.lang.String alt) { + return (SetMachineResources) super.setAlt(alt); } @Override - public SimulateMaintenanceEvent setCallback(java.lang.String callback) { - return (SimulateMaintenanceEvent) super.setCallback(callback); + public SetMachineResources setCallback(java.lang.String callback) { + return (SetMachineResources) super.setCallback(callback); } @Override - public SimulateMaintenanceEvent setFields(java.lang.String fields) { - return (SimulateMaintenanceEvent) super.setFields(fields); + public SetMachineResources setFields(java.lang.String fields) { + return (SetMachineResources) super.setFields(fields); } @Override - public SimulateMaintenanceEvent setKey(java.lang.String key) { - return (SimulateMaintenanceEvent) super.setKey(key); + public SetMachineResources setKey(java.lang.String key) { + return (SetMachineResources) super.setKey(key); } @Override - public SimulateMaintenanceEvent setOauthToken(java.lang.String oauthToken) { - return (SimulateMaintenanceEvent) super.setOauthToken(oauthToken); + public SetMachineResources setOauthToken(java.lang.String oauthToken) { + return (SetMachineResources) super.setOauthToken(oauthToken); } @Override - public SimulateMaintenanceEvent setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SimulateMaintenanceEvent) super.setPrettyPrint(prettyPrint); + public SetMachineResources setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetMachineResources) super.setPrettyPrint(prettyPrint); } @Override - public SimulateMaintenanceEvent setQuotaUser(java.lang.String quotaUser) { - return (SimulateMaintenanceEvent) super.setQuotaUser(quotaUser); + public SetMachineResources setQuotaUser(java.lang.String quotaUser) { + return (SetMachineResources) super.setQuotaUser(quotaUser); } @Override - public SimulateMaintenanceEvent setUploadType(java.lang.String uploadType) { - return (SimulateMaintenanceEvent) super.setUploadType(uploadType); + public SetMachineResources setUploadType(java.lang.String uploadType) { + return (SetMachineResources) super.setUploadType(uploadType); } @Override - public SimulateMaintenanceEvent setUploadProtocol(java.lang.String uploadProtocol) { - return (SimulateMaintenanceEvent) super.setUploadProtocol(uploadProtocol); + public SetMachineResources setUploadProtocol(java.lang.String uploadProtocol) { + return (SetMachineResources) super.setUploadProtocol(uploadProtocol); } @Override - public SimulateMaintenanceEvent setUserIp(java.lang.String userIp) { - return (SimulateMaintenanceEvent) super.setUserIp(userIp); + public SetMachineResources setUserIp(java.lang.String userIp) { + return (SetMachineResources) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -85569,7 +84805,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SimulateMaintenanceEvent setProject(java.lang.String project) { + public SetMachineResources setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -85590,7 +84826,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public SimulateMaintenanceEvent setZone(java.lang.String zone) { + public SetMachineResources 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 " + @@ -85611,7 +84847,7 @@ public java.lang.String getInstance() { } /** Name of the instance scoping this request. */ - public SimulateMaintenanceEvent setInstance(java.lang.String instance) { + public SetMachineResources 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 " + @@ -85665,61 +84901,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 SimulateMaintenanceEvent setRequestId(java.lang.String requestId) { + public SetMachineResources setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } - /** - * Determines whether the customers receive notifications before migration. Only applicable to - * SF vms. - */ - @com.google.api.client.util.Key - private java.lang.Boolean withExtendedNotifications; - - /** Determines whether the customers receive notifications before migration. Only applicable to SF vms. - */ - public java.lang.Boolean getWithExtendedNotifications() { - return withExtendedNotifications; - } - - /** - * Determines whether the customers receive notifications before migration. Only applicable to - * SF vms. - */ - public SimulateMaintenanceEvent setWithExtendedNotifications(java.lang.Boolean withExtendedNotifications) { - this.withExtendedNotifications = withExtendedNotifications; - return this; - } - @Override - public SimulateMaintenanceEvent set(String parameterName, Object value) { - return (SimulateMaintenanceEvent) super.set(parameterName, value); + public SetMachineResources set(String parameterName, Object value) { + return (SetMachineResources) super.set(parameterName, value); } } /** - * Starts an instance that was stopped using theinstances().stop method. For more information, - * seeRestart an instance. + * Changes the machine type for a stopped instance to the machine type specified in the request. * - * Create a request for the method "instances.start". + * Create a request for the method "instances.setMachineType". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Start#execute()} method to invoke the remote operation. + * parameters, call the {@link SetMachineType#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 resource to start. + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.InstancesSetMachineTypeRequest} * @return the request */ - public Start start(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - Start result = new Start(project, zone, instance); + public SetMachineType setMachineType(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetMachineTypeRequest content) throws java.io.IOException { + SetMachineType result = new SetMachineType(project, zone, instance, content); initialize(result); return result; } - public class Start extends ComputeRequest { + public class SetMachineType extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/start"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setMachineType"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -85731,23 +84945,24 @@ public class Start extends ComputeRequest {@link - * Start#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

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

{@link SetMachineType#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 instance Name of the instance resource to start. + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.InstancesSetMachineTypeRequest} * @since 1.13 */ - protected Start(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 SetMachineType(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetMachineTypeRequest 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(), @@ -85769,63 +84984,63 @@ protected Start(java.lang.String project, java.lang.String zone, java.lang.Strin } @Override - public Start set$Xgafv(java.lang.String $Xgafv) { - return (Start) super.set$Xgafv($Xgafv); + public SetMachineType set$Xgafv(java.lang.String $Xgafv) { + return (SetMachineType) super.set$Xgafv($Xgafv); } @Override - public Start setAccessToken(java.lang.String accessToken) { - return (Start) super.setAccessToken(accessToken); + public SetMachineType setAccessToken(java.lang.String accessToken) { + return (SetMachineType) super.setAccessToken(accessToken); } @Override - public Start setAlt(java.lang.String alt) { - return (Start) super.setAlt(alt); + public SetMachineType setAlt(java.lang.String alt) { + return (SetMachineType) super.setAlt(alt); } @Override - public Start setCallback(java.lang.String callback) { - return (Start) super.setCallback(callback); + public SetMachineType setCallback(java.lang.String callback) { + return (SetMachineType) super.setCallback(callback); } @Override - public Start setFields(java.lang.String fields) { - return (Start) super.setFields(fields); + public SetMachineType setFields(java.lang.String fields) { + return (SetMachineType) super.setFields(fields); } @Override - public Start setKey(java.lang.String key) { - return (Start) super.setKey(key); + public SetMachineType setKey(java.lang.String key) { + return (SetMachineType) super.setKey(key); } @Override - public Start setOauthToken(java.lang.String oauthToken) { - return (Start) super.setOauthToken(oauthToken); + public SetMachineType setOauthToken(java.lang.String oauthToken) { + return (SetMachineType) super.setOauthToken(oauthToken); } @Override - public Start setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Start) super.setPrettyPrint(prettyPrint); + public SetMachineType setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetMachineType) super.setPrettyPrint(prettyPrint); } @Override - public Start setQuotaUser(java.lang.String quotaUser) { - return (Start) super.setQuotaUser(quotaUser); + public SetMachineType setQuotaUser(java.lang.String quotaUser) { + return (SetMachineType) super.setQuotaUser(quotaUser); } @Override - public Start setUploadType(java.lang.String uploadType) { - return (Start) super.setUploadType(uploadType); + public SetMachineType setUploadType(java.lang.String uploadType) { + return (SetMachineType) super.setUploadType(uploadType); } @Override - public Start setUploadProtocol(java.lang.String uploadProtocol) { - return (Start) super.setUploadProtocol(uploadProtocol); + public SetMachineType setUploadProtocol(java.lang.String uploadProtocol) { + return (SetMachineType) super.setUploadProtocol(uploadProtocol); } @Override - public Start setUserIp(java.lang.String userIp) { - return (Start) super.setUserIp(userIp); + public SetMachineType setUserIp(java.lang.String userIp) { + return (SetMachineType) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -85839,7 +85054,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Start setProject(java.lang.String project) { + public SetMachineType setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -85860,7 +85075,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public Start setZone(java.lang.String zone) { + public SetMachineType 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 " + @@ -85870,18 +85085,18 @@ public Start setZone(java.lang.String zone) { return this; } - /** Name of the instance resource to start. */ + /** Name of the instance scoping this request. */ @com.google.api.client.util.Key private java.lang.String instance; - /** Name of the instance resource to start. + /** Name of the instance scoping this request. */ public java.lang.String getInstance() { return instance; } - /** Name of the instance resource to start. */ - public Start setInstance(java.lang.String instance) { + /** Name of the instance scoping this request. */ + public SetMachineType 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 " + @@ -85935,41 +85150,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 Start setRequestId(java.lang.String requestId) { + public SetMachineType setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Start set(String parameterName, Object value) { - return (Start) super.set(parameterName, value); + public SetMachineType set(String parameterName, Object value) { + return (SetMachineType) super.set(parameterName, value); } } /** - * Starts an instance that was stopped using theinstances().stop method. For more information, - * seeRestart an instance. + * Sets metadata for the specified instance to the data included in the request. * - * Create a request for the method "instances.startWithEncryptionKey". + * Create a request for the method "instances.setMetadata". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link StartWithEncryptionKey#execute()} method to invoke the remote - * operation. + * parameters, call the {@link SetMetadata#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 resource to start. - * @param content the {@link com.google.api.services.compute.model.InstancesStartWithEncryptionKeyRequest} + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.Metadata} * @return the request */ - public StartWithEncryptionKey startWithEncryptionKey(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesStartWithEncryptionKeyRequest content) throws java.io.IOException { - StartWithEncryptionKey result = new StartWithEncryptionKey(project, zone, instance, content); + public SetMetadata setMetadata(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Metadata content) throws java.io.IOException { + SetMetadata result = new SetMetadata(project, zone, instance, content); initialize(result); return result; } - public class StartWithEncryptionKey extends ComputeRequest { + public class SetMetadata extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setMetadata"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -85981,24 +85194,23 @@ public class StartWithEncryptionKey extends ComputeRequest {@link StartWithEncryptionKey#initialize(com.google.api.client.googleapis.servic - * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

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

+ * {@link + * SetMetadata#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 resource to start. - * @param content the {@link com.google.api.services.compute.model.InstancesStartWithEncryptionKeyRequest} + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.Metadata} * @since 1.13 */ - protected StartWithEncryptionKey(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesStartWithEncryptionKeyRequest content) { + protected SetMetadata(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Metadata 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()) { @@ -86021,63 +85233,63 @@ protected StartWithEncryptionKey(java.lang.String project, java.lang.String zone } @Override - public StartWithEncryptionKey set$Xgafv(java.lang.String $Xgafv) { - return (StartWithEncryptionKey) super.set$Xgafv($Xgafv); + public SetMetadata set$Xgafv(java.lang.String $Xgafv) { + return (SetMetadata) super.set$Xgafv($Xgafv); } @Override - public StartWithEncryptionKey setAccessToken(java.lang.String accessToken) { - return (StartWithEncryptionKey) super.setAccessToken(accessToken); + public SetMetadata setAccessToken(java.lang.String accessToken) { + return (SetMetadata) super.setAccessToken(accessToken); } @Override - public StartWithEncryptionKey setAlt(java.lang.String alt) { - return (StartWithEncryptionKey) super.setAlt(alt); + public SetMetadata setAlt(java.lang.String alt) { + return (SetMetadata) super.setAlt(alt); } @Override - public StartWithEncryptionKey setCallback(java.lang.String callback) { - return (StartWithEncryptionKey) super.setCallback(callback); + public SetMetadata setCallback(java.lang.String callback) { + return (SetMetadata) super.setCallback(callback); } @Override - public StartWithEncryptionKey setFields(java.lang.String fields) { - return (StartWithEncryptionKey) super.setFields(fields); + public SetMetadata setFields(java.lang.String fields) { + return (SetMetadata) super.setFields(fields); } @Override - public StartWithEncryptionKey setKey(java.lang.String key) { - return (StartWithEncryptionKey) super.setKey(key); + public SetMetadata setKey(java.lang.String key) { + return (SetMetadata) super.setKey(key); } @Override - public StartWithEncryptionKey setOauthToken(java.lang.String oauthToken) { - return (StartWithEncryptionKey) super.setOauthToken(oauthToken); + public SetMetadata setOauthToken(java.lang.String oauthToken) { + return (SetMetadata) super.setOauthToken(oauthToken); } @Override - public StartWithEncryptionKey setPrettyPrint(java.lang.Boolean prettyPrint) { - return (StartWithEncryptionKey) super.setPrettyPrint(prettyPrint); + public SetMetadata setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetMetadata) super.setPrettyPrint(prettyPrint); } @Override - public StartWithEncryptionKey setQuotaUser(java.lang.String quotaUser) { - return (StartWithEncryptionKey) super.setQuotaUser(quotaUser); + public SetMetadata setQuotaUser(java.lang.String quotaUser) { + return (SetMetadata) super.setQuotaUser(quotaUser); } @Override - public StartWithEncryptionKey setUploadType(java.lang.String uploadType) { - return (StartWithEncryptionKey) super.setUploadType(uploadType); + public SetMetadata setUploadType(java.lang.String uploadType) { + return (SetMetadata) super.setUploadType(uploadType); } @Override - public StartWithEncryptionKey setUploadProtocol(java.lang.String uploadProtocol) { - return (StartWithEncryptionKey) super.setUploadProtocol(uploadProtocol); + public SetMetadata setUploadProtocol(java.lang.String uploadProtocol) { + return (SetMetadata) super.setUploadProtocol(uploadProtocol); } @Override - public StartWithEncryptionKey setUserIp(java.lang.String userIp) { - return (StartWithEncryptionKey) super.setUserIp(userIp); + public SetMetadata setUserIp(java.lang.String userIp) { + return (SetMetadata) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -86091,7 +85303,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public StartWithEncryptionKey setProject(java.lang.String project) { + public SetMetadata setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -86112,7 +85324,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public StartWithEncryptionKey setZone(java.lang.String zone) { + public SetMetadata 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 " + @@ -86122,18 +85334,18 @@ public StartWithEncryptionKey setZone(java.lang.String zone) { return this; } - /** Name of the instance resource to start. */ + /** Name of the instance scoping this request. */ @com.google.api.client.util.Key private java.lang.String instance; - /** Name of the instance resource to start. + /** Name of the instance scoping this request. */ public java.lang.String getInstance() { return instance; } - /** Name of the instance resource to start. */ - public StartWithEncryptionKey setInstance(java.lang.String instance) { + /** Name of the instance scoping this request. */ + public SetMetadata 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 " + @@ -86187,41 +85399,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 StartWithEncryptionKey setRequestId(java.lang.String requestId) { + public SetMetadata setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public StartWithEncryptionKey set(String parameterName, Object value) { - return (StartWithEncryptionKey) super.set(parameterName, value); + public SetMetadata set(String parameterName, Object value) { + return (SetMetadata) super.set(parameterName, value); } } /** - * Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a - * later time. Stopped instances do not incur VM usage charges while they are stopped. However, - * resources that the VM is using, such as persistent disks and static IP addresses, will continue - * to be charged until they are deleted. For more information, seeStopping an instance. + * Changes the minimum CPU platform that this instance should use. This method can only be called on + * a stopped instance. For more information, readSpecifying a Minimum CPU Platform. * - * Create a request for the method "instances.stop". + * Create a request for the method "instances.setMinCpuPlatform". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Stop#execute()} method to invoke the remote operation. + * parameters, call the {@link SetMinCpuPlatform#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 resource to stop. + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.InstancesSetMinCpuPlatformRequest} * @return the request */ - public Stop stop(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - Stop result = new Stop(project, zone, instance); + public SetMinCpuPlatform setMinCpuPlatform(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetMinCpuPlatformRequest content) throws java.io.IOException { + SetMinCpuPlatform result = new SetMinCpuPlatform(project, zone, instance, content); initialize(result); return result; } - public class Stop extends ComputeRequest { + public class SetMinCpuPlatform extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/stop"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -86233,25 +85444,25 @@ public class Stop extends ComputeRequest {@link - * Stop#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

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

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param instance Name of the instance resource to stop. + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.InstancesSetMinCpuPlatformRequest} * @since 1.13 */ - protected Stop(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 SetMinCpuPlatform(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetMinCpuPlatformRequest 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(), @@ -86273,63 +85484,63 @@ protected Stop(java.lang.String project, java.lang.String zone, java.lang.String } @Override - public Stop set$Xgafv(java.lang.String $Xgafv) { - return (Stop) super.set$Xgafv($Xgafv); + public SetMinCpuPlatform set$Xgafv(java.lang.String $Xgafv) { + return (SetMinCpuPlatform) super.set$Xgafv($Xgafv); } @Override - public Stop setAccessToken(java.lang.String accessToken) { - return (Stop) super.setAccessToken(accessToken); + public SetMinCpuPlatform setAccessToken(java.lang.String accessToken) { + return (SetMinCpuPlatform) super.setAccessToken(accessToken); } @Override - public Stop setAlt(java.lang.String alt) { - return (Stop) super.setAlt(alt); + public SetMinCpuPlatform setAlt(java.lang.String alt) { + return (SetMinCpuPlatform) super.setAlt(alt); } @Override - public Stop setCallback(java.lang.String callback) { - return (Stop) super.setCallback(callback); + public SetMinCpuPlatform setCallback(java.lang.String callback) { + return (SetMinCpuPlatform) super.setCallback(callback); } @Override - public Stop setFields(java.lang.String fields) { - return (Stop) super.setFields(fields); + public SetMinCpuPlatform setFields(java.lang.String fields) { + return (SetMinCpuPlatform) super.setFields(fields); } @Override - public Stop setKey(java.lang.String key) { - return (Stop) super.setKey(key); + public SetMinCpuPlatform setKey(java.lang.String key) { + return (SetMinCpuPlatform) super.setKey(key); } @Override - public Stop setOauthToken(java.lang.String oauthToken) { - return (Stop) super.setOauthToken(oauthToken); + public SetMinCpuPlatform setOauthToken(java.lang.String oauthToken) { + return (SetMinCpuPlatform) super.setOauthToken(oauthToken); } @Override - public Stop setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Stop) super.setPrettyPrint(prettyPrint); + public SetMinCpuPlatform setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetMinCpuPlatform) super.setPrettyPrint(prettyPrint); } @Override - public Stop setQuotaUser(java.lang.String quotaUser) { - return (Stop) super.setQuotaUser(quotaUser); + public SetMinCpuPlatform setQuotaUser(java.lang.String quotaUser) { + return (SetMinCpuPlatform) super.setQuotaUser(quotaUser); } @Override - public Stop setUploadType(java.lang.String uploadType) { - return (Stop) super.setUploadType(uploadType); + public SetMinCpuPlatform setUploadType(java.lang.String uploadType) { + return (SetMinCpuPlatform) super.setUploadType(uploadType); } @Override - public Stop setUploadProtocol(java.lang.String uploadProtocol) { - return (Stop) super.setUploadProtocol(uploadProtocol); + public SetMinCpuPlatform setUploadProtocol(java.lang.String uploadProtocol) { + return (SetMinCpuPlatform) super.setUploadProtocol(uploadProtocol); } @Override - public Stop setUserIp(java.lang.String userIp) { - return (Stop) super.setUserIp(userIp); + public SetMinCpuPlatform setUserIp(java.lang.String userIp) { + return (SetMinCpuPlatform) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -86343,7 +85554,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Stop setProject(java.lang.String project) { + public SetMinCpuPlatform setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -86364,7 +85575,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public Stop setZone(java.lang.String zone) { + public SetMinCpuPlatform 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 " + @@ -86374,18 +85585,18 @@ public Stop setZone(java.lang.String zone) { return this; } - /** Name of the instance resource to stop. */ + /** Name of the instance scoping this request. */ @com.google.api.client.util.Key private java.lang.String instance; - /** Name of the instance resource to stop. + /** Name of the instance scoping this request. */ public java.lang.String getInstance() { return instance; } - /** Name of the instance resource to stop. */ - public Stop setInstance(java.lang.String instance) { + /** Name of the instance scoping this request. */ + public SetMinCpuPlatform 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 " + @@ -86395,48 +85606,6 @@ public Stop setInstance(java.lang.String instance) { return this; } - /** - * This property is required if the instance has any attached Local SSD disks. If false, Local - * SSD data will be preserved when the instance is suspended. If true, the contents of any - * attached Local SSD disks will be discarded. - */ - @com.google.api.client.util.Key - private java.lang.Boolean discardLocalSsd; - - /** This property is required if the instance has any attached Local SSD disks. If false, Local SSD - data will be preserved when the instance is suspended. If true, the contents of any attached Local - SSD disks will be discarded. - */ - public java.lang.Boolean getDiscardLocalSsd() { - return discardLocalSsd; - } - - /** - * This property is required if the instance has any attached Local SSD disks. If false, Local - * SSD data will be preserved when the instance is suspended. If true, the contents of any - * attached Local SSD disks will be discarded. - */ - public Stop setDiscardLocalSsd(java.lang.Boolean discardLocalSsd) { - this.discardLocalSsd = discardLocalSsd; - return this; - } - - /** If set to true, Graceful Shutdown is skipped. */ - @com.google.api.client.util.Key - private java.lang.Boolean noGracefulShutdown; - - /** If set to true, Graceful Shutdown is skipped. - */ - public java.lang.Boolean getNoGracefulShutdown() { - return noGracefulShutdown; - } - - /** If set to true, Graceful Shutdown is skipped. */ - public Stop setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { - this.noGracefulShutdown = noGracefulShutdown; - 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 @@ -86481,43 +85650,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 Stop setRequestId(java.lang.String requestId) { + public SetMinCpuPlatform setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Stop set(String parameterName, Object value) { - return (Stop) super.set(parameterName, value); + public SetMinCpuPlatform set(String parameterName, Object value) { + return (SetMinCpuPlatform) super.set(parameterName, value); } } /** - * This method suspends a running instance, saving its state to persistent storage, and allows you - * to resume the instance at a later time. Suspended instances have no compute costs (cores or RAM), - * and incur only storage charges for the saved VM memory and localSSD data. Any charged resources - * the virtual machine was using, such as persistent disks and static IP addresses, will continue to - * be charged while the instance is suspended. For more information, see Suspending and resuming an - * instance. + * Sets name of an instance. * - * Create a request for the method "instances.suspend". + * Create a request for the method "instances.setName". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Suspend#execute()} method to invoke the remote operation. + * parameters, call the {@link SetName#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 resource to suspend. + * @param instance The instance name for this request. + * @param content the {@link com.google.api.services.compute.model.InstancesSetNameRequest} * @return the request */ - public Suspend suspend(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - Suspend result = new Suspend(project, zone, instance); + public SetName setName(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetNameRequest content) throws java.io.IOException { + SetName result = new SetName(project, zone, instance, content); initialize(result); return result; } - public class Suspend extends ComputeRequest { + public class SetName extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/suspend"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setName"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -86529,28 +85694,24 @@ public class Suspend extends ComputeRequest + * parameters, call the {@link SetName#execute()} method to invoke the remote operation.

* {@link - * Suspend#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * SetName#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 resource to suspend. + * @param instance The instance name for this request. + * @param content the {@link com.google.api.services.compute.model.InstancesSetNameRequest} * @since 1.13 */ - protected Suspend(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 SetName(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetNameRequest 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(), @@ -86572,63 +85733,63 @@ protected Suspend(java.lang.String project, java.lang.String zone, java.lang.Str } @Override - public Suspend set$Xgafv(java.lang.String $Xgafv) { - return (Suspend) super.set$Xgafv($Xgafv); + public SetName set$Xgafv(java.lang.String $Xgafv) { + return (SetName) super.set$Xgafv($Xgafv); } @Override - public Suspend setAccessToken(java.lang.String accessToken) { - return (Suspend) super.setAccessToken(accessToken); + public SetName setAccessToken(java.lang.String accessToken) { + return (SetName) super.setAccessToken(accessToken); } @Override - public Suspend setAlt(java.lang.String alt) { - return (Suspend) super.setAlt(alt); + public SetName setAlt(java.lang.String alt) { + return (SetName) super.setAlt(alt); } @Override - public Suspend setCallback(java.lang.String callback) { - return (Suspend) super.setCallback(callback); + public SetName setCallback(java.lang.String callback) { + return (SetName) super.setCallback(callback); } @Override - public Suspend setFields(java.lang.String fields) { - return (Suspend) super.setFields(fields); + public SetName setFields(java.lang.String fields) { + return (SetName) super.setFields(fields); } @Override - public Suspend setKey(java.lang.String key) { - return (Suspend) super.setKey(key); + public SetName setKey(java.lang.String key) { + return (SetName) super.setKey(key); } @Override - public Suspend setOauthToken(java.lang.String oauthToken) { - return (Suspend) super.setOauthToken(oauthToken); + public SetName setOauthToken(java.lang.String oauthToken) { + return (SetName) super.setOauthToken(oauthToken); } @Override - public Suspend setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Suspend) super.setPrettyPrint(prettyPrint); + public SetName setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetName) super.setPrettyPrint(prettyPrint); } @Override - public Suspend setQuotaUser(java.lang.String quotaUser) { - return (Suspend) super.setQuotaUser(quotaUser); + public SetName setQuotaUser(java.lang.String quotaUser) { + return (SetName) super.setQuotaUser(quotaUser); } @Override - public Suspend setUploadType(java.lang.String uploadType) { - return (Suspend) super.setUploadType(uploadType); + public SetName setUploadType(java.lang.String uploadType) { + return (SetName) super.setUploadType(uploadType); } @Override - public Suspend setUploadProtocol(java.lang.String uploadProtocol) { - return (Suspend) super.setUploadProtocol(uploadProtocol); + public SetName setUploadProtocol(java.lang.String uploadProtocol) { + return (SetName) super.setUploadProtocol(uploadProtocol); } @Override - public Suspend setUserIp(java.lang.String userIp) { - return (Suspend) super.setUserIp(userIp); + public SetName setUserIp(java.lang.String userIp) { + return (SetName) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -86642,7 +85803,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Suspend setProject(java.lang.String project) { + public SetName setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -86663,7 +85824,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public Suspend setZone(java.lang.String zone) { + public SetName 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 " + @@ -86673,18 +85834,18 @@ public Suspend setZone(java.lang.String zone) { return this; } - /** Name of the instance resource to suspend. */ + /** The instance name for this request. */ @com.google.api.client.util.Key private java.lang.String instance; - /** Name of the instance resource to suspend. + /** The instance name for this request. */ public java.lang.String getInstance() { return instance; } - /** Name of the instance resource to suspend. */ - public Suspend setInstance(java.lang.String instance) { + /** The instance name for this request. */ + public SetName 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 " + @@ -86694,32 +85855,6 @@ public Suspend setInstance(java.lang.String instance) { return this; } - /** - * This property is required if the instance has any attached Local SSD disks. If false, Local - * SSD data will be preserved when the instance is suspended. If true, the contents of any - * attached Local SSD disks will be discarded. - */ - @com.google.api.client.util.Key - private java.lang.Boolean discardLocalSsd; - - /** This property is required if the instance has any attached Local SSD disks. If false, Local SSD - data will be preserved when the instance is suspended. If true, the contents of any attached Local - SSD disks will be discarded. - */ - public java.lang.Boolean getDiscardLocalSsd() { - return discardLocalSsd; - } - - /** - * This property is required if the instance has any attached Local SSD disks. If false, Local - * SSD data will be preserved when the instance is suspended. If true, the contents of any - * attached Local SSD disks will be discarded. - */ - public Suspend setDiscardLocalSsd(java.lang.Boolean discardLocalSsd) { - this.discardLocalSsd = discardLocalSsd; - 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 @@ -86764,39 +85899,42 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Suspend setRequestId(java.lang.String requestId) { + public SetName setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Suspend set(String parameterName, Object value) { - return (Suspend) super.set(parameterName, value); + public SetName set(String parameterName, Object value) { + return (SetName) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Sets an instance's scheduling options. You can only call this method on astopped instance, that + * is, a VM instance that is in a `TERMINATED` state. SeeInstance Life Cycle for more information on + * the possible instance states. For more information about setting scheduling options for a VM, + * seeSet VM host maintenance policy. * - * Create a request for the method "instances.testIamPermissions". + * Create a request for the method "instances.setScheduling". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link SetScheduling#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param instance Instance name for this request. + * @param content the {@link com.google.api.services.compute.model.Scheduling} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); + public SetScheduling setScheduling(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Scheduling content) throws java.io.IOException { + SetScheduling result = new SetScheduling(project, zone, instance, content); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class SetScheduling extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setScheduling"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -86804,28 +85942,31 @@ public class TestIamPermissions extends ComputeRequest {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

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

+ * {@link SetScheduling#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.TestPermissionsRequest} + * @param instance Instance name for this request. + * @param content the {@link com.google.api.services.compute.model.Scheduling} * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected SetScheduling(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Scheduling 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(), @@ -86838,72 +85979,72 @@ protected TestIamPermissions(java.lang.String project, java.lang.String zone, ja "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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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 TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public SetScheduling set$Xgafv(java.lang.String $Xgafv) { + return (SetScheduling) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public SetScheduling setAccessToken(java.lang.String accessToken) { + return (SetScheduling) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public SetScheduling setAlt(java.lang.String alt) { + return (SetScheduling) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public SetScheduling setCallback(java.lang.String callback) { + return (SetScheduling) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public SetScheduling setFields(java.lang.String fields) { + return (SetScheduling) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public SetScheduling setKey(java.lang.String key) { + return (SetScheduling) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public SetScheduling setOauthToken(java.lang.String oauthToken) { + return (SetScheduling) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public SetScheduling setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetScheduling) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public SetScheduling setQuotaUser(java.lang.String quotaUser) { + return (SetScheduling) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public SetScheduling setUploadType(java.lang.String uploadType) { + return (SetScheduling) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public SetScheduling setUploadProtocol(java.lang.String uploadProtocol) { + return (SetScheduling) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public SetScheduling setUserIp(java.lang.String userIp) { + return (SetScheduling) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -86917,7 +86058,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + public SetScheduling setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -86938,7 +86079,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public TestIamPermissions setZone(java.lang.String zone) { + public SetScheduling 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 " + @@ -86948,57 +86089,107 @@ public TestIamPermissions setZone(java.lang.String zone) { return this; } - /** Name or id of the resource for this request. */ + /** Instance name for this request. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String instance; - /** Name or id of the resource for this request. + /** Instance name for this request. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInstance() { + return instance; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Instance name for this request. */ + public SetScheduling setInstance(java.lang.String instance) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(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.resource = resource; + 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 SetScheduling setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public SetScheduling set(String parameterName, Object value) { + return (SetScheduling) super.set(parameterName, value); } } /** - * Updates an instance only if the necessary resources are available. This method can update only a - * specific set of instance properties. See Updating a running instance for a list of updatable - * instance properties. + * Sets the Google Cloud Armor security policy for the specified instance. For more information, + * seeGoogle Cloud Armor Overview * - * Create a request for the method "instances.update". + * Create a request for the method "instances.setSecurityPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link SetSecurityPolicy#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 resource to update. - * @param content the {@link com.google.api.services.compute.model.Instance} + * @param zone Name of the zone scoping this request. + * @param instance Name of the Instance resource to which the security policy should be + set. The name should conform to + * RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstancesSetSecurityPolicyRequest} * @return the request */ - public Update update(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Instance content) throws java.io.IOException { - Update result = new Update(project, zone, instance, content); + public SetSecurityPolicy setSecurityPolicy(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetSecurityPolicyRequest content) throws java.io.IOException { + SetSecurityPolicy result = new SetSecurityPolicy(project, zone, instance, content); initialize(result); return result; } - public class Update extends ComputeRequest { + public class SetSecurityPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setSecurityPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -87006,29 +86197,28 @@ public class Update extends ComputeRequest {@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

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

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

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance resource to update. - * @param content the {@link com.google.api.services.compute.model.Instance} + * @param zone Name of the zone scoping this request. + * @param instance Name of the Instance resource to which the security policy should be + set. The name should conform to + * RFC1035. + * @param content the {@link com.google.api.services.compute.model.InstancesSetSecurityPolicyRequest} * @since 1.13 */ - protected Update(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Instance content) { - super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected SetSecurityPolicy(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetSecurityPolicyRequest 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(), @@ -87042,71 +86232,66 @@ protected Update(java.lang.String project, java.lang.String zone, java.lang.Stri "[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 Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public SetSecurityPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetSecurityPolicy) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public SetSecurityPolicy setAccessToken(java.lang.String accessToken) { + return (SetSecurityPolicy) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public SetSecurityPolicy setAlt(java.lang.String alt) { + return (SetSecurityPolicy) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public SetSecurityPolicy setCallback(java.lang.String callback) { + return (SetSecurityPolicy) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public SetSecurityPolicy setFields(java.lang.String fields) { + return (SetSecurityPolicy) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public SetSecurityPolicy setKey(java.lang.String key) { + return (SetSecurityPolicy) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public SetSecurityPolicy setOauthToken(java.lang.String oauthToken) { + return (SetSecurityPolicy) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public SetSecurityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetSecurityPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public SetSecurityPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetSecurityPolicy) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public SetSecurityPolicy setUploadType(java.lang.String uploadType) { + return (SetSecurityPolicy) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public SetSecurityPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetSecurityPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public SetSecurityPolicy setUserIp(java.lang.String userIp) { + return (SetSecurityPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -87120,7 +86305,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + public SetSecurityPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -87130,18 +86315,18 @@ public Update setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the zone scoping this request. */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of the zone for this request. + /** Name of the zone scoping this request. */ public java.lang.String getZone() { return zone; } - /** The name of the zone for this request. */ - public Update setZone(java.lang.String zone) { + /** Name of the zone scoping this request. */ + public SetSecurityPolicy 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 " + @@ -87151,124 +86336,26 @@ public Update setZone(java.lang.String zone) { return this; } - /** Name of the instance resource to update. */ + /** + * Name of the Instance resource to which the security policy should be set. The name should + * conform to RFC1035. + */ @com.google.api.client.util.Key private java.lang.String instance; - /** Name of the instance resource to update. + /** Name of the Instance resource to which the security policy should be set. The name should conform + to RFC1035. */ public java.lang.String getInstance() { return instance; } - /** Name of the instance resource to update. */ - public Update 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; - } - - /** - * Whether to clear secure tags from the instance. - * - * This property if set to true will clear secure tags regardless of theresource.secure_tags. - */ - @com.google.api.client.util.Key - private java.lang.Boolean clearSecureTag; - - /** Whether to clear secure tags from the instance. - - This property if set to true will clear secure tags regardless of theresource.secure_tags. - */ - public java.lang.Boolean getClearSecureTag() { - return clearSecureTag; - } - - /** - * Whether to clear secure tags from the instance. - * - * This property if set to true will clear secure tags regardless of theresource.secure_tags. - */ - public Update setClearSecureTag(java.lang.Boolean clearSecureTag) { - this.clearSecureTag = clearSecureTag; - return this; - } - - /** - * Whether to discard local SSDs from the instance during restart default value is false. - */ - @com.google.api.client.util.Key - private java.lang.Boolean discardLocalSsd; - - /** Whether to discard local SSDs from the instance during restart default value is false. - */ - public java.lang.Boolean getDiscardLocalSsd() { - return discardLocalSsd; - } - - /** - * Whether to discard local SSDs from the instance during restart default value is false. - */ - public Update setDiscardLocalSsd(java.lang.Boolean discardLocalSsd) { - this.discardLocalSsd = discardLocalSsd; - return this; - } - - /** - * Specifies the action to take when updating an instance even if the updated properties do - * not require it. If not specified, then Compute Engine acts based on the minimum action that - * the updated properties require. - */ - @com.google.api.client.util.Key - private java.lang.String minimalAction; - - /** Specifies the action to take when updating an instance even if the updated properties do not - require it. If not specified, then Compute Engine acts based on the minimum action that the updated - properties require. - */ - public java.lang.String getMinimalAction() { - return minimalAction; - } - - /** - * Specifies the action to take when updating an instance even if the updated properties do - * not require it. If not specified, then Compute Engine acts based on the minimum action that - * the updated properties require. - */ - public Update setMinimalAction(java.lang.String minimalAction) { - this.minimalAction = minimalAction; - return this; - } - - /** - * Specifies the most disruptive action that can be taken on the instance as part of the - * update. Compute Engine returns an error if the instance properties require a more - * disruptive action as part of the instance update. Valid options from lowest to highest are - * NO_EFFECT, REFRESH, and RESTART. - */ - @com.google.api.client.util.Key - private java.lang.String mostDisruptiveAllowedAction; - - /** Specifies the most disruptive action that can be taken on the instance as part of the update. - Compute Engine returns an error if the instance properties require a more disruptive action as part - of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART. - */ - public java.lang.String getMostDisruptiveAllowedAction() { - return mostDisruptiveAllowedAction; - } - /** - * Specifies the most disruptive action that can be taken on the instance as part of the - * update. Compute Engine returns an error if the instance properties require a more - * disruptive action as part of the instance update. Valid options from lowest to highest are - * NO_EFFECT, REFRESH, and RESTART. + * Name of the Instance resource to which the security policy should be set. The name should + * conform to RFC1035. */ - public Update setMostDisruptiveAllowedAction(java.lang.String mostDisruptiveAllowedAction) { - this.mostDisruptiveAllowedAction = mostDisruptiveAllowedAction; + public SetSecurityPolicy setInstance(java.lang.String instance) { + this.instance = instance; return this; } @@ -87316,42 +86403,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 Update setRequestId(java.lang.String requestId) { + public SetSecurityPolicy setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public SetSecurityPolicy set(String parameterName, Object value) { + return (SetSecurityPolicy) super.set(parameterName, value); } } /** - * Updates the specified access config from an instance's network interface with the data included - * in the request. This method supportsPATCH semantics and uses theJSON merge patch format and - * processing rules. + * Sets the service account on the instance. For more information, readChanging the service account + * and access scopes for an instance. * - * Create a request for the method "instances.updateAccessConfig". + * Create a request for the method "instances.setServiceAccount". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link UpdateAccessConfig#execute()} method to invoke the remote operation. + * parameters, call the {@link SetServiceAccount#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 networkInterface The name of the network interface where the access config is attached. - * @param content the {@link com.google.api.services.compute.model.AccessConfig} + * @param instance Name of the instance resource to start. + * @param content the {@link com.google.api.services.compute.model.InstancesSetServiceAccountRequest} * @return the request */ - public UpdateAccessConfig updateAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.model.AccessConfig content) throws java.io.IOException { - UpdateAccessConfig result = new UpdateAccessConfig(project, zone, instance, networkInterface, content); + public SetServiceAccount setServiceAccount(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetServiceAccountRequest content) throws java.io.IOException { + SetServiceAccount result = new SetServiceAccount(project, zone, instance, content); initialize(result); return result; } - public class UpdateAccessConfig extends ComputeRequest { + public class SetServiceAccount extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -87363,26 +86448,24 @@ public class UpdateAccessConfig extends ComputeRequest {@link UpdateAccessConfig#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

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

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param instance The instance name for this request. - * @param networkInterface The name of the network interface where the access config is attached. - * @param content the {@link com.google.api.services.compute.model.AccessConfig} + * @param instance Name of the instance resource to start. + * @param content the {@link com.google.api.services.compute.model.InstancesSetServiceAccountRequest} * @since 1.13 */ - protected UpdateAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.model.AccessConfig content) { + protected SetServiceAccount(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesSetServiceAccountRequest 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()) { @@ -87402,67 +86485,66 @@ protected UpdateAccessConfig(java.lang.String project, java.lang.String zone, ja "Parameter instance must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.networkInterface = com.google.api.client.util.Preconditions.checkNotNull(networkInterface, "Required parameter networkInterface must be specified."); } @Override - public UpdateAccessConfig set$Xgafv(java.lang.String $Xgafv) { - return (UpdateAccessConfig) super.set$Xgafv($Xgafv); + public SetServiceAccount set$Xgafv(java.lang.String $Xgafv) { + return (SetServiceAccount) super.set$Xgafv($Xgafv); } @Override - public UpdateAccessConfig setAccessToken(java.lang.String accessToken) { - return (UpdateAccessConfig) super.setAccessToken(accessToken); + public SetServiceAccount setAccessToken(java.lang.String accessToken) { + return (SetServiceAccount) super.setAccessToken(accessToken); } @Override - public UpdateAccessConfig setAlt(java.lang.String alt) { - return (UpdateAccessConfig) super.setAlt(alt); + public SetServiceAccount setAlt(java.lang.String alt) { + return (SetServiceAccount) super.setAlt(alt); } @Override - public UpdateAccessConfig setCallback(java.lang.String callback) { - return (UpdateAccessConfig) super.setCallback(callback); + public SetServiceAccount setCallback(java.lang.String callback) { + return (SetServiceAccount) super.setCallback(callback); } @Override - public UpdateAccessConfig setFields(java.lang.String fields) { - return (UpdateAccessConfig) super.setFields(fields); + public SetServiceAccount setFields(java.lang.String fields) { + return (SetServiceAccount) super.setFields(fields); } @Override - public UpdateAccessConfig setKey(java.lang.String key) { - return (UpdateAccessConfig) super.setKey(key); + public SetServiceAccount setKey(java.lang.String key) { + return (SetServiceAccount) super.setKey(key); } @Override - public UpdateAccessConfig setOauthToken(java.lang.String oauthToken) { - return (UpdateAccessConfig) super.setOauthToken(oauthToken); + public SetServiceAccount setOauthToken(java.lang.String oauthToken) { + return (SetServiceAccount) super.setOauthToken(oauthToken); } @Override - public UpdateAccessConfig setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdateAccessConfig) super.setPrettyPrint(prettyPrint); + public SetServiceAccount setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetServiceAccount) super.setPrettyPrint(prettyPrint); } @Override - public UpdateAccessConfig setQuotaUser(java.lang.String quotaUser) { - return (UpdateAccessConfig) super.setQuotaUser(quotaUser); + public SetServiceAccount setQuotaUser(java.lang.String quotaUser) { + return (SetServiceAccount) super.setQuotaUser(quotaUser); } @Override - public UpdateAccessConfig setUploadType(java.lang.String uploadType) { - return (UpdateAccessConfig) super.setUploadType(uploadType); + public SetServiceAccount setUploadType(java.lang.String uploadType) { + return (SetServiceAccount) super.setUploadType(uploadType); } @Override - public UpdateAccessConfig setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdateAccessConfig) super.setUploadProtocol(uploadProtocol); + public SetServiceAccount setUploadProtocol(java.lang.String uploadProtocol) { + return (SetServiceAccount) super.setUploadProtocol(uploadProtocol); } @Override - public UpdateAccessConfig setUserIp(java.lang.String userIp) { - return (UpdateAccessConfig) super.setUserIp(userIp); + public SetServiceAccount setUserIp(java.lang.String userIp) { + return (SetServiceAccount) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -87476,7 +86558,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public UpdateAccessConfig setProject(java.lang.String project) { + public SetServiceAccount setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -87497,7 +86579,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public UpdateAccessConfig setZone(java.lang.String zone) { + public SetServiceAccount 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 " + @@ -87507,18 +86589,18 @@ public UpdateAccessConfig setZone(java.lang.String zone) { return this; } - /** The instance name for this request. */ + /** Name of the instance resource to start. */ @com.google.api.client.util.Key private java.lang.String instance; - /** The instance name for this request. + /** Name of the instance resource to start. */ public java.lang.String getInstance() { return instance; } - /** The instance name for this request. */ - public UpdateAccessConfig setInstance(java.lang.String instance) { + /** Name of the instance resource to start. */ + public SetServiceAccount 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 " + @@ -87528,22 +86610,6 @@ public UpdateAccessConfig setInstance(java.lang.String instance) { return this; } - /** The name of the network interface where the access config is attached. */ - @com.google.api.client.util.Key - private java.lang.String networkInterface; - - /** The name of the network interface where the access config is attached. - */ - public java.lang.String getNetworkInterface() { - return networkInterface; - } - - /** The name of the network interface where the access config is attached. */ - public UpdateAccessConfig setNetworkInterface(java.lang.String networkInterface) { - this.networkInterface = networkInterface; - 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 @@ -87588,41 +86654,42 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public UpdateAccessConfig setRequestId(java.lang.String requestId) { + public SetServiceAccount setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public UpdateAccessConfig set(String parameterName, Object value) { - return (UpdateAccessConfig) super.set(parameterName, value); + public SetServiceAccount set(String parameterName, Object value) { + return (SetServiceAccount) super.set(parameterName, value); } } /** - * Updates the Display config for a VM instance. You can only use this method on a stopped VM - * instance. This method supportsPATCH semantics and uses theJSON merge patch format and processing - * rules. + * Sets the Shielded Instance integrity policy for an instance. You can only use this method on a + * running instance. This method supports PATCH semantics and uses the JSON merge patch format and + * processing rules. * - * Create a request for the method "instances.updateDisplayDevice". + * Create a request for the method "instances.setShieldedInstanceIntegrityPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link UpdateDisplayDevice#execute()} method to invoke the remote operation. + * parameters, call the {@link SetShieldedInstanceIntegrityPolicy#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.DisplayDevice} + * @param instance Name or id of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.ShieldedInstanceIntegrityPolicy} * @return the request */ - public UpdateDisplayDevice updateDisplayDevice(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.DisplayDevice content) throws java.io.IOException { - UpdateDisplayDevice result = new UpdateDisplayDevice(project, zone, instance, content); + public SetShieldedInstanceIntegrityPolicy setShieldedInstanceIntegrityPolicy(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.ShieldedInstanceIntegrityPolicy content) throws java.io.IOException { + SetShieldedInstanceIntegrityPolicy result = new SetShieldedInstanceIntegrityPolicy(project, zone, instance, content); initialize(result); return result; } - public class UpdateDisplayDevice extends ComputeRequest { + public class SetShieldedInstanceIntegrityPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -87631,28 +86698,28 @@ public class UpdateDisplayDevice extends ComputeRequest {@link UpdateDisplayDevice#initialize(com.google.api.client.googleapis.services. - * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

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

{@link SetShieldedInstanceIntegrityPolicy#initialize(com.google.api.clien + * t.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.DisplayDevice} + * @param instance Name or id of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.ShieldedInstanceIntegrityPolicy} * @since 1.13 */ - protected UpdateDisplayDevice(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.DisplayDevice content) { + protected SetShieldedInstanceIntegrityPolicy(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.ShieldedInstanceIntegrityPolicy 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()) { @@ -87670,68 +86737,68 @@ protected UpdateDisplayDevice(java.lang.String project, java.lang.String zone, j 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])?"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public UpdateDisplayDevice set$Xgafv(java.lang.String $Xgafv) { - return (UpdateDisplayDevice) super.set$Xgafv($Xgafv); + public SetShieldedInstanceIntegrityPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetShieldedInstanceIntegrityPolicy) super.set$Xgafv($Xgafv); } @Override - public UpdateDisplayDevice setAccessToken(java.lang.String accessToken) { - return (UpdateDisplayDevice) super.setAccessToken(accessToken); + public SetShieldedInstanceIntegrityPolicy setAccessToken(java.lang.String accessToken) { + return (SetShieldedInstanceIntegrityPolicy) super.setAccessToken(accessToken); } @Override - public UpdateDisplayDevice setAlt(java.lang.String alt) { - return (UpdateDisplayDevice) super.setAlt(alt); + public SetShieldedInstanceIntegrityPolicy setAlt(java.lang.String alt) { + return (SetShieldedInstanceIntegrityPolicy) super.setAlt(alt); } @Override - public UpdateDisplayDevice setCallback(java.lang.String callback) { - return (UpdateDisplayDevice) super.setCallback(callback); + public SetShieldedInstanceIntegrityPolicy setCallback(java.lang.String callback) { + return (SetShieldedInstanceIntegrityPolicy) super.setCallback(callback); } @Override - public UpdateDisplayDevice setFields(java.lang.String fields) { - return (UpdateDisplayDevice) super.setFields(fields); + public SetShieldedInstanceIntegrityPolicy setFields(java.lang.String fields) { + return (SetShieldedInstanceIntegrityPolicy) super.setFields(fields); } @Override - public UpdateDisplayDevice setKey(java.lang.String key) { - return (UpdateDisplayDevice) super.setKey(key); + public SetShieldedInstanceIntegrityPolicy setKey(java.lang.String key) { + return (SetShieldedInstanceIntegrityPolicy) super.setKey(key); } @Override - public UpdateDisplayDevice setOauthToken(java.lang.String oauthToken) { - return (UpdateDisplayDevice) super.setOauthToken(oauthToken); + public SetShieldedInstanceIntegrityPolicy setOauthToken(java.lang.String oauthToken) { + return (SetShieldedInstanceIntegrityPolicy) super.setOauthToken(oauthToken); } @Override - public UpdateDisplayDevice setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdateDisplayDevice) super.setPrettyPrint(prettyPrint); + public SetShieldedInstanceIntegrityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetShieldedInstanceIntegrityPolicy) super.setPrettyPrint(prettyPrint); } @Override - public UpdateDisplayDevice setQuotaUser(java.lang.String quotaUser) { - return (UpdateDisplayDevice) super.setQuotaUser(quotaUser); + public SetShieldedInstanceIntegrityPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetShieldedInstanceIntegrityPolicy) super.setQuotaUser(quotaUser); } @Override - public UpdateDisplayDevice setUploadType(java.lang.String uploadType) { - return (UpdateDisplayDevice) super.setUploadType(uploadType); + public SetShieldedInstanceIntegrityPolicy setUploadType(java.lang.String uploadType) { + return (SetShieldedInstanceIntegrityPolicy) super.setUploadType(uploadType); } @Override - public UpdateDisplayDevice setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdateDisplayDevice) super.setUploadProtocol(uploadProtocol); + public SetShieldedInstanceIntegrityPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetShieldedInstanceIntegrityPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public UpdateDisplayDevice setUserIp(java.lang.String userIp) { - return (UpdateDisplayDevice) super.setUserIp(userIp); + public SetShieldedInstanceIntegrityPolicy setUserIp(java.lang.String userIp) { + return (SetShieldedInstanceIntegrityPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -87745,7 +86812,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public UpdateDisplayDevice setProject(java.lang.String project) { + public SetShieldedInstanceIntegrityPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -87766,7 +86833,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public UpdateDisplayDevice setZone(java.lang.String zone) { + public SetShieldedInstanceIntegrityPolicy 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 " + @@ -87776,22 +86843,22 @@ public UpdateDisplayDevice setZone(java.lang.String zone) { return this; } - /** Name of the instance scoping this request. */ + /** Name or id of the instance scoping this request. */ @com.google.api.client.util.Key private java.lang.String instance; - /** Name of the instance scoping this request. + /** Name or id of the instance scoping this request. */ public java.lang.String getInstance() { return instance; } - /** Name of the instance scoping this request. */ - public UpdateDisplayDevice setInstance(java.lang.String instance) { + /** Name or id of the instance scoping this request. */ + public SetShieldedInstanceIntegrityPolicy 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])?"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.instance = instance; return this; @@ -87841,44 +86908,42 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public UpdateDisplayDevice setRequestId(java.lang.String requestId) { + public SetShieldedInstanceIntegrityPolicy setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public UpdateDisplayDevice set(String parameterName, Object value) { - return (UpdateDisplayDevice) super.set(parameterName, value); + public SetShieldedInstanceIntegrityPolicy set(String parameterName, Object value) { + return (SetShieldedInstanceIntegrityPolicy) super.set(parameterName, value); } } /** - * Updates an instance's network interface. This method can only update an interface's alias IP - * range and attached network. See Modifying alias IP ranges for an existing instance for - * instructions on changing alias IP ranges. See Migrating a VM between networks for instructions on - * migrating an interface. This method follows PATCH semantics. + * Sets the Shielded VM integrity policy for a VM instance. You can only use this method on a + * running VM instance. This method supports PATCH semantics and uses the JSON merge patch format + * and processing rules. * - * Create a request for the method "instances.updateNetworkInterface". + * Create a request for the method "instances.setShieldedVmIntegrityPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link UpdateNetworkInterface#execute()} method to invoke the remote + * parameters, call the {@link SetShieldedVmIntegrityPolicy#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 networkInterface The name of the network interface to update. - * @param content the {@link com.google.api.services.compute.model.NetworkInterface} + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.ShieldedVmIntegrityPolicy} * @return the request */ - public UpdateNetworkInterface updateNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.model.NetworkInterface content) throws java.io.IOException { - UpdateNetworkInterface result = new UpdateNetworkInterface(project, zone, instance, networkInterface, content); + public SetShieldedVmIntegrityPolicy setShieldedVmIntegrityPolicy(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.ShieldedVmIntegrityPolicy content) throws java.io.IOException { + SetShieldedVmIntegrityPolicy result = new SetShieldedVmIntegrityPolicy(project, zone, instance, content); initialize(result); return result; } - public class UpdateNetworkInterface extends ComputeRequest { + public class SetShieldedVmIntegrityPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -87890,27 +86955,25 @@ public class UpdateNetworkInterface extends ComputeRequest {@link UpdateNetworkInterface#initialize(com.google.api.client.googleapis.servic - * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

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

{@link SetShieldedVmIntegrityPolicy#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 The instance name for this request. - * @param networkInterface The name of the network interface to update. - * @param content the {@link com.google.api.services.compute.model.NetworkInterface} + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.ShieldedVmIntegrityPolicy} * @since 1.13 */ - protected UpdateNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.model.NetworkInterface content) { + protected SetShieldedVmIntegrityPolicy(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.ShieldedVmIntegrityPolicy 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()) { @@ -87930,67 +86993,66 @@ protected UpdateNetworkInterface(java.lang.String project, java.lang.String zone "Parameter instance must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.networkInterface = com.google.api.client.util.Preconditions.checkNotNull(networkInterface, "Required parameter networkInterface must be specified."); } @Override - public UpdateNetworkInterface set$Xgafv(java.lang.String $Xgafv) { - return (UpdateNetworkInterface) super.set$Xgafv($Xgafv); + public SetShieldedVmIntegrityPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetShieldedVmIntegrityPolicy) super.set$Xgafv($Xgafv); } @Override - public UpdateNetworkInterface setAccessToken(java.lang.String accessToken) { - return (UpdateNetworkInterface) super.setAccessToken(accessToken); + public SetShieldedVmIntegrityPolicy setAccessToken(java.lang.String accessToken) { + return (SetShieldedVmIntegrityPolicy) super.setAccessToken(accessToken); } @Override - public UpdateNetworkInterface setAlt(java.lang.String alt) { - return (UpdateNetworkInterface) super.setAlt(alt); + public SetShieldedVmIntegrityPolicy setAlt(java.lang.String alt) { + return (SetShieldedVmIntegrityPolicy) super.setAlt(alt); } @Override - public UpdateNetworkInterface setCallback(java.lang.String callback) { - return (UpdateNetworkInterface) super.setCallback(callback); + public SetShieldedVmIntegrityPolicy setCallback(java.lang.String callback) { + return (SetShieldedVmIntegrityPolicy) super.setCallback(callback); } @Override - public UpdateNetworkInterface setFields(java.lang.String fields) { - return (UpdateNetworkInterface) super.setFields(fields); + public SetShieldedVmIntegrityPolicy setFields(java.lang.String fields) { + return (SetShieldedVmIntegrityPolicy) super.setFields(fields); } @Override - public UpdateNetworkInterface setKey(java.lang.String key) { - return (UpdateNetworkInterface) super.setKey(key); + public SetShieldedVmIntegrityPolicy setKey(java.lang.String key) { + return (SetShieldedVmIntegrityPolicy) super.setKey(key); } @Override - public UpdateNetworkInterface setOauthToken(java.lang.String oauthToken) { - return (UpdateNetworkInterface) super.setOauthToken(oauthToken); + public SetShieldedVmIntegrityPolicy setOauthToken(java.lang.String oauthToken) { + return (SetShieldedVmIntegrityPolicy) super.setOauthToken(oauthToken); } @Override - public UpdateNetworkInterface setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdateNetworkInterface) super.setPrettyPrint(prettyPrint); + public SetShieldedVmIntegrityPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetShieldedVmIntegrityPolicy) super.setPrettyPrint(prettyPrint); } @Override - public UpdateNetworkInterface setQuotaUser(java.lang.String quotaUser) { - return (UpdateNetworkInterface) super.setQuotaUser(quotaUser); + public SetShieldedVmIntegrityPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetShieldedVmIntegrityPolicy) super.setQuotaUser(quotaUser); } @Override - public UpdateNetworkInterface setUploadType(java.lang.String uploadType) { - return (UpdateNetworkInterface) super.setUploadType(uploadType); + public SetShieldedVmIntegrityPolicy setUploadType(java.lang.String uploadType) { + return (SetShieldedVmIntegrityPolicy) super.setUploadType(uploadType); } @Override - public UpdateNetworkInterface setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdateNetworkInterface) super.setUploadProtocol(uploadProtocol); + public SetShieldedVmIntegrityPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetShieldedVmIntegrityPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public UpdateNetworkInterface setUserIp(java.lang.String userIp) { - return (UpdateNetworkInterface) super.setUserIp(userIp); + public SetShieldedVmIntegrityPolicy setUserIp(java.lang.String userIp) { + return (SetShieldedVmIntegrityPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -88004,7 +87066,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public UpdateNetworkInterface setProject(java.lang.String project) { + public SetShieldedVmIntegrityPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -88025,7 +87087,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public UpdateNetworkInterface setZone(java.lang.String zone) { + public SetShieldedVmIntegrityPolicy 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 " + @@ -88035,18 +87097,18 @@ public UpdateNetworkInterface 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 UpdateNetworkInterface setInstance(java.lang.String instance) { + /** Name of the instance scoping this request. */ + public SetShieldedVmIntegrityPolicy 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 " + @@ -88056,22 +87118,6 @@ public UpdateNetworkInterface setInstance(java.lang.String instance) { return this; } - /** The name of the network interface to update. */ - @com.google.api.client.util.Key - private java.lang.String networkInterface; - - /** The name of the network interface to update. - */ - public java.lang.String getNetworkInterface() { - return networkInterface; - } - - /** The name of the network interface to update. */ - public UpdateNetworkInterface setNetworkInterface(java.lang.String networkInterface) { - this.networkInterface = networkInterface; - 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 @@ -88116,42 +87162,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 UpdateNetworkInterface setRequestId(java.lang.String requestId) { + public SetShieldedVmIntegrityPolicy setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public UpdateNetworkInterface set(String parameterName, Object value) { - return (UpdateNetworkInterface) super.set(parameterName, value); + public SetShieldedVmIntegrityPolicy set(String parameterName, Object value) { + return (SetShieldedVmIntegrityPolicy) super.set(parameterName, value); } } /** - * Updates the Shielded Instance config for an instance. You can only use this method on a stopped - * instance. This method supportsPATCH semantics and uses theJSON merge patch format and processing - * rules. + * Sets network tags for the specified instance to the data included in the request. * - * Create a request for the method "instances.updateShieldedInstanceConfig". + * Create a request for the method "instances.setTags". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link UpdateShieldedInstanceConfig#execute()} method to invoke the remote - * operation. + * parameters, call the {@link SetTags#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 or id of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.model.ShieldedInstanceConfig} + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.Tags} * @return the request */ - public UpdateShieldedInstanceConfig updateShieldedInstanceConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.ShieldedInstanceConfig content) throws java.io.IOException { - UpdateShieldedInstanceConfig result = new UpdateShieldedInstanceConfig(project, zone, instance, content); + public SetTags setTags(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Tags content) throws java.io.IOException { + SetTags result = new SetTags(project, zone, instance, content); initialize(result); return result; } - public class UpdateShieldedInstanceConfig extends ComputeRequest { + public class SetTags extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/setTags"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -88163,26 +87206,24 @@ public class UpdateShieldedInstanceConfig extends ComputeRequest {@link UpdateShieldedInstanceConfig#initialize(com.google.api.client.googleapis. - * services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.

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

+ * {@link + * SetTags#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 or id of the instance scoping this request. - * @param content the {@link com.google.api.services.compute.model.ShieldedInstanceConfig} + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.Tags} * @since 1.13 */ - protected UpdateShieldedInstanceConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.ShieldedInstanceConfig content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected SetTags(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Tags 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(), @@ -88204,63 +87245,63 @@ protected UpdateShieldedInstanceConfig(java.lang.String project, java.lang.Strin } @Override - public UpdateShieldedInstanceConfig set$Xgafv(java.lang.String $Xgafv) { - return (UpdateShieldedInstanceConfig) super.set$Xgafv($Xgafv); + public SetTags set$Xgafv(java.lang.String $Xgafv) { + return (SetTags) super.set$Xgafv($Xgafv); } @Override - public UpdateShieldedInstanceConfig setAccessToken(java.lang.String accessToken) { - return (UpdateShieldedInstanceConfig) super.setAccessToken(accessToken); + public SetTags setAccessToken(java.lang.String accessToken) { + return (SetTags) super.setAccessToken(accessToken); } @Override - public UpdateShieldedInstanceConfig setAlt(java.lang.String alt) { - return (UpdateShieldedInstanceConfig) super.setAlt(alt); + public SetTags setAlt(java.lang.String alt) { + return (SetTags) super.setAlt(alt); } @Override - public UpdateShieldedInstanceConfig setCallback(java.lang.String callback) { - return (UpdateShieldedInstanceConfig) super.setCallback(callback); + public SetTags setCallback(java.lang.String callback) { + return (SetTags) super.setCallback(callback); } @Override - public UpdateShieldedInstanceConfig setFields(java.lang.String fields) { - return (UpdateShieldedInstanceConfig) super.setFields(fields); + public SetTags setFields(java.lang.String fields) { + return (SetTags) super.setFields(fields); } @Override - public UpdateShieldedInstanceConfig setKey(java.lang.String key) { - return (UpdateShieldedInstanceConfig) super.setKey(key); + public SetTags setKey(java.lang.String key) { + return (SetTags) super.setKey(key); } @Override - public UpdateShieldedInstanceConfig setOauthToken(java.lang.String oauthToken) { - return (UpdateShieldedInstanceConfig) super.setOauthToken(oauthToken); + public SetTags setOauthToken(java.lang.String oauthToken) { + return (SetTags) super.setOauthToken(oauthToken); } @Override - public UpdateShieldedInstanceConfig setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdateShieldedInstanceConfig) super.setPrettyPrint(prettyPrint); + public SetTags setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetTags) super.setPrettyPrint(prettyPrint); } @Override - public UpdateShieldedInstanceConfig setQuotaUser(java.lang.String quotaUser) { - return (UpdateShieldedInstanceConfig) super.setQuotaUser(quotaUser); + public SetTags setQuotaUser(java.lang.String quotaUser) { + return (SetTags) super.setQuotaUser(quotaUser); } @Override - public UpdateShieldedInstanceConfig setUploadType(java.lang.String uploadType) { - return (UpdateShieldedInstanceConfig) super.setUploadType(uploadType); + public SetTags setUploadType(java.lang.String uploadType) { + return (SetTags) super.setUploadType(uploadType); } @Override - public UpdateShieldedInstanceConfig setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdateShieldedInstanceConfig) super.setUploadProtocol(uploadProtocol); + public SetTags setUploadProtocol(java.lang.String uploadProtocol) { + return (SetTags) super.setUploadProtocol(uploadProtocol); } @Override - public UpdateShieldedInstanceConfig setUserIp(java.lang.String userIp) { - return (UpdateShieldedInstanceConfig) super.setUserIp(userIp); + public SetTags setUserIp(java.lang.String userIp) { + return (SetTags) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -88274,7 +87315,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public UpdateShieldedInstanceConfig setProject(java.lang.String project) { + public SetTags setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -88295,7 +87336,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public UpdateShieldedInstanceConfig setZone(java.lang.String zone) { + public SetTags 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 " + @@ -88305,18 +87346,18 @@ public UpdateShieldedInstanceConfig setZone(java.lang.String zone) { return this; } - /** Name or id of the instance scoping this request. */ + /** Name of the instance scoping this request. */ @com.google.api.client.util.Key private java.lang.String instance; - /** Name or id of the instance scoping this request. + /** Name of the instance scoping this request. */ public java.lang.String getInstance() { return instance; } - /** Name or id of the instance scoping this request. */ - public UpdateShieldedInstanceConfig setInstance(java.lang.String instance) { + /** Name of the instance scoping this request. */ + public SetTags 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 " + @@ -88370,42 +87411,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 UpdateShieldedInstanceConfig setRequestId(java.lang.String requestId) { + public SetTags setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public UpdateShieldedInstanceConfig set(String parameterName, Object value) { - return (UpdateShieldedInstanceConfig) super.set(parameterName, value); + public SetTags set(String parameterName, Object value) { + return (SetTags) super.set(parameterName, value); } } /** - * Updates the Shielded VM config for a VM instance. You can only use this method on a stopped VM - * instance. This method supportsPATCH semantics and uses theJSON merge patch format and processing - * rules. + * Simulates a host maintenance event on a VM. For more information, see Simulate a host maintenance + * event. * - * Create a request for the method "instances.updateShieldedVmConfig". + * Create a request for the method "instances.simulateMaintenanceEvent". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link UpdateShieldedVmConfig#execute()} method to invoke the remote + * parameters, call the {@link SimulateMaintenanceEvent#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.ShieldedVmConfig} * @return the request */ - public UpdateShieldedVmConfig updateShieldedVmConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.ShieldedVmConfig content) throws java.io.IOException { - UpdateShieldedVmConfig result = new UpdateShieldedVmConfig(project, zone, instance, content); + public SimulateMaintenanceEvent simulateMaintenanceEvent(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + SimulateMaintenanceEvent result = new SimulateMaintenanceEvent(project, zone, instance); initialize(result); return result; } - public class UpdateShieldedVmConfig extends ComputeRequest { + public class SimulateMaintenanceEvent extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/updateShieldedVmConfig"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -88417,26 +87456,24 @@ public class UpdateShieldedVmConfig extends ComputeRequest {@link UpdateShieldedVmConfig#initialize(com.google.api.client.googleapis.servic - * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * parameters, call the {@link SimulateMaintenanceEvent#execute()} method to invoke the remote + * operation.

{@link SimulateMaintenanceEvent#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 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.ShieldedVmConfig} * @since 1.13 */ - protected UpdateShieldedVmConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.ShieldedVmConfig content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected SimulateMaintenanceEvent(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(), @@ -88458,63 +87495,63 @@ protected UpdateShieldedVmConfig(java.lang.String project, java.lang.String zone } @Override - public UpdateShieldedVmConfig set$Xgafv(java.lang.String $Xgafv) { - return (UpdateShieldedVmConfig) super.set$Xgafv($Xgafv); + public SimulateMaintenanceEvent set$Xgafv(java.lang.String $Xgafv) { + return (SimulateMaintenanceEvent) super.set$Xgafv($Xgafv); } @Override - public UpdateShieldedVmConfig setAccessToken(java.lang.String accessToken) { - return (UpdateShieldedVmConfig) super.setAccessToken(accessToken); + public SimulateMaintenanceEvent setAccessToken(java.lang.String accessToken) { + return (SimulateMaintenanceEvent) super.setAccessToken(accessToken); } @Override - public UpdateShieldedVmConfig setAlt(java.lang.String alt) { - return (UpdateShieldedVmConfig) super.setAlt(alt); + public SimulateMaintenanceEvent setAlt(java.lang.String alt) { + return (SimulateMaintenanceEvent) super.setAlt(alt); } @Override - public UpdateShieldedVmConfig setCallback(java.lang.String callback) { - return (UpdateShieldedVmConfig) super.setCallback(callback); + public SimulateMaintenanceEvent setCallback(java.lang.String callback) { + return (SimulateMaintenanceEvent) super.setCallback(callback); } @Override - public UpdateShieldedVmConfig setFields(java.lang.String fields) { - return (UpdateShieldedVmConfig) super.setFields(fields); + public SimulateMaintenanceEvent setFields(java.lang.String fields) { + return (SimulateMaintenanceEvent) super.setFields(fields); } @Override - public UpdateShieldedVmConfig setKey(java.lang.String key) { - return (UpdateShieldedVmConfig) super.setKey(key); + public SimulateMaintenanceEvent setKey(java.lang.String key) { + return (SimulateMaintenanceEvent) super.setKey(key); } @Override - public UpdateShieldedVmConfig setOauthToken(java.lang.String oauthToken) { - return (UpdateShieldedVmConfig) super.setOauthToken(oauthToken); + public SimulateMaintenanceEvent setOauthToken(java.lang.String oauthToken) { + return (SimulateMaintenanceEvent) super.setOauthToken(oauthToken); } @Override - public UpdateShieldedVmConfig setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdateShieldedVmConfig) super.setPrettyPrint(prettyPrint); + public SimulateMaintenanceEvent setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SimulateMaintenanceEvent) super.setPrettyPrint(prettyPrint); } @Override - public UpdateShieldedVmConfig setQuotaUser(java.lang.String quotaUser) { - return (UpdateShieldedVmConfig) super.setQuotaUser(quotaUser); + public SimulateMaintenanceEvent setQuotaUser(java.lang.String quotaUser) { + return (SimulateMaintenanceEvent) super.setQuotaUser(quotaUser); } @Override - public UpdateShieldedVmConfig setUploadType(java.lang.String uploadType) { - return (UpdateShieldedVmConfig) super.setUploadType(uploadType); + public SimulateMaintenanceEvent setUploadType(java.lang.String uploadType) { + return (SimulateMaintenanceEvent) super.setUploadType(uploadType); } @Override - public UpdateShieldedVmConfig setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdateShieldedVmConfig) super.setUploadProtocol(uploadProtocol); + public SimulateMaintenanceEvent setUploadProtocol(java.lang.String uploadProtocol) { + return (SimulateMaintenanceEvent) super.setUploadProtocol(uploadProtocol); } @Override - public UpdateShieldedVmConfig setUserIp(java.lang.String userIp) { - return (UpdateShieldedVmConfig) super.setUserIp(userIp); + public SimulateMaintenanceEvent setUserIp(java.lang.String userIp) { + return (SimulateMaintenanceEvent) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -88528,7 +87565,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public UpdateShieldedVmConfig setProject(java.lang.String project) { + public SimulateMaintenanceEvent setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -88549,7 +87586,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public UpdateShieldedVmConfig setZone(java.lang.String zone) { + public SimulateMaintenanceEvent 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 " + @@ -88570,7 +87607,7 @@ public java.lang.String getInstance() { } /** Name of the instance scoping this request. */ - public UpdateShieldedVmConfig setInstance(java.lang.String instance) { + public SimulateMaintenanceEvent 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 " + @@ -88624,61 +87661,61 @@ 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 UpdateShieldedVmConfig setRequestId(java.lang.String requestId) { + public SimulateMaintenanceEvent setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } - @Override - public UpdateShieldedVmConfig set(String parameterName, Object value) { - return (UpdateShieldedVmConfig) super.set(parameterName, value); - } - } - - } + /** + * Determines whether the customers receive notifications before migration. Only applicable to + * SF vms. + */ + @com.google.api.client.util.Key + private java.lang.Boolean withExtendedNotifications; - /** - * An accessor for creating requests from the InstantSnapshotGroups collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InstantSnapshotGroups.List request = compute.instantSnapshotGroups().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public InstantSnapshotGroups instantSnapshotGroups() { - return new InstantSnapshotGroups(); - } + /** Determines whether the customers receive notifications before migration. Only applicable to SF vms. + */ + public java.lang.Boolean getWithExtendedNotifications() { + return withExtendedNotifications; + } - /** - * The "instantSnapshotGroups" collection of methods. - */ - public class InstantSnapshotGroups { + /** + * Determines whether the customers receive notifications before migration. Only applicable to + * SF vms. + */ + public SimulateMaintenanceEvent setWithExtendedNotifications(java.lang.Boolean withExtendedNotifications) { + this.withExtendedNotifications = withExtendedNotifications; + return this; + } + @Override + public SimulateMaintenanceEvent set(String parameterName, Object value) { + return (SimulateMaintenanceEvent) super.set(parameterName, value); + } + } /** - * deletes a Zonal InstantSnapshotGroup resource + * Starts an instance that was stopped using theinstances().stop method. For more information, + * seeRestart an instance. * - * Create a request for the method "instantSnapshotGroups.delete". + * Create a request for the method "instances.start". * * 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 Start#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 instantSnapshotGroup Name of the InstantSnapshot resource to delete. + * @param instance Name of the instance resource to start. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshotGroup) throws java.io.IOException { - Delete result = new Delete(project, zone, instantSnapshotGroup); + public Start start(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + Start result = new Start(project, zone, instance); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Start extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{instantSnapshotGroup}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/start"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -88686,26 +87723,27 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * parameters, call the {@link Start#execute()} method to invoke the remote operation.

{@link + * Start#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 instantSnapshotGroup Name of the InstantSnapshot resource to delete. + * @param instance Name of the instance resource to start. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshotGroup) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Start(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(), @@ -88718,72 +87756,72 @@ protected Delete(java.lang.String project, java.lang.String zone, java.lang.Stri "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.instantSnapshotGroup = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshotGroup, "Required parameter instantSnapshotGroup must be specified."); + 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(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), - "Parameter instantSnapshotGroup must conform to the pattern " + + 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 Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Start set$Xgafv(java.lang.String $Xgafv) { + return (Start) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Start setAccessToken(java.lang.String accessToken) { + return (Start) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Start setAlt(java.lang.String alt) { + return (Start) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Start setCallback(java.lang.String callback) { + return (Start) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Start setFields(java.lang.String fields) { + return (Start) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Start setKey(java.lang.String key) { + return (Start) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Start setOauthToken(java.lang.String oauthToken) { + return (Start) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Start setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Start) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Start setQuotaUser(java.lang.String quotaUser) { + return (Start) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Start setUploadType(java.lang.String uploadType) { + return (Start) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Start setUploadProtocol(java.lang.String uploadProtocol) { + return (Start) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Start setUserIp(java.lang.String userIp) { + return (Start) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -88797,7 +87835,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public Start setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -88818,7 +87856,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public Delete setZone(java.lang.String zone) { + public Start 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 " + @@ -88828,24 +87866,24 @@ public Delete setZone(java.lang.String zone) { return this; } - /** Name of the InstantSnapshot resource to delete. */ + /** Name of the instance resource to start. */ @com.google.api.client.util.Key - private java.lang.String instantSnapshotGroup; + private java.lang.String instance; - /** Name of the InstantSnapshot resource to delete. + /** Name of the instance resource to start. */ - public java.lang.String getInstantSnapshotGroup() { - return instantSnapshotGroup; + public java.lang.String getInstance() { + return instance; } - /** Name of the InstantSnapshot resource to delete. */ - public Delete setInstantSnapshotGroup(java.lang.String instantSnapshotGroup) { + /** Name of the instance resource to start. */ + public Start setInstance(java.lang.String instance) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), - "Parameter instantSnapshotGroup must conform to the pattern " + + 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.instantSnapshotGroup = instantSnapshotGroup; + this.instance = instance; return this; } @@ -88893,38 +87931,41 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Delete setRequestId(java.lang.String requestId) { + public Start setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Start set(String parameterName, Object value) { + return (Start) super.set(parameterName, value); } } /** - * returns the specified InstantSnapshotGroup resource in the specified zone. + * Starts an instance that was stopped using theinstances().stop method. For more information, + * seeRestart an instance. * - * Create a request for the method "instantSnapshotGroups.get". + * Create a request for the method "instances.startWithEncryptionKey". * * 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 StartWithEncryptionKey#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 instantSnapshotGroup Name of the InstantSnapshotGroup resource to return. + * @param instance Name of the instance resource to start. + * @param content the {@link com.google.api.services.compute.model.InstancesStartWithEncryptionKeyRequest} * @return the request */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshotGroup) throws java.io.IOException { - Get result = new Get(project, zone, instantSnapshotGroup); + public StartWithEncryptionKey startWithEncryptionKey(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesStartWithEncryptionKeyRequest content) throws java.io.IOException { + StartWithEncryptionKey result = new StartWithEncryptionKey(project, zone, instance, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class StartWithEncryptionKey extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{instantSnapshotGroup}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -88932,26 +87973,29 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

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

{@link StartWithEncryptionKey#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 instantSnapshotGroup Name of the InstantSnapshotGroup resource to return. + * @param instance Name of the instance resource to start. + * @param content the {@link com.google.api.services.compute.model.InstancesStartWithEncryptionKeyRequest} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshotGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstantSnapshotGroup.class); + protected StartWithEncryptionKey(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.InstancesStartWithEncryptionKeyRequest 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(), @@ -88964,82 +88008,72 @@ protected Get(java.lang.String project, java.lang.String zone, java.lang.String "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.instantSnapshotGroup = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshotGroup, "Required parameter instantSnapshotGroup must be specified."); + 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(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), - "Parameter instantSnapshotGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public StartWithEncryptionKey set$Xgafv(java.lang.String $Xgafv) { + return (StartWithEncryptionKey) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public StartWithEncryptionKey setAccessToken(java.lang.String accessToken) { + return (StartWithEncryptionKey) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public StartWithEncryptionKey setAlt(java.lang.String alt) { + return (StartWithEncryptionKey) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public StartWithEncryptionKey setCallback(java.lang.String callback) { + return (StartWithEncryptionKey) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public StartWithEncryptionKey setFields(java.lang.String fields) { + return (StartWithEncryptionKey) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public StartWithEncryptionKey setKey(java.lang.String key) { + return (StartWithEncryptionKey) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public StartWithEncryptionKey setOauthToken(java.lang.String oauthToken) { + return (StartWithEncryptionKey) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public StartWithEncryptionKey setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StartWithEncryptionKey) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public StartWithEncryptionKey setQuotaUser(java.lang.String quotaUser) { + return (StartWithEncryptionKey) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public StartWithEncryptionKey setUploadType(java.lang.String uploadType) { + return (StartWithEncryptionKey) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public StartWithEncryptionKey setUploadProtocol(java.lang.String uploadProtocol) { + return (StartWithEncryptionKey) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public StartWithEncryptionKey setUserIp(java.lang.String userIp) { + return (StartWithEncryptionKey) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -89053,7 +88087,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public StartWithEncryptionKey setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -89074,7 +88108,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public Get setZone(java.lang.String zone) { + public StartWithEncryptionKey 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 " + @@ -89084,54 +88118,106 @@ public Get setZone(java.lang.String zone) { return this; } - /** Name of the InstantSnapshotGroup resource to return. */ + /** Name of the instance resource to start. */ @com.google.api.client.util.Key - private java.lang.String instantSnapshotGroup; + private java.lang.String instance; - /** Name of the InstantSnapshotGroup resource to return. + /** Name of the instance resource to start. */ - public java.lang.String getInstantSnapshotGroup() { - return instantSnapshotGroup; + public java.lang.String getInstance() { + return instance; } - /** Name of the InstantSnapshotGroup resource to return. */ - public Get setInstantSnapshotGroup(java.lang.String instantSnapshotGroup) { + /** Name of the instance resource to start. */ + public StartWithEncryptionKey setInstance(java.lang.String instance) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), - "Parameter instantSnapshotGroup must conform to the pattern " + + 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.instantSnapshotGroup = instantSnapshotGroup; + 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 StartWithEncryptionKey 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 StartWithEncryptionKey set(String parameterName, Object value) { + return (StartWithEncryptionKey) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a + * later time. Stopped instances do not incur VM usage charges while they are stopped. However, + * resources that the VM is using, such as persistent disks and static IP addresses, will continue + * to be charged until they are deleted. For more information, seeStopping an instance. * - * Create a request for the method "instantSnapshotGroups.getIamPolicy". + * Create a request for the method "instances.stop". * * 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 Stop#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 instance Name of the instance resource to stop. * @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 Stop stop(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + Stop result = new Stop(project, zone, instance); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest { + public class Stop extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/stop"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -89139,28 +88225,29 @@ public class GetIamPolicy extends ComputeRequest - * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

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

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. + * @param instance Name of the instance resource to stop. * @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 Stop(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(), @@ -89173,82 +88260,72 @@ 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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public Stop set$Xgafv(java.lang.String $Xgafv) { + return (Stop) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Stop setAccessToken(java.lang.String accessToken) { + return (Stop) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Stop setAlt(java.lang.String alt) { + return (Stop) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Stop setCallback(java.lang.String callback) { + return (Stop) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Stop setFields(java.lang.String fields) { + return (Stop) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Stop setKey(java.lang.String key) { + return (Stop) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Stop setOauthToken(java.lang.String oauthToken) { + return (Stop) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Stop setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Stop) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Stop setQuotaUser(java.lang.String quotaUser) { + return (Stop) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Stop setUploadType(java.lang.String uploadType) { + return (Stop) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Stop setUploadProtocol(java.lang.String uploadProtocol) { + return (Stop) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public Stop setUserIp(java.lang.String userIp) { + return (Stop) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -89262,7 +88339,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + public Stop setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -89283,7 +88360,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public GetIamPolicy setZone(java.lang.String zone) { + public Stop 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 " + @@ -89293,70 +88370,150 @@ public GetIamPolicy setZone(java.lang.String zone) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the instance resource to stop. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String instance; - /** Name or id of the resource for this request. + /** Name of the instance resource to stop. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInstance() { + return instance; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** Name of the instance resource to stop. */ + public Stop setInstance(java.lang.String instance) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(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.resource = resource; + this.instance = instance; return this; } - /** Requested IAM Policy version. */ + /** + * This property is required if the instance has any attached Local SSD disks. If false, Local + * SSD data will be preserved when the instance is suspended. If true, the contents of any + * attached Local SSD disks will be discarded. + */ @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + private java.lang.Boolean discardLocalSsd; - /** Requested IAM Policy version. + /** This property is required if the instance has any attached Local SSD disks. If false, Local SSD + data will be preserved when the instance is suspended. If true, the contents of any attached Local + SSD disks will be discarded. */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.Boolean getDiscardLocalSsd() { + return discardLocalSsd; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** + * This property is required if the instance has any attached Local SSD disks. If false, Local + * SSD data will be preserved when the instance is suspended. If true, the contents of any + * attached Local SSD disks will be discarded. + */ + public Stop setDiscardLocalSsd(java.lang.Boolean discardLocalSsd) { + this.discardLocalSsd = discardLocalSsd; + return this; + } + + /** If set to true, Graceful Shutdown is skipped. */ + @com.google.api.client.util.Key + private java.lang.Boolean noGracefulShutdown; + + /** If set to true, Graceful Shutdown is skipped. + */ + public java.lang.Boolean getNoGracefulShutdown() { + return noGracefulShutdown; + } + + /** If set to true, Graceful Shutdown is skipped. */ + public Stop setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { + this.noGracefulShutdown = noGracefulShutdown; + 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 Stop setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public Stop set(String parameterName, Object value) { + return (Stop) super.set(parameterName, value); } } /** - * inserts a Zonal InstantSnapshotGroup resource + * This method suspends a running instance, saving its state to persistent storage, and allows you + * to resume the instance at a later time. Suspended instances have no compute costs (cores or RAM), + * and incur only storage charges for the saved VM memory and localSSD data. Any charged resources + * the virtual machine was using, such as persistent disks and static IP addresses, will continue to + * be charged while the instance is suspended. For more information, see Suspending and resuming an + * instance. * - * Create a request for the method "instantSnapshotGroups.insert". + * Create a request for the method "instances.suspend". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link Suspend#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone Name of the zone for this request. - * @param content the {@link com.google.api.services.compute.model.InstantSnapshotGroup} + * @param zone The name of the zone for this request. + * @param instance Name of the instance resource to suspend. * @return the request */ - public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstantSnapshotGroup content) throws java.io.IOException { - Insert result = new Insert(project, zone, content); + public Suspend suspend(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { + Suspend result = new Suspend(project, zone, instance); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class Suspend extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/suspend"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -89364,23 +88521,32 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * parameters, call the {@link Suspend#execute()} method to invoke the remote operation.

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

* * @param project Project ID for this request. - * @param zone Name of the zone for this request. - * @param content the {@link com.google.api.services.compute.model.InstantSnapshotGroup} + * @param zone The name of the zone for this request. + * @param instance Name of the instance resource to suspend. * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstantSnapshotGroup content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Suspend(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(), @@ -89393,66 +88559,72 @@ protected Insert(java.lang.String project, java.lang.String zone, com.google.api "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.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 Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public Suspend set$Xgafv(java.lang.String $Xgafv) { + return (Suspend) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public Suspend setAccessToken(java.lang.String accessToken) { + return (Suspend) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Suspend setAlt(java.lang.String alt) { + return (Suspend) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Suspend setCallback(java.lang.String callback) { + return (Suspend) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Suspend setFields(java.lang.String fields) { + return (Suspend) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Suspend setKey(java.lang.String key) { + return (Suspend) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Suspend setOauthToken(java.lang.String oauthToken) { + return (Suspend) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Suspend setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Suspend) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Suspend setQuotaUser(java.lang.String quotaUser) { + return (Suspend) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Suspend setUploadType(java.lang.String uploadType) { + return (Suspend) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Suspend setUploadProtocol(java.lang.String uploadProtocol) { + return (Suspend) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public Suspend setUserIp(java.lang.String userIp) { + return (Suspend) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -89466,7 +88638,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public Suspend setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -89476,18 +88648,18 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the zone for this request. */ + /** The 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. + /** The name of the zone for this request. */ public java.lang.String getZone() { return zone; } - /** Name of the zone for this request. */ - public Insert setZone(java.lang.String zone) { + /** The name of the zone for this request. */ + public Suspend 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 " + @@ -89497,6 +88669,53 @@ public Insert setZone(java.lang.String zone) { return this; } + /** Name of the instance resource to suspend. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance resource to suspend. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance resource to suspend. */ + public Suspend 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; + } + + /** + * This property is required if the instance has any attached Local SSD disks. If false, Local + * SSD data will be preserved when the instance is suspended. If true, the contents of any + * attached Local SSD disks will be discarded. + */ + @com.google.api.client.util.Key + private java.lang.Boolean discardLocalSsd; + + /** This property is required if the instance has any attached Local SSD disks. If false, Local SSD + data will be preserved when the instance is suspended. If true, the contents of any attached Local + SSD disks will be discarded. + */ + public java.lang.Boolean getDiscardLocalSsd() { + return discardLocalSsd; + } + + /** + * This property is required if the instance has any attached Local SSD disks. If false, Local + * SSD data will be preserved when the instance is suspended. If true, the contents of any + * attached Local SSD disks will be discarded. + */ + public Suspend setDiscardLocalSsd(java.lang.Boolean discardLocalSsd) { + this.discardLocalSsd = discardLocalSsd; + 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 @@ -89541,53 +88760,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 Insert setRequestId(java.lang.String requestId) { + public Suspend setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } - /** begin_interface: MixerMutationRequestBuilder */ - @com.google.api.client.util.Key - private java.lang.String sourceConsistencyGroup; - - /** begin_interface: MixerMutationRequestBuilder - */ - public java.lang.String getSourceConsistencyGroup() { - return sourceConsistencyGroup; - } - - /** begin_interface: MixerMutationRequestBuilder */ - public Insert setSourceConsistencyGroup(java.lang.String sourceConsistencyGroup) { - this.sourceConsistencyGroup = sourceConsistencyGroup; - return this; - } - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Suspend set(String parameterName, Object value) { + return (Suspend) super.set(parameterName, value); } } /** - * retrieves the list of InstantSnapshotGroup resources contained within the specified zone. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "instantSnapshotGroups.list". + * Create a request for the method "instances.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { - List result = new List(project, zone); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); initialize(result); return result; } - public class List extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -89595,22 +88800,28 @@ public class List extends ComputeRequest {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

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

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ListInstantSnapshotGroups.class); + protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -89623,76 +88834,72 @@ protected List(java.lang.String project, java.lang.String zone) { "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 List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -89706,7 +88913,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -89727,7 +88934,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public List setZone(java.lang.String zone) { + public TestIamPermissions setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), "Parameter zone must conform to the pattern " + @@ -89737,298 +88944,57 @@ public List setZone(java.lang.String zone) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. - - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String resource; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Name or id of the resource for this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getResource() { + return resource; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Updates an instance only if the necessary resources are available. This method can update only a + * specific set of instance properties. See Updating a running instance for a list of updatable + * instance properties. * - * Create a request for the method "instantSnapshotGroups.setIamPolicy". + * Create a request for the method "instances.update". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} + * @param instance Name of the instance resource to update. + * @param content the {@link com.google.api.services.compute.model.Instance} * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); + public Update update(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Instance content) throws java.io.IOException { + Update result = new Update(project, zone, instance, content); initialize(result); return result; } - public class SetIamPolicy extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -90036,28 +89002,29 @@ public class SetIamPolicy extends ComputeRequest - * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

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

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} + * @param instance Name of the instance resource to update. + * @param content the {@link com.google.api.services.compute.model.Instance} * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + protected Update(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.Instance content) { + super(Compute.this, "PUT", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -90070,72 +89037,72 @@ protected SetIamPolicy(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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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 SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -90149,7 +89116,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + public Update setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -90170,7 +89137,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public SetIamPolicy setZone(java.lang.String zone) { + public Update setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), "Parameter zone must conform to the pattern " + @@ -90180,55 +89147,207 @@ public SetIamPolicy setZone(java.lang.String zone) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the instance resource to update. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String instance; - /** Name or id of the resource for this request. + /** Name of the instance resource to update. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInstance() { + return instance; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** Name of the instance resource to update. */ + public Update setInstance(java.lang.String instance) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(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.resource = resource; + this.instance = instance; + return this; + } + + /** + * Whether to clear secure tags from the instance. + * + * This property if set to true will clear secure tags regardless of theresource.secure_tags. + */ + @com.google.api.client.util.Key + private java.lang.Boolean clearSecureTag; + + /** Whether to clear secure tags from the instance. + + This property if set to true will clear secure tags regardless of theresource.secure_tags. + */ + public java.lang.Boolean getClearSecureTag() { + return clearSecureTag; + } + + /** + * Whether to clear secure tags from the instance. + * + * This property if set to true will clear secure tags regardless of theresource.secure_tags. + */ + public Update setClearSecureTag(java.lang.Boolean clearSecureTag) { + this.clearSecureTag = clearSecureTag; + return this; + } + + /** + * Whether to discard local SSDs from the instance during restart default value is false. + */ + @com.google.api.client.util.Key + private java.lang.Boolean discardLocalSsd; + + /** Whether to discard local SSDs from the instance during restart default value is false. + */ + public java.lang.Boolean getDiscardLocalSsd() { + return discardLocalSsd; + } + + /** + * Whether to discard local SSDs from the instance during restart default value is false. + */ + public Update setDiscardLocalSsd(java.lang.Boolean discardLocalSsd) { + this.discardLocalSsd = discardLocalSsd; + return this; + } + + /** + * Specifies the action to take when updating an instance even if the updated properties do + * not require it. If not specified, then Compute Engine acts based on the minimum action that + * the updated properties require. + */ + @com.google.api.client.util.Key + private java.lang.String minimalAction; + + /** Specifies the action to take when updating an instance even if the updated properties do not + require it. If not specified, then Compute Engine acts based on the minimum action that the updated + properties require. + */ + public java.lang.String getMinimalAction() { + return minimalAction; + } + + /** + * Specifies the action to take when updating an instance even if the updated properties do + * not require it. If not specified, then Compute Engine acts based on the minimum action that + * the updated properties require. + */ + public Update setMinimalAction(java.lang.String minimalAction) { + this.minimalAction = minimalAction; + return this; + } + + /** + * Specifies the most disruptive action that can be taken on the instance as part of the + * update. Compute Engine returns an error if the instance properties require a more + * disruptive action as part of the instance update. Valid options from lowest to highest are + * NO_EFFECT, REFRESH, and RESTART. + */ + @com.google.api.client.util.Key + private java.lang.String mostDisruptiveAllowedAction; + + /** Specifies the most disruptive action that can be taken on the instance as part of the update. + Compute Engine returns an error if the instance properties require a more disruptive action as part + of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART. + */ + public java.lang.String getMostDisruptiveAllowedAction() { + return mostDisruptiveAllowedAction; + } + + /** + * Specifies the most disruptive action that can be taken on the instance as part of the + * update. Compute Engine returns an error if the instance properties require a more + * disruptive action as part of the instance update. Valid options from lowest to highest are + * NO_EFFECT, REFRESH, and RESTART. + */ + public Update setMostDisruptiveAllowedAction(java.lang.String mostDisruptiveAllowedAction) { + this.mostDisruptiveAllowedAction = mostDisruptiveAllowedAction; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Updates the specified access config from an instance's network interface with the data included + * in the request. This method supportsPATCH semantics and uses theJSON merge patch format and + * processing rules. * - * Create a request for the method "instantSnapshotGroups.testIamPermissions". + * Create a request for the method "instances.updateAccessConfig". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link UpdateAccessConfig#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param instance The instance name for this request. + * @param networkInterface The name of the network interface where the access config is attached. + * @param content the {@link com.google.api.services.compute.model.AccessConfig} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); + public UpdateAccessConfig updateAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.model.AccessConfig content) throws java.io.IOException { + UpdateAccessConfig result = new UpdateAccessConfig(project, zone, instance, networkInterface, content); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class UpdateAccessConfig extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -90236,28 +89355,31 @@ public class TestIamPermissions extends ComputeRequest {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * parameters, call the {@link UpdateAccessConfig#execute()} method to invoke the remote + * operation.

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param instance The instance name for this request. + * @param networkInterface The name of the network interface where the access config is attached. + * @param content the {@link com.google.api.services.compute.model.AccessConfig} * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected UpdateAccessConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.model.AccessConfig 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(), @@ -90270,72 +89392,73 @@ protected TestIamPermissions(java.lang.String project, java.lang.String zone, ja "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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + 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.networkInterface = com.google.api.client.util.Preconditions.checkNotNull(networkInterface, "Required parameter networkInterface must be specified."); } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public UpdateAccessConfig set$Xgafv(java.lang.String $Xgafv) { + return (UpdateAccessConfig) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public UpdateAccessConfig setAccessToken(java.lang.String accessToken) { + return (UpdateAccessConfig) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public UpdateAccessConfig setAlt(java.lang.String alt) { + return (UpdateAccessConfig) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public UpdateAccessConfig setCallback(java.lang.String callback) { + return (UpdateAccessConfig) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public UpdateAccessConfig setFields(java.lang.String fields) { + return (UpdateAccessConfig) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public UpdateAccessConfig setKey(java.lang.String key) { + return (UpdateAccessConfig) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public UpdateAccessConfig setOauthToken(java.lang.String oauthToken) { + return (UpdateAccessConfig) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public UpdateAccessConfig setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateAccessConfig) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public UpdateAccessConfig setQuotaUser(java.lang.String quotaUser) { + return (UpdateAccessConfig) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public UpdateAccessConfig setUploadType(java.lang.String uploadType) { + return (UpdateAccessConfig) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public UpdateAccessConfig setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateAccessConfig) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public UpdateAccessConfig setUserIp(java.lang.String userIp) { + return (UpdateAccessConfig) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -90349,7 +89472,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + public UpdateAccessConfig setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -90370,7 +89493,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public TestIamPermissions setZone(java.lang.String zone) { + public UpdateAccessConfig 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 " + @@ -90380,177 +89503,231 @@ public TestIamPermissions setZone(java.lang.String zone) { return this; } - /** Name or id of the resource for this request. */ + /** The instance name for this request. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String instance; - /** Name or id of the resource for this request. + /** The instance name for this request. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInstance() { + return instance; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** The instance name for this request. */ + public UpdateAccessConfig setInstance(java.lang.String instance) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(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.resource = resource; + this.instance = instance; return this; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + /** The name of the network interface where the access config is attached. */ + @com.google.api.client.util.Key + private java.lang.String networkInterface; + + /** The name of the network interface where the access config is attached. + */ + public java.lang.String getNetworkInterface() { + return networkInterface; } - } - } + /** The name of the network interface where the access config is attached. */ + public UpdateAccessConfig setNetworkInterface(java.lang.String networkInterface) { + this.networkInterface = networkInterface; + return this; + } - /** - * An accessor for creating requests from the InstantSnapshots collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InstantSnapshots.List request = compute.instantSnapshots().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public InstantSnapshots instantSnapshots() { - return new InstantSnapshots(); - } + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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; - /** - * The "instantSnapshots" collection of methods. - */ - public class InstantSnapshots { + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating 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 UpdateAccessConfig setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + @Override + public UpdateAccessConfig set(String parameterName, Object value) { + return (UpdateAccessConfig) super.set(parameterName, value); + } + } /** - * Retrieves an aggregated list of instantSnapshots. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Updates the Display config for a VM instance. You can only use this method on a stopped VM + * instance. This method supportsPATCH semantics and uses theJSON merge patch format and processing + * rules. * - * Create a request for the method "instantSnapshots.aggregatedList". + * Create a request for the method "instances.updateDisplayDevice". * * 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 UpdateDisplayDevice#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.DisplayDevice} * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + public UpdateDisplayDevice updateDisplayDevice(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.DisplayDevice content) throws java.io.IOException { + UpdateDisplayDevice result = new UpdateDisplayDevice(project, zone, instance, content); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class UpdateDisplayDevice extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/instantSnapshots"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern INSTANCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Retrieves an aggregated list of instantSnapshots. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Updates the Display config for a VM instance. You can only use this method on a stopped VM + * instance. This method supportsPATCH semantics and uses theJSON merge patch format and + * processing rules. * - * Create a request for the method "instantSnapshots.aggregatedList". + * Create a request for the method "instances.updateDisplayDevice". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

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

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

{@link UpdateDisplayDevice#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.DisplayDevice} * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstantSnapshotAggregatedList.class); + protected UpdateDisplayDevice(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.DisplayDevice content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + 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])?"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public UpdateDisplayDevice set$Xgafv(java.lang.String $Xgafv) { + return (UpdateDisplayDevice) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public UpdateDisplayDevice setAccessToken(java.lang.String accessToken) { + return (UpdateDisplayDevice) super.setAccessToken(accessToken); } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public UpdateDisplayDevice setAlt(java.lang.String alt) { + return (UpdateDisplayDevice) super.setAlt(alt); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public UpdateDisplayDevice setCallback(java.lang.String callback) { + return (UpdateDisplayDevice) super.setCallback(callback); } @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); + public UpdateDisplayDevice setFields(java.lang.String fields) { + return (UpdateDisplayDevice) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public UpdateDisplayDevice setKey(java.lang.String key) { + return (UpdateDisplayDevice) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public UpdateDisplayDevice setOauthToken(java.lang.String oauthToken) { + return (UpdateDisplayDevice) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public UpdateDisplayDevice setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateDisplayDevice) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public UpdateDisplayDevice setQuotaUser(java.lang.String quotaUser) { + return (UpdateDisplayDevice) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public UpdateDisplayDevice setUploadType(java.lang.String uploadType) { + return (UpdateDisplayDevice) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public UpdateDisplayDevice setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateDisplayDevice) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public UpdateDisplayDevice setUserIp(java.lang.String userIp) { + return (UpdateDisplayDevice) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -90564,7 +89741,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + public UpdateDisplayDevice setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -90574,359 +89751,130 @@ public AggregatedList setProject(java.lang.String project) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - @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. - */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; + private java.lang.String zone; - /** 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. + /** The name of the zone for this request. */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; + public java.lang.String getZone() { + return zone; } - /** - * 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; + /** The name of the zone for this request. */ + public UpdateDisplayDevice 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; } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ + /** Name of the instance scoping this request. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String instance; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Name of the instance scoping this request. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getInstance() { + return instance; } - /** - * 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; + /** Name of the instance scoping this request. */ + public UpdateDisplayDevice 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])?"); + } + this.instance = instance; return this; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public AggregatedList setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } + private java.lang.String requestId; - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; + public UpdateDisplayDevice setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public UpdateDisplayDevice set(String parameterName, Object value) { + return (UpdateDisplayDevice) super.set(parameterName, value); } } /** - * Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single - * instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on - * the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the - * data will be moved to the next corresponding instantSnapshot. - * - * For more information, seeDeleting instantSnapshots. + * Updates an instance's network interface. This method can only update an interface's alias IP + * range and attached network. See Modifying alias IP ranges for an existing instance for + * instructions on changing alias IP ranges. See Migrating a VM between networks for instructions on + * migrating an interface. This method follows PATCH semantics. * - * Create a request for the method "instantSnapshots.delete". + * Create a request for the method "instances.updateNetworkInterface". * * 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 UpdateNetworkInterface#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 instantSnapshot Name of the InstantSnapshot resource to delete. + * @param instance The instance name for this request. + * @param networkInterface The name of the network interface to update. + * @param content the {@link com.google.api.services.compute.model.NetworkInterface} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshot) throws java.io.IOException { - Delete result = new Delete(project, zone, instantSnapshot); + public UpdateNetworkInterface updateNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.model.NetworkInterface content) throws java.io.IOException { + UpdateNetworkInterface result = new UpdateNetworkInterface(project, zone, instance, networkInterface, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class UpdateNetworkInterface extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -90934,31 +89882,32 @@ 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 UpdateNetworkInterface#execute()} method to invoke the remote + * operation.

{@link UpdateNetworkInterface#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 instantSnapshot Name of the InstantSnapshot resource to delete. + * @param instance The instance name for this request. + * @param networkInterface The name of the network interface to update. + * @param content the {@link com.google.api.services.compute.model.NetworkInterface} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshot) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected UpdateNetworkInterface(java.lang.String project, java.lang.String zone, java.lang.String instance, java.lang.String networkInterface, com.google.api.services.compute.model.NetworkInterface 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(), @@ -90971,72 +89920,73 @@ protected Delete(java.lang.String project, java.lang.String zone, java.lang.Stri "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.instantSnapshot = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshot, "Required parameter instantSnapshot must be specified."); + 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(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), - "Parameter instantSnapshot must conform to the pattern " + + 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.networkInterface = com.google.api.client.util.Preconditions.checkNotNull(networkInterface, "Required parameter networkInterface must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public UpdateNetworkInterface set$Xgafv(java.lang.String $Xgafv) { + return (UpdateNetworkInterface) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public UpdateNetworkInterface setAccessToken(java.lang.String accessToken) { + return (UpdateNetworkInterface) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public UpdateNetworkInterface setAlt(java.lang.String alt) { + return (UpdateNetworkInterface) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public UpdateNetworkInterface setCallback(java.lang.String callback) { + return (UpdateNetworkInterface) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public UpdateNetworkInterface setFields(java.lang.String fields) { + return (UpdateNetworkInterface) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public UpdateNetworkInterface setKey(java.lang.String key) { + return (UpdateNetworkInterface) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public UpdateNetworkInterface setOauthToken(java.lang.String oauthToken) { + return (UpdateNetworkInterface) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public UpdateNetworkInterface setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateNetworkInterface) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public UpdateNetworkInterface setQuotaUser(java.lang.String quotaUser) { + return (UpdateNetworkInterface) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public UpdateNetworkInterface setUploadType(java.lang.String uploadType) { + return (UpdateNetworkInterface) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public UpdateNetworkInterface setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateNetworkInterface) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public UpdateNetworkInterface setUserIp(java.lang.String userIp) { + return (UpdateNetworkInterface) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -91050,7 +90000,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public UpdateNetworkInterface setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -91071,7 +90021,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public Delete setZone(java.lang.String zone) { + public UpdateNetworkInterface 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 " + @@ -91081,24 +90031,40 @@ public Delete setZone(java.lang.String zone) { return this; } - /** Name of the InstantSnapshot resource to delete. */ + /** The instance name for this request. */ @com.google.api.client.util.Key - private java.lang.String instantSnapshot; + private java.lang.String instance; - /** Name of the InstantSnapshot resource to delete. + /** The instance name for this request. */ - public java.lang.String getInstantSnapshot() { - return instantSnapshot; + public java.lang.String getInstance() { + return instance; } - /** Name of the InstantSnapshot resource to delete. */ - public Delete setInstantSnapshot(java.lang.String instantSnapshot) { + /** The instance name for this request. */ + public UpdateNetworkInterface setInstance(java.lang.String instance) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), - "Parameter instantSnapshot must conform to the pattern " + + 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.instantSnapshot = instantSnapshot; + this.instance = instance; + return this; + } + + /** The name of the network interface to update. */ + @com.google.api.client.util.Key + private java.lang.String networkInterface; + + /** The name of the network interface to update. + */ + public java.lang.String getNetworkInterface() { + return networkInterface; + } + + /** The name of the network interface to update. */ + public UpdateNetworkInterface setNetworkInterface(java.lang.String networkInterface) { + this.networkInterface = networkInterface; return this; } @@ -91146,38 +90112,42 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Delete setRequestId(java.lang.String requestId) { + public UpdateNetworkInterface setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public UpdateNetworkInterface set(String parameterName, Object value) { + return (UpdateNetworkInterface) super.set(parameterName, value); } } /** - * Returns the specified InstantSnapshot resource in the specified zone. + * Updates the Shielded Instance config for an instance. You can only use this method on a stopped + * instance. This method supportsPATCH semantics and uses theJSON merge patch format and processing + * rules. * - * Create a request for the method "instantSnapshots.get". + * Create a request for the method "instances.updateShieldedInstanceConfig". * * 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 UpdateShieldedInstanceConfig#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 instantSnapshot Name of the InstantSnapshot resource to return. + * @param instance Name or id of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.ShieldedInstanceConfig} * @return the request */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshot) throws java.io.IOException { - Get result = new Get(project, zone, instantSnapshot); + public UpdateShieldedInstanceConfig updateShieldedInstanceConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.ShieldedInstanceConfig content) throws java.io.IOException { + UpdateShieldedInstanceConfig result = new UpdateShieldedInstanceConfig(project, zone, instance, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class UpdateShieldedInstanceConfig extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -91185,26 +90155,30 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

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

{@link UpdateShieldedInstanceConfig#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 instantSnapshot Name of the InstantSnapshot resource to return. + * @param instance Name or id of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.ShieldedInstanceConfig} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshot) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstantSnapshot.class); + protected UpdateShieldedInstanceConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.ShieldedInstanceConfig 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(), @@ -91217,82 +90191,72 @@ protected Get(java.lang.String project, java.lang.String zone, java.lang.String "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.instantSnapshot = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshot, "Required parameter instantSnapshot must be specified."); + 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(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), - "Parameter instantSnapshot must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public UpdateShieldedInstanceConfig set$Xgafv(java.lang.String $Xgafv) { + return (UpdateShieldedInstanceConfig) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public UpdateShieldedInstanceConfig setAccessToken(java.lang.String accessToken) { + return (UpdateShieldedInstanceConfig) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public UpdateShieldedInstanceConfig setAlt(java.lang.String alt) { + return (UpdateShieldedInstanceConfig) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public UpdateShieldedInstanceConfig setCallback(java.lang.String callback) { + return (UpdateShieldedInstanceConfig) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public UpdateShieldedInstanceConfig setFields(java.lang.String fields) { + return (UpdateShieldedInstanceConfig) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public UpdateShieldedInstanceConfig setKey(java.lang.String key) { + return (UpdateShieldedInstanceConfig) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public UpdateShieldedInstanceConfig setOauthToken(java.lang.String oauthToken) { + return (UpdateShieldedInstanceConfig) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public UpdateShieldedInstanceConfig setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateShieldedInstanceConfig) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public UpdateShieldedInstanceConfig setQuotaUser(java.lang.String quotaUser) { + return (UpdateShieldedInstanceConfig) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public UpdateShieldedInstanceConfig setUploadType(java.lang.String uploadType) { + return (UpdateShieldedInstanceConfig) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public UpdateShieldedInstanceConfig setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateShieldedInstanceConfig) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public UpdateShieldedInstanceConfig setUserIp(java.lang.String userIp) { + return (UpdateShieldedInstanceConfig) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -91306,7 +90270,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public UpdateShieldedInstanceConfig setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -91327,7 +90291,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public Get setZone(java.lang.String zone) { + public UpdateShieldedInstanceConfig 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 " + @@ -91337,54 +90301,107 @@ public Get setZone(java.lang.String zone) { return this; } - /** Name of the InstantSnapshot resource to return. */ + /** Name or id of the instance scoping this request. */ @com.google.api.client.util.Key - private java.lang.String instantSnapshot; + private java.lang.String instance; - /** Name of the InstantSnapshot resource to return. + /** Name or id of the instance scoping this request. */ - public java.lang.String getInstantSnapshot() { - return instantSnapshot; + public java.lang.String getInstance() { + return instance; } - /** Name of the InstantSnapshot resource to return. */ - public Get setInstantSnapshot(java.lang.String instantSnapshot) { + /** Name or id of the instance scoping this request. */ + public UpdateShieldedInstanceConfig setInstance(java.lang.String instance) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), - "Parameter instantSnapshot must conform to the pattern " + + 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.instantSnapshot = instantSnapshot; + 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 UpdateShieldedInstanceConfig 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 UpdateShieldedInstanceConfig set(String parameterName, Object value) { + return (UpdateShieldedInstanceConfig) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Updates the Shielded VM config for a VM instance. You can only use this method on a stopped VM + * instance. This method supportsPATCH semantics and uses theJSON merge patch format and processing + * rules. * - * Create a request for the method "instantSnapshots.getIamPolicy". + * Create a request for the method "instances.updateShieldedVmConfig". * * 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 UpdateShieldedVmConfig#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 instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.ShieldedVmConfig} * @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 UpdateShieldedVmConfig updateShieldedVmConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.ShieldedVmConfig content) throws java.io.IOException { + UpdateShieldedVmConfig result = new UpdateShieldedVmConfig(project, zone, instance, content); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest { + public class UpdateShieldedVmConfig extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}/updateShieldedVmConfig"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -91392,28 +90409,30 @@ public class GetIamPolicy extends ComputeRequest - * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

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

{@link UpdateShieldedVmConfig#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 resource Name or id of the resource for this request. + * @param instance Name of the instance scoping this request. + * @param content the {@link com.google.api.services.compute.model.ShieldedVmConfig} * @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 UpdateShieldedVmConfig(java.lang.String project, java.lang.String zone, java.lang.String instance, com.google.api.services.compute.model.ShieldedVmConfig 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(), @@ -91426,82 +90445,72 @@ 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."); + 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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public UpdateShieldedVmConfig set$Xgafv(java.lang.String $Xgafv) { + return (UpdateShieldedVmConfig) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public UpdateShieldedVmConfig setAccessToken(java.lang.String accessToken) { + return (UpdateShieldedVmConfig) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public UpdateShieldedVmConfig setAlt(java.lang.String alt) { + return (UpdateShieldedVmConfig) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public UpdateShieldedVmConfig setCallback(java.lang.String callback) { + return (UpdateShieldedVmConfig) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public UpdateShieldedVmConfig setFields(java.lang.String fields) { + return (UpdateShieldedVmConfig) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public UpdateShieldedVmConfig setKey(java.lang.String key) { + return (UpdateShieldedVmConfig) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public UpdateShieldedVmConfig setOauthToken(java.lang.String oauthToken) { + return (UpdateShieldedVmConfig) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public UpdateShieldedVmConfig setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateShieldedVmConfig) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public UpdateShieldedVmConfig setQuotaUser(java.lang.String quotaUser) { + return (UpdateShieldedVmConfig) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public UpdateShieldedVmConfig setUploadType(java.lang.String uploadType) { + return (UpdateShieldedVmConfig) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public UpdateShieldedVmConfig setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateShieldedVmConfig) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public UpdateShieldedVmConfig setUserIp(java.lang.String userIp) { + return (UpdateShieldedVmConfig) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -91515,7 +90524,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + public UpdateShieldedVmConfig setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -91536,7 +90545,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public GetIamPolicy setZone(java.lang.String zone) { + public UpdateShieldedVmConfig 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 " + @@ -91546,70 +90555,126 @@ public GetIamPolicy setZone(java.lang.String zone) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the instance scoping this request. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String instance; - /** Name or id of the resource for this request. + /** Name of the instance scoping this request. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInstance() { + return instance; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** Name of the instance scoping this request. */ + public UpdateShieldedVmConfig setInstance(java.lang.String instance) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(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.resource = resource; + this.instance = instance; return this; } - /** Requested IAM Policy version. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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.Integer optionsRequestedPolicyVersion; + private java.lang.String requestId; - /** Requested IAM Policy version. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating 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.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getRequestId() { + return requestId; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public UpdateShieldedVmConfig setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public UpdateShieldedVmConfig set(String parameterName, Object value) { + return (UpdateShieldedVmConfig) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the InstantSnapshotGroups collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InstantSnapshotGroups.List request = compute.instantSnapshotGroups().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InstantSnapshotGroups instantSnapshotGroups() { + return new InstantSnapshotGroups(); + } + + /** + * The "instantSnapshotGroups" collection of methods. + */ + public class InstantSnapshotGroups { + /** - * Creates an instant snapshot in the specified zone. + * deletes a Zonal InstantSnapshotGroup resource * - * Create a request for the method "instantSnapshots.insert". + * Create a request for the method "instantSnapshotGroups.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone Name of the zone for this request. - * @param content the {@link com.google.api.services.compute.model.InstantSnapshot} + * @param zone The name of the zone for this request. + * @param instantSnapshotGroup Name of the InstantSnapshot resource to delete. * @return the request */ - public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstantSnapshot content) throws java.io.IOException { - Insert result = new Insert(project, zone, content); + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshotGroup) throws java.io.IOException { + Delete result = new Delete(project, zone, instantSnapshotGroup); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{instantSnapshotGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -91617,23 +90682,26 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

* * @param project Project ID for this request. - * @param zone Name of the zone for this request. - * @param content the {@link com.google.api.services.compute.model.InstantSnapshot} + * @param zone The name of the zone for this request. + * @param instantSnapshotGroup Name of the InstantSnapshot resource to delete. * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstantSnapshot content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshotGroup) { + 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(), @@ -91646,66 +90714,72 @@ protected Insert(java.lang.String project, java.lang.String zone, com.google.api "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.instantSnapshotGroup = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshotGroup, "Required parameter instantSnapshotGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), + "Parameter instantSnapshotGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -91719,7 +90793,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -91729,18 +90803,18 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the zone for this request. */ + /** The 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. + /** The name of the zone for this request. */ public java.lang.String getZone() { return zone; } - /** Name of the zone for this request. */ - public Insert setZone(java.lang.String zone) { + /** 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 " + @@ -91750,6 +90824,27 @@ public Insert setZone(java.lang.String zone) { return this; } + /** Name of the InstantSnapshot resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String instantSnapshotGroup; + + /** Name of the InstantSnapshot resource to delete. + */ + public java.lang.String getInstantSnapshotGroup() { + return instantSnapshotGroup; + } + + /** Name of the InstantSnapshot resource to delete. */ + public Delete setInstantSnapshotGroup(java.lang.String instantSnapshotGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), + "Parameter instantSnapshotGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instantSnapshotGroup = instantSnapshotGroup; + 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 @@ -91794,37 +90889,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 Insert setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Retrieves the list of InstantSnapshot resources contained within the specified zone. + * returns the specified InstantSnapshotGroup resource in the specified zone. * - * Create a request for the method "instantSnapshots.list". + * Create a request for the method "instantSnapshotGroups.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link 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 instantSnapshotGroup Name of the InstantSnapshotGroup resource to return. * @return the request */ - public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { - List result = new List(project, zone); + public Get get(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshotGroup) throws java.io.IOException { + Get result = new Get(project, zone, instantSnapshotGroup); initialize(result); return result; } - public class List extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{instantSnapshotGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -91832,22 +90928,26 @@ public class List extends ComputeRequest {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. + * @param instantSnapshotGroup Name of the InstantSnapshotGroup resource to return. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstantSnapshotList.class); + protected Get(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshotGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstantSnapshotGroup.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -91860,6 +90960,12 @@ protected List(java.lang.String project, java.lang.String zone) { "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.instantSnapshotGroup = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshotGroup, "Required parameter instantSnapshotGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), + "Parameter instantSnapshotGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override @@ -91873,63 +90979,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -91943,7 +91049,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List 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 " + @@ -91964,7 +91070,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public List 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 " + @@ -91974,298 +91080,54 @@ public List setZone(java.lang.String zone) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. - - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; - - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Name of the InstantSnapshotGroup resource to return. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String instantSnapshotGroup; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Name of the InstantSnapshotGroup resource to return. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getInstantSnapshotGroup() { + return instantSnapshotGroup; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** Name of the InstantSnapshotGroup resource to return. */ + public Get setInstantSnapshotGroup(java.lang.String instantSnapshotGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_GROUP_PATTERN.matcher(instantSnapshotGroup).matches(), + "Parameter instantSnapshotGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instantSnapshotGroup = instantSnapshotGroup; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "instantSnapshots.setIamPolicy". + * Create a request for the method "instantSnapshotGroups.getIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of the zone for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, zone, resource); initialize(result); return result; } - public class SetIamPolicy extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -92277,24 +91139,24 @@ public class SetIamPolicy extends ComputeRequest + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + protected GetIamPolicy(java.lang.String project, java.lang.String 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(), @@ -92316,63 +91178,73 @@ protected SetIamPolicy(java.lang.String project, java.lang.String zone, java.lan } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -92386,7 +91258,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + public GetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -92407,7 +91279,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public SetIamPolicy setZone(java.lang.String zone) { + 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 " + @@ -92428,7 +91300,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + public GetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + @@ -92438,35 +91310,49 @@ public SetIamPolicy setResource(java.lang.String resource) { return this; } - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + /** 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; } - } - /** - * Sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the - * Labeling Resources documentation. - * - * Create a request for the method "instantSnapshots.setLabels". + + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * inserts a Zonal InstantSnapshotGroup resource + * + * Create a request for the method "instantSnapshotGroups.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.ZoneSetLabelsRequest} + * @param zone Name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.InstantSnapshotGroup} * @return the request */ - public SetLabels setLabels(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, zone, resource, content); + public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstantSnapshotGroup content) throws java.io.IOException { + Insert result = new Insert(project, zone, content); initialize(result); return result; } - public class SetLabels extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -92474,28 +91360,22 @@ public class SetLabels extends ComputeRequest - * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

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

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

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.ZoneSetLabelsRequest} + * @param zone Name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.InstantSnapshotGroup} * @since 1.13 */ - protected SetLabels(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetLabelsRequest content) { + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstantSnapshotGroup 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()) { @@ -92509,72 +91389,66 @@ protected SetLabels(java.lang.String project, java.lang.String zone, java.lang.S "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 SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -92588,7 +91462,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -92598,18 +91472,18 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** 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. + /** Name of the zone for this request. */ public java.lang.String getZone() { return zone; } - /** The name of the zone for this request. */ - public SetLabels setZone(java.lang.String zone) { + /** Name of the zone for this request. */ + public Insert setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), "Parameter zone must conform to the pattern " + @@ -92619,27 +91493,6 @@ public SetLabels 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. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -92684,39 +91537,53 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public SetLabels setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } + /** begin_interface: MixerMutationRequestBuilder */ + @com.google.api.client.util.Key + private java.lang.String sourceConsistencyGroup; + + /** begin_interface: MixerMutationRequestBuilder + */ + public java.lang.String getSourceConsistencyGroup() { + return sourceConsistencyGroup; + } + + /** begin_interface: MixerMutationRequestBuilder */ + public Insert setSourceConsistencyGroup(java.lang.String sourceConsistencyGroup) { + this.sourceConsistencyGroup = sourceConsistencyGroup; + return this; + } + @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * retrieves the list of InstantSnapshotGroup resources contained within the specified zone. * - * Create a request for the method "instantSnapshots.testIamPermissions". + * Create a request for the method "instantSnapshotGroups.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); + public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { + List result = new List(project, zone); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -92724,28 +91591,22 @@ public class TestIamPermissions extends ComputeRequest {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

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

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected List(java.lang.String project, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ListInstantSnapshotGroups.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -92758,72 +91619,76 @@ protected TestIamPermissions(java.lang.String project, java.lang.String zone, ja "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -92837,7 +91702,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + public List setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -92858,7 +91723,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public TestIamPermissions 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 " + @@ -92868,341 +91733,405 @@ public TestIamPermissions setZone(java.lang.String zone) { return this; } - /** Name or id of the resource for this request. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String filter; - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - } + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - /** - * An accessor for creating requests from the InterconnectAttachmentGroups collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InterconnectAttachmentGroups.List request = compute.interconnectAttachmentGroups().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public InterconnectAttachmentGroups interconnectAttachmentGroups() { - return new InterconnectAttachmentGroups(); - } + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. - /** - * The "interconnectAttachmentGroups" collection of methods. - */ - public class InterconnectAttachmentGroups { + 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) ``` - /** - * Create Interconnect Attachments with redundancy by creating them in a specified interconnect - * attachment group. - * - * Create a request for the method "interconnectAttachmentGroups.createMembers". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link CreateMembers#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param interconnectAttachmentGroup Name of the group resource to create members for. - * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroupsCreateMembersRequest} - * @return the request - */ - public CreateMembers createMembers(java.lang.String project, java.lang.String interconnectAttachmentGroup, com.google.api.services.compute.model.InterconnectAttachmentGroupsCreateMembersRequest content) throws java.io.IOException { - CreateMembers result = new CreateMembers(project, interconnectAttachmentGroup, content); - initialize(result); - return result; - } + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: - public class CreateMembers extends ComputeRequest { + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}/createMembers"; + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. - private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } /** - * Create Interconnect Attachments with redundancy by creating them in a specified interconnect - * attachment group. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "interconnectAttachmentGroups.createMembers". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link CreateMembers#execute()} method to invoke the remote operation.

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

+ * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * @param project Project ID for this request. - * @param interconnectAttachmentGroup Name of the group resource to create members for. - * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroupsCreateMembersRequest} - * @since 1.13 + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - protected CreateMembers(java.lang.String project, java.lang.String interconnectAttachmentGroup, com.google.api.services.compute.model.InterconnectAttachmentGroupsCreateMembersRequest 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.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), - "Parameter interconnectAttachmentGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public CreateMembers set$Xgafv(java.lang.String $Xgafv) { - return (CreateMembers) super.set$Xgafv($Xgafv); + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - @Override - public CreateMembers setAccessToken(java.lang.String accessToken) { - return (CreateMembers) super.setAccessToken(accessToken); - } + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; - @Override - public CreateMembers setAlt(java.lang.String alt) { - return (CreateMembers) super.setAlt(alt); + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; } - @Override - public CreateMembers setCallback(java.lang.String callback) { - return (CreateMembers) super.setCallback(callback); + /** + * 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 CreateMembers setFields(java.lang.String fields) { - return (CreateMembers) super.setFields(fields); - } - - @Override - public CreateMembers setKey(java.lang.String key) { - return (CreateMembers) super.setKey(key); - } - - @Override - public CreateMembers setOauthToken(java.lang.String oauthToken) { - return (CreateMembers) super.setOauthToken(oauthToken); - } - - @Override - public CreateMembers setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CreateMembers) super.setPrettyPrint(prettyPrint); - } + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public CreateMembers setQuotaUser(java.lang.String quotaUser) { - return (CreateMembers) super.setQuotaUser(quotaUser); - } + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - @Override - public CreateMembers setUploadType(java.lang.String uploadType) { - return (CreateMembers) super.setUploadType(uploadType); - } + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - @Override - public CreateMembers setUploadProtocol(java.lang.String uploadProtocol) { - return (CreateMembers) super.setUploadProtocol(uploadProtocol); + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; } - @Override - public CreateMembers setUserIp(java.lang.String userIp) { - return (CreateMembers) super.setUserIp(userIp); + /** + * 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; } - /** Project ID for this request. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String pageToken; - /** Project ID for this request. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getProject() { - return project; + public java.lang.String getPageToken() { + return pageToken; } - /** Project ID for this request. */ - public CreateMembers setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } - /** Name of the group resource to create members for. */ + /** + * 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 interconnectAttachmentGroup; + private java.lang.Boolean returnPartialSuccess; - /** Name of the group resource to create members for. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getInterconnectAttachmentGroup() { - return interconnectAttachmentGroup; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** Name of the group resource to create members for. */ - public CreateMembers setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), - "Parameter interconnectAttachmentGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnectAttachmentGroup = interconnectAttachmentGroup; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public CreateMembers set(String parameterName, Object value) { - return (CreateMembers) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Deletes the specified InterconnectAttachmentGroup in the given scope + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "interconnectAttachmentGroups.delete". + * Create a request for the method "instantSnapshotGroups.setIamPolicy". * * 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 SetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to delete. + * @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.ZoneSetPolicyRequest} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String interconnectAttachmentGroup) throws java.io.IOException { - Delete result = new Delete(project, interconnectAttachmentGroup); + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_GROUP_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified InterconnectAttachmentGroup in the given scope + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "interconnectAttachmentGroups.delete". + * Create a request for the method "instantSnapshotGroups.setIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to delete. + * @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.ZoneSetPolicyRequest} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String interconnectAttachmentGroup) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected SetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), - "Parameter interconnectAttachmentGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -93216,7 +92145,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public SetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -93226,207 +92155,183 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the InterconnectAttachmentGroup resource to delete. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachmentGroup; + private java.lang.String zone; - /** Name of the InterconnectAttachmentGroup resource to delete. + /** The name of the zone for this request. */ - public java.lang.String getInterconnectAttachmentGroup() { - return interconnectAttachmentGroup; + public java.lang.String getZone() { + return zone; } - /** Name of the InterconnectAttachmentGroup resource to delete. */ - public Delete setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { + /** The name of the zone for this request. */ + public SetIamPolicy setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), - "Parameter interconnectAttachmentGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.interconnectAttachmentGroup = interconnectAttachmentGroup; + this.zone = zone; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String resource; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder - */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Returns the specified InterconnectAttachmentGroup resource in the given scope. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "interconnectAttachmentGroups.get". + * Create a request for the method "instantSnapshotGroups.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to return. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public Get get(java.lang.String project, java.lang.String interconnectAttachmentGroup) throws java.io.IOException { - Get result = new Get(project, interconnectAttachmentGroup); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshotGroups/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_GROUP_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the specified InterconnectAttachmentGroup resource in the given scope. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "interconnectAttachmentGroups.get". + * Create a request for the method "instantSnapshotGroups.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to return. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String interconnectAttachmentGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentGroup.class); + protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), - "Parameter interconnectAttachmentGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -93440,7 +92345,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -93450,90 +92355,128 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the InterconnectAttachmentGroup resource to return. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachmentGroup; + private java.lang.String zone; - /** Name of the InterconnectAttachmentGroup resource to return. + /** The name of the zone for this request. */ - public java.lang.String getInterconnectAttachmentGroup() { - return interconnectAttachmentGroup; + public java.lang.String getZone() { + return zone; } - /** Name of the InterconnectAttachmentGroup resource to return. */ - public Get setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { + /** The name of the zone for this request. */ + public TestIamPermissions setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), - "Parameter interconnectAttachmentGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnectAttachmentGroup = interconnectAttachmentGroup; + this.resource = resource; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the InstantSnapshots collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InstantSnapshots.List request = compute.instantSnapshots().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InstantSnapshots instantSnapshots() { + return new InstantSnapshots(); + } + + /** + * The "instantSnapshots" collection of methods. + */ + public class InstantSnapshots { + /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Retrieves an aggregated list of instantSnapshots. * - * Create a request for the method "interconnectAttachmentGroups.getIamPolicy". + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "instantSnapshots.aggregatedList". * * 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 AggregatedList#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/aggregated/instantSnapshots"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. + * Retrieves an aggregated list of instantSnapshots. * - * Create a request for the method "interconnectAttachmentGroups.getIamPolicy". + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "instantSnapshots.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

+ * parameters, call the {@link 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 resource Name or id of the resource for this request. * @since 1.13 */ - protected GetIamPolicy(java.lang.String project, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstantSnapshotAggregatedList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override @@ -93547,63 +92490,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -93617,7 +92560,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy 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 " + @@ -93627,178 +92570,469 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String filter; - /** Name or id of the resource for this request. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getFilter() { + return filter; } - /** Name or id of the resource for this request. */ - public 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; + /** + * 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; } - /** Requested IAM Policy version. */ + /** + * 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.Integer optionsRequestedPolicyVersion; + private java.lang.Boolean includeAllScopes; - /** Requested IAM Policy version. + /** 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.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** + * 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 GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Returns the InterconnectAttachmentStatuses for the specified InterconnectAttachmentGroup - * resource. + * Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single + * instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on + * the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the + * data will be moved to the next corresponding instantSnapshot. * - * Create a request for the method "interconnectAttachmentGroups.getOperationalStatus". + * For more information, seeDeleting instantSnapshots. + * + * Create a request for the method "instantSnapshots.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetOperationalStatus#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnectAttachmentGroup Name of the interconnectAttachmentGroup resource to query. + * @param zone The name of the zone for this request. + * @param instantSnapshot Name of the InstantSnapshot resource to delete. * @return the request */ - public GetOperationalStatus getOperationalStatus(java.lang.String project, java.lang.String interconnectAttachmentGroup) throws java.io.IOException { - GetOperationalStatus result = new GetOperationalStatus(project, interconnectAttachmentGroup); + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshot) throws java.io.IOException { + Delete result = new Delete(project, zone, instantSnapshot); initialize(result); return result; } - public class GetOperationalStatus extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}/getOperationalStatus"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_GROUP_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern INSTANT_SNAPSHOT_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the InterconnectAttachmentStatuses for the specified InterconnectAttachmentGroup - * resource. + * Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single + * instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data + * on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, + * the data will be moved to the next corresponding instantSnapshot. * - * Create a request for the method "interconnectAttachmentGroups.getOperationalStatus". + * For more information, seeDeleting instantSnapshots. + * + * Create a request for the method "instantSnapshots.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetOperationalStatus#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param interconnectAttachmentGroup Name of the interconnectAttachmentGroup resource to query. + * @param zone The name of the zone for this request. + * @param instantSnapshot Name of the InstantSnapshot resource to delete. * @since 1.13 */ - protected GetOperationalStatus(java.lang.String project, java.lang.String interconnectAttachmentGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentGroupsGetOperationalStatusResponse.class); + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshot) { + 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.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), - "Parameter interconnectAttachmentGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.instantSnapshot = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshot, "Required parameter instantSnapshot must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), + "Parameter instantSnapshot 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(); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public GetOperationalStatus set$Xgafv(java.lang.String $Xgafv) { - return (GetOperationalStatus) super.set$Xgafv($Xgafv); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public GetOperationalStatus setAccessToken(java.lang.String accessToken) { - return (GetOperationalStatus) super.setAccessToken(accessToken); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public GetOperationalStatus setAlt(java.lang.String alt) { - return (GetOperationalStatus) super.setAlt(alt); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public GetOperationalStatus setCallback(java.lang.String callback) { - return (GetOperationalStatus) super.setCallback(callback); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public GetOperationalStatus setFields(java.lang.String fields) { - return (GetOperationalStatus) super.setFields(fields); - } - - @Override - public GetOperationalStatus setKey(java.lang.String key) { - return (GetOperationalStatus) super.setKey(key); - } - - @Override - public GetOperationalStatus setOauthToken(java.lang.String oauthToken) { - return (GetOperationalStatus) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public GetOperationalStatus setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetOperationalStatus) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public GetOperationalStatus setQuotaUser(java.lang.String quotaUser) { - return (GetOperationalStatus) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public GetOperationalStatus setUploadType(java.lang.String uploadType) { - return (GetOperationalStatus) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public GetOperationalStatus setUploadProtocol(java.lang.String uploadProtocol) { - return (GetOperationalStatus) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public GetOperationalStatus setUserIp(java.lang.String userIp) { - return (GetOperationalStatus) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -93812,7 +93046,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetOperationalStatus setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -93822,141 +93056,239 @@ public GetOperationalStatus setProject(java.lang.String project) { return this; } - /** Name of the interconnectAttachmentGroup resource to query. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachmentGroup; + private java.lang.String zone; - /** Name of the interconnectAttachmentGroup resource to query. + /** The name of the zone for this request. */ - public java.lang.String getInterconnectAttachmentGroup() { - return interconnectAttachmentGroup; + public java.lang.String getZone() { + return zone; } - /** Name of the interconnectAttachmentGroup resource to query. */ - public GetOperationalStatus setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { + /** The name of the zone for this request. */ + public Delete setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), - "Parameter interconnectAttachmentGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + + /** Name of the InstantSnapshot resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String instantSnapshot; + + /** Name of the InstantSnapshot resource to delete. + */ + public java.lang.String getInstantSnapshot() { + return instantSnapshot; + } + + /** Name of the InstantSnapshot resource to delete. */ + public Delete setInstantSnapshot(java.lang.String instantSnapshot) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), + "Parameter instantSnapshot must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnectAttachmentGroup = interconnectAttachmentGroup; + this.instantSnapshot = instantSnapshot; + 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 GetOperationalStatus set(String parameterName, Object value) { - return (GetOperationalStatus) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Creates a InterconnectAttachmentGroup in the specified project in the given scope using the - * parameters that are included in the request. + * Returns the specified InstantSnapshot resource in the specified zone. * - * Create a request for the method "interconnectAttachmentGroups.insert". + * Create a request for the method "instantSnapshots.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} + * @param zone The name of the zone for this request. + * @param instantSnapshot Name of the InstantSnapshot resource to return. * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.InterconnectAttachmentGroup content) throws java.io.IOException { - Insert result = new Insert(project, content); + public Get get(java.lang.String project, java.lang.String zone, java.lang.String instantSnapshot) throws java.io.IOException { + Get result = new Get(project, zone, instantSnapshot); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern INSTANT_SNAPSHOT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Creates a InterconnectAttachmentGroup in the specified project in the given scope using the - * parameters that are included in the request. + * Returns the specified InstantSnapshot resource in the specified zone. * - * Create a request for the method "interconnectAttachmentGroups.insert". + * Create a request for the method "instantSnapshots.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * parameters, call the {@link 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 content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} + * @param zone The name of the zone for this request. + * @param instantSnapshot Name of the InstantSnapshot resource to return. * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.InterconnectAttachmentGroup 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 instantSnapshot) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstantSnapshot.class); this.project = com.google.api.client.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.instantSnapshot = com.google.api.client.util.Preconditions.checkNotNull(instantSnapshot, "Required parameter instantSnapshot must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), + "Parameter instantSnapshot must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -93970,7 +93302,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -93980,105 +93312,122 @@ public Insert setProject(java.lang.String project) { return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder - */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private 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. + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** 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; + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + /** Name of the InstantSnapshot resource to return. */ + @com.google.api.client.util.Key + private java.lang.String instantSnapshot; + + /** Name of the InstantSnapshot resource to return. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getInstantSnapshot() { + return instantSnapshot; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder - */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Name of the InstantSnapshot resource to return. */ + public Get setInstantSnapshot(java.lang.String instantSnapshot) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANT_SNAPSHOT_PATTERN.matcher(instantSnapshot).matches(), + "Parameter instantSnapshot must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instantSnapshot = instantSnapshot; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Lists the InterconnectAttachmentGroups for a project in the given scope. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "interconnectAttachmentGroups.list". + * Create a request for the method "instantSnapshots.getIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link 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 List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + 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 List extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Lists the InterconnectAttachmentGroups for a project in the given scope. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "interconnectAttachmentGroups.list". + * Create a request for the method "instantSnapshots.getIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentGroupsListResponse.class); + 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 @@ -94092,63 +93441,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -94162,7 +93511,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public GetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -94172,396 +93521,187 @@ public List setProject(java.lang.String project) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String filter; + private java.lang.String zone; - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + /** The name of the zone for this request. */ + public 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; + } - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. + /** Name 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; + } - 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. - */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.Integer optionsRequestedPolicyVersion; - 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. + /** Requested IAM Policy version. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Patches the specified InterconnectAttachmentGroup resource with the data included in the request. - * This method supports PATCH semantics and usesJSON merge patch format and processing rules. + * Creates an instant snapshot in the specified zone. * - * Create a request for the method "interconnectAttachmentGroups.patch". + * Create a request for the method "instantSnapshots.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to patch. - * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} + * @param zone Name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.InstantSnapshot} * @return the request */ - public Patch patch(java.lang.String project, java.lang.String interconnectAttachmentGroup, com.google.api.services.compute.model.InterconnectAttachmentGroup content) throws java.io.IOException { - Patch result = new Patch(project, interconnectAttachmentGroup, content); + public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstantSnapshot content) throws java.io.IOException { + Insert result = new Insert(project, zone, content); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Patches the specified InterconnectAttachmentGroup resource with the data included in the - * request. This method supports PATCH semantics and usesJSON merge patch format and processing - * rules. + * Creates an instant snapshot in the specified zone. * - * Create a request for the method "interconnectAttachmentGroups.patch". + * Create a request for the method "instantSnapshots.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to patch. - * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} + * @param zone Name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.InstantSnapshot} * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String interconnectAttachmentGroup, com.google.api.services.compute.model.InterconnectAttachmentGroup content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.InstantSnapshot 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.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), - "Parameter interconnectAttachmentGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -94575,7 +93715,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -94585,24 +93725,24 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the InterconnectAttachmentGroup resource to patch. */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachmentGroup; + private java.lang.String zone; - /** Name of the InterconnectAttachmentGroup resource to patch. + /** Name of the zone for this request. */ - public java.lang.String getInterconnectAttachmentGroup() { - return interconnectAttachmentGroup; + public java.lang.String getZone() { + return zone; } - /** Name of the InterconnectAttachmentGroup resource to patch. */ - public Patch setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { + /** Name of the zone for this request. */ + public Insert setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), - "Parameter interconnectAttachmentGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.interconnectAttachmentGroup = interconnectAttachmentGroup; + this.zone = zone; return this; } @@ -94617,7 +93757,7 @@ public Patch setInterconnectAttachmentGroup(java.lang.String interconnectAttachm * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -94631,7 +93771,7 @@ public Patch setInterconnectAttachmentGroup(java.lang.String interconnectAttachm clients from accidentally creating 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 + (00000000-0000-0000-0000-000000000000). */ public java.lang.String getRequestId() { return requestId; @@ -94648,153 +93788,144 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * (00000000-0000-0000-0000-000000000000). */ - public Patch setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } - /** The list of fields to update. */ - @com.google.api.client.util.Key - private String updateMask; - - /** The list of fields to update. - */ - public String getUpdateMask() { - return updateMask; - } - - /** The list of fields to update. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Retrieves the list of InstantSnapshot resources contained within the specified zone. * - * Create a request for the method "interconnectAttachmentGroups.setIamPolicy". + * Create a request for the method "instantSnapshots.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @param zone The name of the zone for this request. * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, resource, content); + public 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 SetIamPolicy extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Retrieves the list of InstantSnapshot resources contained within the specified zone. * - * Create a request for the method "interconnectAttachmentGroups.setIamPolicy". + * Create a request for the method "instantSnapshots.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @param zone The name of the zone for this request. * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + protected List(java.lang.String project, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InstantSnapshotList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) 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. */ @@ -94808,7 +93939,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy 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 " + @@ -94818,365 +93949,24 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String zone; - /** Name or id of the resource for this request. + /** The name of the zone for this request. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getZone() { + return zone; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** The name of the zone for this request. */ + public List setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.resource = resource; - return this; - } - - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "interconnectAttachmentGroups.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/testIamPermissions"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "interconnectAttachmentGroups.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - } - - /** - * An accessor for creating requests from the InterconnectAttachments collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InterconnectAttachments.List request = compute.interconnectAttachments().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public InterconnectAttachments interconnectAttachments() { - return new InterconnectAttachments(); - } - - /** - * The "interconnectAttachments" collection of methods. - */ - public class InterconnectAttachments { - - /** - * Retrieves an aggregated list of interconnect attachments. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "interconnectAttachments.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/interconnectAttachments"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - /** - * Retrieves an aggregated list of interconnect attachments. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "interconnectAttachments.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

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

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentAggregatedList.class); - this.project = com.google.api.client.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; + this.zone = zone; return this; } @@ -95311,45 +94101,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - return this; - } - /** * The maximum number of results per page that should be returned. If the number of available * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be @@ -95374,7 +94130,7 @@ public java.lang.Long getMaxResults() { * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public AggregatedList setMaxResults(java.lang.Long maxResults) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -95418,7 +94174,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -95441,7 +94197,7 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public AggregatedList setPageToken(java.lang.String pageToken) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -95473,166 +94229,146 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Deletes the specified interconnect attachment. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "interconnectAttachments.delete". + * Create a request for the method "instantSnapshots.setIamPolicy". * * 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 SetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param interconnectAttachment Name of the interconnect attachment to delete. + * @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.ZoneSetPolicyRequest} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) throws java.io.IOException { - Delete result = new Delete(project, region, interconnectAttachment); + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_PATTERN = + private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified interconnect attachment. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "interconnectAttachments.delete". + * Create a request for the method "instantSnapshots.setIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param interconnectAttachment Name of the interconnect attachment to delete. + * @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.ZoneSetPolicyRequest} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected SetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -95646,7 +94382,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public SetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -95656,239 +94392,185 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** Name of the region for this request. */ - public Delete setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public SetIamPolicy setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } - /** Name of the interconnect attachment to delete. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachment; + private java.lang.String resource; - /** Name of the interconnect attachment to delete. + /** Name or id of the resource for this request. */ - public java.lang.String getInterconnectAttachment() { - return interconnectAttachment; + public java.lang.String getResource() { + return resource; } - /** Name of the interconnect attachment to delete. */ - public Delete setInterconnectAttachment(java.lang.String interconnectAttachment) { + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnectAttachment = interconnectAttachment; - 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; + this.resource = resource; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Returns the specified interconnect attachment. + * Sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the + * Labeling Resources documentation. * - * Create a request for the method "interconnectAttachments.get". + * Create a request for the method "instantSnapshots.setLabels". * * 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 SetLabels#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param interconnectAttachment Name of the interconnect attachment to return. + * @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.ZoneSetLabelsRequest} * @return the request */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) throws java.io.IOException { - Get result = new Get(project, region, interconnectAttachment); + public SetLabels setLabels(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, zone, resource, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_PATTERN = + private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the specified interconnect attachment. + * Sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the + * Labeling Resources documentation. * - * Create a request for the method "interconnectAttachments.get". + * Create a request for the method "instantSnapshots.setLabels". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param interconnectAttachment Name of the interconnect attachment to return. + * @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.ZoneSetLabelsRequest} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachment.class); + protected SetLabels(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetLabelsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -95902,7 +94584,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public SetLabels setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -95912,114 +94594,164 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** Name of the region for this request. */ - public Get setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public SetLabels setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } - /** Name of the interconnect attachment to return. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectAttachment; + private java.lang.String resource; - /** Name of the interconnect attachment to return. + /** Name or id of the resource for this request. */ - public java.lang.String getInterconnectAttachment() { - return interconnectAttachment; + public java.lang.String getResource() { + return resource; } - /** Name of the interconnect attachment to return. */ - public Get setInterconnectAttachment(java.lang.String interconnectAttachment) { + /** Name or id of the resource for this request. */ + public SetLabels setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnectAttachment = interconnectAttachment; + this.resource = resource; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating 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 SetLabels 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 SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "interconnectAttachments.getIamPolicy". + * Create a request for the method "instantSnapshots.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. + * @param zone The name of the zone for this request. * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, region, resource); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/instantSnapshots/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "interconnectAttachments.getIamPolicy". + * Create a request for the method "instantSnapshots.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param region The name of the region for this request. + * @param zone The name of the zone for this request. * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected GetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); @@ -96031,73 +94763,63 @@ protected GetIamPolicy(java.lang.String project, java.lang.String region, java.l } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -96111,7 +94833,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -96121,24 +94843,24 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** The name of the region for this request. */ - public GetIamPolicy setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public TestIamPermissions setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } @@ -96153,7 +94875,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + @@ -96163,74 +94885,82 @@ public GetIamPolicy setResource(java.lang.String resource) { return this; } - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the InterconnectAttachmentGroups collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InterconnectAttachmentGroups.List request = compute.interconnectAttachmentGroups().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InterconnectAttachmentGroups interconnectAttachmentGroups() { + return new InterconnectAttachmentGroups(); + } + + /** + * The "interconnectAttachmentGroups" collection of methods. + */ + public class InterconnectAttachmentGroups { + /** - * Creates an InterconnectAttachment in the specified project using the data included in the - * request. + * Create Interconnect Attachments with redundancy by creating them in a specified interconnect + * attachment group. * - * Create a request for the method "interconnectAttachments.insert". + * Create a request for the method "interconnectAttachmentGroups.createMembers". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link CreateMembers#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} + * @param interconnectAttachmentGroup Name of the group resource to create members for. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroupsCreateMembersRequest} * @return the request */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InterconnectAttachment content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + public CreateMembers createMembers(java.lang.String project, java.lang.String interconnectAttachmentGroup, com.google.api.services.compute.model.InterconnectAttachmentGroupsCreateMembersRequest content) throws java.io.IOException { + CreateMembers result = new CreateMembers(project, interconnectAttachmentGroup, content); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class CreateMembers extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}/createMembers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Creates an InterconnectAttachment in the specified project using the data included in the - * request. + * Create Interconnect Attachments with redundancy by creating them in a specified interconnect + * attachment group. * - * Create a request for the method "interconnectAttachments.insert". + * Create a request for the method "interconnectAttachmentGroups.createMembers". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

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

+ * {@link CreateMembers#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 region Name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} + * @param interconnectAttachmentGroup Name of the group resource to create members for. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroupsCreateMembersRequest} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InterconnectAttachment content) { + protected CreateMembers(java.lang.String project, java.lang.String interconnectAttachmentGroup, com.google.api.services.compute.model.InterconnectAttachmentGroupsCreateMembersRequest 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()) { @@ -96238,72 +94968,72 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public CreateMembers set$Xgafv(java.lang.String $Xgafv) { + return (CreateMembers) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public CreateMembers setAccessToken(java.lang.String accessToken) { + return (CreateMembers) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public CreateMembers setAlt(java.lang.String alt) { + return (CreateMembers) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public CreateMembers setCallback(java.lang.String callback) { + return (CreateMembers) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public CreateMembers setFields(java.lang.String fields) { + return (CreateMembers) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public CreateMembers setKey(java.lang.String key) { + return (CreateMembers) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public CreateMembers setOauthToken(java.lang.String oauthToken) { + return (CreateMembers) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public CreateMembers setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateMembers) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public CreateMembers setQuotaUser(java.lang.String quotaUser) { + return (CreateMembers) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public CreateMembers setUploadType(java.lang.String uploadType) { + return (CreateMembers) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public CreateMembers setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateMembers) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public CreateMembers setUserIp(java.lang.String userIp) { + return (CreateMembers) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -96317,7 +95047,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public CreateMembers setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -96327,24 +95057,189 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the group resource to create members for. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String interconnectAttachmentGroup; - /** Name of the region for this request. + /** Name of the group resource to create members for. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; } - /** Name of the region for this request. */ - public Insert setRegion(java.lang.String region) { + /** Name of the group resource to create members for. */ + public CreateMembers setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.region = region; + this.interconnectAttachmentGroup = interconnectAttachmentGroup; + return this; + } + + @Override + public CreateMembers set(String parameterName, Object value) { + return (CreateMembers) super.set(parameterName, value); + } + } + /** + * Deletes the specified InterconnectAttachmentGroup in the given scope + * + * Create a request for the method "interconnectAttachmentGroups.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 interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String interconnectAttachmentGroup) throws java.io.IOException { + Delete result = new Delete(project, interconnectAttachmentGroup); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified InterconnectAttachmentGroup in the given scope + * + * Create a request for the method "interconnectAttachmentGroups.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String interconnectAttachmentGroup) { + 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.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup 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 InterconnectAttachmentGroup resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String interconnectAttachmentGroup; + + /** Name of the InterconnectAttachmentGroup resource to delete. + */ + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; + } + + /** Name of the InterconnectAttachmentGroup resource to delete. */ + public Delete setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectAttachmentGroup = interconnectAttachmentGroup; return this; } @@ -96359,7 +95254,7 @@ public Insert setRegion(java.lang.String region) { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -96373,7 +95268,7 @@ public Insert setRegion(java.lang.String region) { clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -96390,89 +95285,73 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ - public Insert setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } - /** If true, the request will not be committed. */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** If true, the request will not be committed. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** If true, the request will not be committed. */ - public Insert setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Retrieves the list of interconnect attachments contained within the specified region. + * Returns the specified InterconnectAttachmentGroup resource in the given scope. * - * Create a request for the method "interconnectAttachments.list". + * Create a request for the method "interconnectAttachmentGroups.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to return. * @return the request */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + public Get get(java.lang.String project, java.lang.String interconnectAttachmentGroup) throws java.io.IOException { + Get result = new Get(project, interconnectAttachmentGroup); initialize(result); return result; } - public class List extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Retrieves the list of interconnect attachments contained within the specified region. + * Returns the specified InterconnectAttachmentGroup resource in the given scope. * - * Create a request for the method "interconnectAttachments.list". + * Create a request for the method "interconnectAttachmentGroups.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param region Name of the region for this request. + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to return. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentList.class); + protected Get(java.lang.String project, java.lang.String interconnectAttachmentGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentGroup.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -96487,63 +95366,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -96557,7 +95436,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List 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 " + @@ -96567,427 +95446,355 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** Name of the InterconnectAttachmentGroup resource to return. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String interconnectAttachmentGroup; - /** Name of the region for this request. + /** Name of the InterconnectAttachmentGroup resource to return. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; } - /** Name of the region for this request. */ - public List setRegion(java.lang.String region) { + /** Name of the InterconnectAttachmentGroup resource to return. */ + public Get setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.region = region; + this.interconnectAttachmentGroup = interconnectAttachmentGroup; 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 "interconnectAttachmentGroups.getIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/getIamPolicy"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "interconnectAttachmentGroups.getIamPolicy". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

* - * You cannot combine constraints on multiple fields using regular expressions. + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @since 1.13 */ - @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. + protected GetIamPolicy(java.lang.String project, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } - 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. + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } - 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: + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } - /** - * 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 GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } - /** - * 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. - */ + /** Project ID for this request. */ @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. + private java.lang.String project; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** Project ID for this request. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getProject() { + return project; } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; + /** Project ID for this request. */ + public GetIamPolicy setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; return this; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String resource; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Name or id of the resource for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getResource() { + return resource; } - /** - * 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; + /** 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; } - /** - * 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. - */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.Integer optionsRequestedPolicyVersion; - 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. + /** Requested IAM Policy version. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Updates the specified interconnect attachment with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * Returns the InterconnectAttachmentStatuses for the specified InterconnectAttachmentGroup + * resource. * - * Create a request for the method "interconnectAttachments.patch". + * Create a request for the method "interconnectAttachmentGroups.getOperationalStatus". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link GetOperationalStatus#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param interconnectAttachment Name of the interconnect attachment to patch. - * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} + * @param interconnectAttachmentGroup Name of the interconnectAttachmentGroup resource to query. * @return the request */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment, com.google.api.services.compute.model.InterconnectAttachment content) throws java.io.IOException { - Patch result = new Patch(project, region, interconnectAttachment, content); + public GetOperationalStatus getOperationalStatus(java.lang.String project, java.lang.String interconnectAttachmentGroup) throws java.io.IOException { + GetOperationalStatus result = new GetOperationalStatus(project, interconnectAttachmentGroup); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class GetOperationalStatus extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}/getOperationalStatus"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_PATTERN = + private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_GROUP_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Updates the specified interconnect attachment with the data included in the request. This - * method supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * Returns the InterconnectAttachmentStatuses for the specified InterconnectAttachmentGroup + * resource. * - * Create a request for the method "interconnectAttachments.patch". + * Create a request for the method "interconnectAttachmentGroups.getOperationalStatus". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param interconnectAttachment Name of the interconnect attachment to patch. - * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} + * @param interconnectAttachmentGroup Name of the interconnectAttachmentGroup resource to query. * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment, com.google.api.services.compute.model.InterconnectAttachment content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected GetOperationalStatus(java.lang.String project, java.lang.String interconnectAttachmentGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentGroupsGetOperationalStatusResponse.class); this.project = com.google.api.client.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.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); + this.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public GetOperationalStatus set$Xgafv(java.lang.String $Xgafv) { + return (GetOperationalStatus) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public GetOperationalStatus setAccessToken(java.lang.String accessToken) { + return (GetOperationalStatus) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public GetOperationalStatus setAlt(java.lang.String alt) { + return (GetOperationalStatus) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public GetOperationalStatus setCallback(java.lang.String callback) { + return (GetOperationalStatus) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public GetOperationalStatus setFields(java.lang.String fields) { + return (GetOperationalStatus) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public GetOperationalStatus setKey(java.lang.String key) { + return (GetOperationalStatus) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public GetOperationalStatus setOauthToken(java.lang.String oauthToken) { + return (GetOperationalStatus) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public GetOperationalStatus setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetOperationalStatus) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public GetOperationalStatus setQuotaUser(java.lang.String quotaUser) { + return (GetOperationalStatus) super.setQuotaUser(quotaUser); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public GetOperationalStatus setUploadType(java.lang.String uploadType) { + return (GetOperationalStatus) super.setUploadType(uploadType); + } + + @Override + public GetOperationalStatus setUploadProtocol(java.lang.String uploadProtocol) { + return (GetOperationalStatus) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetOperationalStatus setUserIp(java.lang.String userIp) { + return (GetOperationalStatus) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -97001,7 +95808,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public GetOperationalStatus setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -97011,45 +95818,161 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the interconnectAttachmentGroup resource to query. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String interconnectAttachmentGroup; - /** Name of the region scoping this request. + /** Name of the interconnectAttachmentGroup resource to query. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; } - /** Name of the region scoping this request. */ - public Patch setRegion(java.lang.String region) { + /** Name of the interconnectAttachmentGroup resource to query. */ + public GetOperationalStatus setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.region = region; + this.interconnectAttachmentGroup = interconnectAttachmentGroup; return this; } - /** Name of the interconnect attachment to patch. */ + @Override + public GetOperationalStatus set(String parameterName, Object value) { + return (GetOperationalStatus) super.set(parameterName, value); + } + } + /** + * Creates a InterconnectAttachmentGroup in the specified project in the given scope using the + * parameters that are included in the request. + * + * Create a request for the method "interconnectAttachmentGroups.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.InterconnectAttachmentGroup} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.InterconnectAttachmentGroup content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + /** + * Creates a InterconnectAttachmentGroup in the specified project in the given scope using the + * parameters that are included in the request. + * + * Create a request for the method "interconnectAttachmentGroups.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.InterconnectAttachmentGroup 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 interconnectAttachment; + private java.lang.String project; - /** Name of the interconnect attachment to patch. + /** Project ID for this request. */ - public java.lang.String getInterconnectAttachment() { - return interconnectAttachment; + public java.lang.String getProject() { + return project; } - /** Name of the interconnect attachment to patch. */ - public Patch setInterconnectAttachment(java.lang.String interconnectAttachment) { + /** Project ID for this request. */ + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), - "Parameter interconnectAttachment 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(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.interconnectAttachment = interconnectAttachment; + this.project = project; return this; } @@ -97064,7 +95987,7 @@ public Patch setInterconnectAttachment(java.lang.String interconnectAttachment) * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -97078,7 +96001,7 @@ public Patch setInterconnectAttachment(java.lang.String interconnectAttachment) clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -97095,148 +96018,133 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ - public Patch setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Lists the InterconnectAttachmentGroups for a project in the given scope. * - * Create a request for the method "interconnectAttachments.setIamPolicy". + * Create a request for the method "interconnectAttachmentGroups.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, region, resource, content); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class SetIamPolicy extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Lists the InterconnectAttachmentGroups for a project in the given scope. * - * Create a request for the method "interconnectAttachments.setIamPolicy". + * Create a request for the method "interconnectAttachmentGroups.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentGroupsListResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) 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. */ @@ -97250,7 +96158,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy 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 " + @@ -97260,185 +96168,396 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String filter; - /** The name of the region for this request. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getFilter() { + return filter; } - /** The name of the region for this request. */ - public SetIamPolicy setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; + /** + * 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; } - /** 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 SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling - * Resources documentation. + * Patches the specified InterconnectAttachmentGroup resource with the data included in the request. + * This method supports PATCH semantics and usesJSON merge patch format and processing rules. * - * Create a request for the method "interconnectAttachments.setLabels". + * Create a request for the method "interconnectAttachmentGroups.patch". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} * @return the request */ - public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, region, resource, content); + public Patch patch(java.lang.String project, java.lang.String interconnectAttachmentGroup, com.google.api.services.compute.model.InterconnectAttachmentGroup content) throws java.io.IOException { + Patch result = new Patch(project, interconnectAttachmentGroup, content); initialize(result); return result; } - public class SetLabels extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = + private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_GROUP_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling - * Resources documentation. + * Patches the specified InterconnectAttachmentGroup resource with the data included in the + * request. This method supports PATCH semantics and usesJSON merge patch format and processing + * rules. * - * Create a request for the method "interconnectAttachments.setLabels". + * Create a request for the method "interconnectAttachmentGroups.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param region The region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} + * @param interconnectAttachmentGroup Name of the InterconnectAttachmentGroup resource to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachmentGroup} * @since 1.13 */ - protected SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Patch(java.lang.String project, java.lang.String interconnectAttachmentGroup, com.google.api.services.compute.model.InterconnectAttachmentGroup content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.interconnectAttachmentGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachmentGroup, "Required parameter interconnectAttachmentGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -97452,7 +96571,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + public Patch setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -97462,45 +96581,24 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** The region for this request. */ + /** Name of the InterconnectAttachmentGroup resource to patch. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String interconnectAttachmentGroup; - /** The region for this request. + /** Name of the InterconnectAttachmentGroup resource to patch. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getInterconnectAttachmentGroup() { + return interconnectAttachmentGroup; } - /** The region for this request. */ - public SetLabels setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { + /** Name of the InterconnectAttachmentGroup resource to patch. */ + public Patch setInterconnectAttachmentGroup(java.lang.String interconnectAttachmentGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_GROUP_PATTERN.matcher(interconnectAttachmentGroup).matches(), + "Parameter interconnectAttachmentGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.interconnectAttachmentGroup = interconnectAttachmentGroup; return this; } @@ -97515,7 +96613,7 @@ public SetLabels setResource(java.lang.String resource) { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -97529,7 +96627,7 @@ public SetLabels setResource(java.lang.String resource) { clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -97546,148 +96644,153 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ - public SetLabels setRequestId(java.lang.String requestId) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } + /** The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** The list of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "interconnectAttachments.testIamPermissions". + * Create a request for the method "interconnectAttachmentGroups.setIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns permissions that a caller has on the specified resource. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "interconnectAttachments.testIamPermissions". + * Create a request for the method "interconnectAttachmentGroups.setIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param region The name of the region for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -97701,7 +96804,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + public SetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -97711,27 +96814,6 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - /** Name or id of the resource for this request. */ @com.google.api.client.util.Key private java.lang.String resource; @@ -97743,163 +96825,140 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the InterconnectGroups collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InterconnectGroups.List request = compute.interconnectGroups().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public InterconnectGroups interconnectGroups() { - return new InterconnectGroups(); - } - - /** - * The "interconnectGroups" collection of methods. - */ - public class InterconnectGroups { - /** - * Create Interconnects with redundancy by creating them in a specified interconnect group. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "interconnectGroups.createMembers". + * Create a request for the method "interconnectAttachmentGroups.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link CreateMembers#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnectGroup Name of the group resource to create members for. - * @param content the {@link com.google.api.services.compute.model.InterconnectGroupsCreateMembersRequest} + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public CreateMembers createMembers(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.model.InterconnectGroupsCreateMembersRequest content) throws java.io.IOException { - CreateMembers result = new CreateMembers(project, interconnectGroup, content); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); initialize(result); return result; } - public class CreateMembers extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}/createMembers"; + private static final String REST_PATH = "projects/{project}/global/interconnectAttachmentGroups/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern INTERCONNECT_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Create Interconnects with redundancy by creating them in a specified interconnect group. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "interconnectGroups.createMembers". + * Create a request for the method "interconnectAttachmentGroups.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link CreateMembers#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param interconnectGroup Name of the group resource to create members for. - * @param content the {@link com.google.api.services.compute.model.InterconnectGroupsCreateMembersRequest} + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected CreateMembers(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.model.InterconnectGroupsCreateMembersRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public CreateMembers set$Xgafv(java.lang.String $Xgafv) { - return (CreateMembers) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public CreateMembers setAccessToken(java.lang.String accessToken) { - return (CreateMembers) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public CreateMembers setAlt(java.lang.String alt) { - return (CreateMembers) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public CreateMembers setCallback(java.lang.String callback) { - return (CreateMembers) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public CreateMembers setFields(java.lang.String fields) { - return (CreateMembers) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public CreateMembers setKey(java.lang.String key) { - return (CreateMembers) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public CreateMembers setOauthToken(java.lang.String oauthToken) { - return (CreateMembers) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public CreateMembers setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CreateMembers) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public CreateMembers setQuotaUser(java.lang.String quotaUser) { - return (CreateMembers) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public CreateMembers setUploadType(java.lang.String uploadType) { - return (CreateMembers) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public CreateMembers setUploadProtocol(java.lang.String uploadProtocol) { - return (CreateMembers) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public CreateMembers setUserIp(java.lang.String userIp) { - return (CreateMembers) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -97913,7 +96972,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public CreateMembers setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -97923,148 +96982,177 @@ public CreateMembers setProject(java.lang.String project) { return this; } - /** Name of the group resource to create members for. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectGroup; + private java.lang.String resource; - /** Name of the group resource to create members for. + /** Name or id of the resource for this request. */ - public java.lang.String getInterconnectGroup() { - return interconnectGroup; + public java.lang.String getResource() { + return resource; } - /** Name of the group resource to create members for. */ - public CreateMembers setInterconnectGroup(java.lang.String interconnectGroup) { + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnectGroup = interconnectGroup; + this.resource = resource; return this; } @Override - public CreateMembers set(String parameterName, Object value) { - return (CreateMembers) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the InterconnectAttachments collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InterconnectAttachments.List request = compute.interconnectAttachments().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InterconnectAttachments interconnectAttachments() { + return new InterconnectAttachments(); + } + + /** + * The "interconnectAttachments" collection of methods. + */ + public class InterconnectAttachments { + /** - * Deletes the specified InterconnectGroup in the given scope + * Retrieves an aggregated list of interconnect attachments. * - * Create a request for the method "interconnectGroups.delete". + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "interconnectAttachments.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 interconnectGroup Name of the InterconnectGroup resource to delete. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String interconnectGroup) throws java.io.IOException { - Delete result = new Delete(project, interconnectGroup); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; + private static final String REST_PATH = "projects/{project}/aggregated/interconnectAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern INTERCONNECT_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Deletes the specified InterconnectGroup in the given scope + * Retrieves an aggregated list of interconnect attachments. * - * Create a request for the method "interconnectGroups.delete". + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "interconnectAttachments.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param interconnectGroup Name of the InterconnectGroup resource to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String interconnectGroup) { - 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.InterconnectAttachmentAggregatedList.class); this.project = com.google.api.client.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.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public 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. */ @@ -98078,7 +97166,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 " + @@ -98088,384 +97176,459 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the InterconnectGroup resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String interconnectGroup; - - /** Name of the InterconnectGroup resource to delete. - */ - public java.lang.String getInterconnectGroup() { - return interconnectGroup; - } - - /** Name of the InterconnectGroup resource to delete. */ - public Delete setInterconnectGroup(java.lang.String interconnectGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnectGroup = interconnectGroup; - return this; - } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). 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, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * 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:* ``` * - * 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 + * 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Returns the specified InterconnectGroup resource in the given scope. - * - * Create a request for the method "interconnectGroups.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 interconnectGroup Name of the InterconnectGroup resource to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String interconnectGroup) throws java.io.IOException { - Get result = new Get(project, interconnectGroup); - initialize(result); - return result; - } + /** 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. - public class Get extends ComputeRequest { + 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 `:`. - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - private final java.util.regex.Pattern INTERCONNECT_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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; + } /** - * Returns the specified InterconnectGroup resource in the given scope. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "interconnectGroups.get". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link 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.

+ * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * @param project Project ID for this request. - * @param interconnectGroup Name of the InterconnectGroup resource to return. - * @since 1.13 + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - protected Get(java.lang.String project, java.lang.String interconnectGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectGroup.class); - this.project = com.google.api.client.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.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + public AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + return this; } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public AggregatedList setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + /** + * 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; } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** + * 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; - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + /** 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; } - @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + /** + * 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; } - /** Project ID for this request. */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.Boolean returnPartialSuccess; - /** Project ID for this request. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getProject() { - return project; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** 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; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } - /** Name of the InterconnectGroup resource to return. */ + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ @com.google.api.client.util.Key - private java.lang.String interconnectGroup; + private java.lang.Long serviceProjectNumber; - /** Name of the InterconnectGroup resource to return. + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. */ - public java.lang.String getInterconnectGroup() { - return interconnectGroup; + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; } - /** Name of the InterconnectGroup resource to return. */ - public Get setInterconnectGroup(java.lang.String interconnectGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnectGroup = interconnectGroup; + /** + * 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Deletes the specified interconnect attachment. * - * Create a request for the method "interconnectGroups.getIamPolicy". + * Create a request for the method "interconnectAttachments.delete". * * 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 Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. + * @param region Name of the region for this request. + * @param interconnectAttachment Name of the interconnect attachment to delete. * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) throws java.io.IOException { + Delete result = new Delete(project, region, interconnectAttachment); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. + * Deletes the specified interconnect attachment. * - * Create a request for the method "interconnectGroups.getIamPolicy". + * Create a request for the method "interconnectAttachments.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. + * @param region Name of the region for this request. + * @param interconnectAttachment Name of the interconnect attachment to delete. * @since 1.13 */ - protected GetIamPolicy(java.lang.String project, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + protected Delete(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment 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(); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @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); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -98479,7 +97642,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -98489,104 +97652,167 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String region; - /** Name or id of the resource for this request. + /** Name of the region for this request. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getRegion() { + return region; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** Name of the region for this request. */ + public Delete setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.resource = resource; + this.region = region; return this; } - /** Requested IAM Policy version. */ + /** Name of the interconnect attachment to delete. */ @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; + private java.lang.String interconnectAttachment; - /** Requested IAM Policy version. + /** Name of the interconnect attachment to delete. */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.String getInterconnectAttachment() { + return interconnectAttachment; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** Name of the interconnect attachment to delete. */ + public Delete setInterconnectAttachment(java.lang.String interconnectAttachment) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectAttachment = interconnectAttachment; + 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 GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Returns the interconnectStatuses for the specified InterconnectGroup. + * Returns the specified interconnect attachment. * - * Create a request for the method "interconnectGroups.getOperationalStatus". + * Create a request for the method "interconnectAttachments.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetOperationalStatus#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 interconnectGroup Name of the interconnectGroup resource to query. + * @param region Name of the region for this request. + * @param interconnectAttachment Name of the interconnect attachment to return. * @return the request */ - public GetOperationalStatus getOperationalStatus(java.lang.String project, java.lang.String interconnectGroup) throws java.io.IOException { - GetOperationalStatus result = new GetOperationalStatus(project, interconnectGroup); + public Get get(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) throws java.io.IOException { + Get result = new Get(project, region, interconnectAttachment); initialize(result); return result; } - public class GetOperationalStatus extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}/getOperationalStatus"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern INTERCONNECT_GROUP_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the interconnectStatuses for the specified InterconnectGroup. + * Returns the specified interconnect attachment. * - * Create a request for the method "interconnectGroups.getOperationalStatus". + * Create a request for the method "interconnectAttachments.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetOperationalStatus#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param interconnectGroup Name of the interconnectGroup resource to query. + * @param region Name of the region for this request. + * @param interconnectAttachment Name of the interconnect attachment to return. * @since 1.13 */ - protected GetOperationalStatus(java.lang.String project, java.lang.String interconnectGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectGroupsGetOperationalStatusResponse.class); + protected Get(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachment.class); this.project = com.google.api.client.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.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -98602,63 +97828,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetOperationalStatus set$Xgafv(java.lang.String $Xgafv) { - return (GetOperationalStatus) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public GetOperationalStatus setAccessToken(java.lang.String accessToken) { - return (GetOperationalStatus) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public GetOperationalStatus setAlt(java.lang.String alt) { - return (GetOperationalStatus) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public GetOperationalStatus setCallback(java.lang.String callback) { - return (GetOperationalStatus) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public GetOperationalStatus setFields(java.lang.String fields) { - return (GetOperationalStatus) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public GetOperationalStatus setKey(java.lang.String key) { - return (GetOperationalStatus) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public GetOperationalStatus setOauthToken(java.lang.String oauthToken) { - return (GetOperationalStatus) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public GetOperationalStatus setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetOperationalStatus) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public GetOperationalStatus setQuotaUser(java.lang.String quotaUser) { - return (GetOperationalStatus) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public GetOperationalStatus setUploadType(java.lang.String uploadType) { - return (GetOperationalStatus) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public GetOperationalStatus setUploadProtocol(java.lang.String uploadProtocol) { - return (GetOperationalStatus) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public GetOperationalStatus setUserIp(java.lang.String userIp) { - return (GetOperationalStatus) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -98672,7 +97898,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetOperationalStatus 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 " + @@ -98682,141 +97908,192 @@ public GetOperationalStatus setProject(java.lang.String project) { return this; } - /** Name of the interconnectGroup resource to query. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectGroup; + private java.lang.String region; - /** Name of the interconnectGroup resource to query. + /** Name of the region for this request. */ - public java.lang.String getInterconnectGroup() { - return interconnectGroup; + public java.lang.String getRegion() { + return region; } - /** Name of the interconnectGroup resource to query. */ - public GetOperationalStatus setInterconnectGroup(java.lang.String interconnectGroup) { + /** Name of the region for this request. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name of the interconnect attachment to return. */ + @com.google.api.client.util.Key + private java.lang.String interconnectAttachment; + + /** Name of the interconnect attachment to return. + */ + public java.lang.String getInterconnectAttachment() { + return interconnectAttachment; + } + + /** Name of the interconnect attachment to return. */ + public Get setInterconnectAttachment(java.lang.String interconnectAttachment) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnectGroup = interconnectGroup; + this.interconnectAttachment = interconnectAttachment; return this; } @Override - public GetOperationalStatus set(String parameterName, Object value) { - return (GetOperationalStatus) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Creates a InterconnectGroup in the specified project in the given scope using the parameters that - * are included in the request. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "interconnectGroups.insert". + * Create a request for the method "interconnectAttachments.getIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.InterconnectGroup content) throws java.io.IOException { - Insert result = new Insert(project, content); + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, region, resource); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectGroups"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Creates a InterconnectGroup in the specified project in the given scope using the parameters - * that are included in the request. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "interconnectGroups.insert". + * Create a request for the method "interconnectAttachments.getIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.InterconnectGroup content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected GetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -98830,7 +98107,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public GetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -98840,119 +98117,373 @@ public Insert setProject(java.lang.String project) { return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder - */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String region; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** The name of the region for this request. */ + public GetIamPolicy setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + /** Name 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 getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + /** 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Lists the InterconnectGroups for a project in the given scope. + * Creates an InterconnectAttachment in the specified project using the data included in the + * request. * - * Create a request for the method "interconnectGroups.list". + * Create a request for the method "interconnectAttachments.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InterconnectAttachment content) throws java.io.IOException { + Insert result = new Insert(project, region, content); initialize(result); return result; } - public class List extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectGroups"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Lists the InterconnectGroups for a project in the given scope. + * Creates an InterconnectAttachment in the specified project using the data included in the + * request. * - * Create a request for the method "interconnectGroups.list". + * Create a request for the method "interconnectAttachments.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectGroupsListResponse.class); + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.InterconnectAttachment content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Insert setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public Insert setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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; + } + + /** If true, the request will not be committed. */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** If true, the request will not be committed. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** If true, the request will not be committed. */ + public Insert setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves the list of interconnect attachments contained within the specified region. + * + * Create a request for the method "interconnectAttachments.list". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @return the request + */ + public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { + List result = new List(project, region); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Retrieves the list of interconnect attachments contained within the specified region. + * + * Create a request for the method "interconnectAttachments.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectAttachmentList.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { return (List) super.set$Xgafv($Xgafv); } @@ -99032,6 +98563,27 @@ public List setProject(java.lang.String project) { return this; } + /** Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public List setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + /** * A filter expression that filters resources listed in the response. Most Compute resources * support two types of filter expressions: expressions that support regular expressions and @@ -99302,40 +98854,44 @@ public List set(String parameterName, Object value) { } } /** - * Patches the specified InterconnectGroup resource with the data included in the request. This - * method supports PATCH semantics and usesJSON merge patch format and processing rules. + * Updates the specified interconnect attachment with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. * - * Create a request for the method "interconnectGroups.patch". + * Create a request for the method "interconnectAttachments.patch". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnectGroup Name of the InterconnectGroup resource to patch. - * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} + * @param region Name of the region scoping this request. + * @param interconnectAttachment Name of the interconnect attachment to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} * @return the request */ - public Patch patch(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.model.InterconnectGroup content) throws java.io.IOException { - Patch result = new Patch(project, interconnectGroup, content); + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment, com.google.api.services.compute.model.InterconnectAttachment content) throws java.io.IOException { + Patch result = new Patch(project, region, interconnectAttachment, content); initialize(result); return result; } public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern INTERCONNECT_GROUP_PATTERN = + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern INTERCONNECT_ATTACHMENT_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Patches the specified InterconnectGroup resource with the data included in the request. This - * method supports PATCH semantics and usesJSON merge patch format and processing rules. + * Updates the specified interconnect attachment with the data included in the request. This + * method supportsPATCH semantics and uses theJSON merge patch format and processing rules. * - * Create a request for the method "interconnectGroups.patch". + * Create a request for the method "interconnectAttachments.patch". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link @@ -99343,11 +98899,12 @@ public class Patch extends ComputeRequest * * @param project Project ID for this request. - * @param interconnectGroup Name of the InterconnectGroup resource to patch. - * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} + * @param region Name of the region scoping this request. + * @param interconnectAttachment Name of the interconnect attachment to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectAttachment} * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.model.InterconnectGroup content) { + protected Patch(java.lang.String project, java.lang.String region, java.lang.String interconnectAttachment, com.google.api.services.compute.model.InterconnectAttachment 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()) { @@ -99355,10 +98912,16 @@ protected Patch(java.lang.String project, java.lang.String interconnectGroup, co "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.interconnectAttachment = com.google.api.client.util.Preconditions.checkNotNull(interconnectAttachment, "Required parameter interconnectAttachment must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -99444,24 +99007,45 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the InterconnectGroup resource to patch. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String interconnectGroup; + private java.lang.String region; - /** Name of the InterconnectGroup resource to patch. + /** Name of the region scoping this request. */ - public java.lang.String getInterconnectGroup() { - return interconnectGroup; + public java.lang.String getRegion() { + return region; } - /** Name of the InterconnectGroup resource to patch. */ - public Patch setInterconnectGroup(java.lang.String interconnectGroup) { + /** Name of the region scoping this request. */ + public Patch setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), - "Parameter interconnectGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name of the interconnect attachment to patch. */ + @com.google.api.client.util.Key + private java.lang.String interconnectAttachment; + + /** Name of the interconnect attachment to patch. + */ + public java.lang.String getInterconnectAttachment() { + return interconnectAttachment; + } + + /** Name of the interconnect attachment to patch. */ + public Patch setInterconnectAttachment(java.lang.String interconnectAttachment) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_ATTACHMENT_PATTERN.matcher(interconnectAttachment).matches(), + "Parameter interconnectAttachment must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnectGroup = interconnectGroup; + this.interconnectAttachment = interconnectAttachment; return this; } @@ -99476,7 +99060,7 @@ public Patch setInterconnectGroup(java.lang.String interconnectGroup) { * request. This prevents clients from accidentally creating 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 + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -99490,7 +99074,7 @@ public Patch setInterconnectGroup(java.lang.String interconnectGroup) { clients from accidentally creating 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 + (00000000-0000-0000-0000-000000000000). */ public java.lang.String getRequestId() { return requestId; @@ -99507,29 +99091,13 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * (00000000-0000-0000-0000-000000000000). */ public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } - /** The list of fields to update. */ - @com.google.api.client.util.Key - private String updateMask; - - /** The list of fields to update. - */ - public String getUpdateMask() { - return updateMask; - } - - /** The list of fields to update. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - @Override public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); @@ -99538,36 +99106,40 @@ public Patch set(String parameterName, Object value) { /** * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "interconnectGroups.setIamPolicy". + * Create a request for the method "interconnectAttachments.setIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param region The name of the region for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, resource, content); + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, region, resource, content); initialize(result); return result; } public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "interconnectGroups.setIamPolicy". + * Create a request for the method "interconnectAttachments.setIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

@@ -99576,11 +99148,12 @@ public class SetIamPolicy extends ComputeRequest * * @param project Project ID for this request. + * @param region The name of the region for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { + protected SetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { @@ -99588,11 +99161,17 @@ protected SetIamPolicy(java.lang.String project, java.lang.String resource, com. "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -99677,6 +99256,27 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public SetIamPolicy setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key private java.lang.String resource; @@ -99692,7 +99292,7 @@ public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; @@ -99704,123 +99304,385 @@ public SetIamPolicy set(String parameterName, Object value) { } } /** - * Returns permissions that a caller has on the specified resource. + * Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling + * Resources documentation. * - * Create a request for the method "interconnectGroups.testIamPermissions". + * Create a request for the method "interconnectAttachments.setLabels". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param region The region for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); + public SetLabels setLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, region, resource, content); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns permissions that a caller has on the specified resource. + * Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling + * Resources documentation. * - * Create a request for the method "interconnectGroups.testIamPermissions". + * Create a request for the method "interconnectAttachments.setLabels". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. + * @param region The region for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param content the {@link com.google.api.services.compute.model.RegionSetLabelsRequest} * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected SetLabels(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetLabelsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) 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 SetLabels setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The region for this request. */ + public SetLabels setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public SetLabels setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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 SetLabels setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "interconnectAttachments.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, region, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "interconnectAttachments.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { return (TestIamPermissions) super.setUserIp(userIp); } @@ -99845,6 +99707,27 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key private java.lang.String resource; @@ -99860,7 +99743,7 @@ public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.resource = resource; return this; @@ -99875,153 +99758,144 @@ public TestIamPermissions set(String parameterName, Object value) { } /** - * An accessor for creating requests from the InterconnectLocations collection. + * An accessor for creating requests from the InterconnectGroups collection. * *

The typical use is:

*
    *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InterconnectLocations.List request = compute.interconnectLocations().list(parameters ...)}
+   *   {@code Compute.InterconnectGroups.List request = compute.interconnectGroups().list(parameters ...)}
    * 
* * @return the resource collection */ - public InterconnectLocations interconnectLocations() { - return new InterconnectLocations(); + public InterconnectGroups interconnectGroups() { + return new InterconnectGroups(); } /** - * The "interconnectLocations" collection of methods. + * The "interconnectGroups" collection of methods. */ - public class InterconnectLocations { + public class InterconnectGroups { /** - * Returns the details for the specified interconnect location. Gets a list of available - * interconnect locations by making a list() request. + * Create Interconnects with redundancy by creating them in a specified interconnect group. * - * Create a request for the method "interconnectLocations.get". + * Create a request for the method "interconnectGroups.createMembers". * * 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 CreateMembers#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnectLocation Name of the interconnect location to return. + * @param interconnectGroup Name of the group resource to create members for. + * @param content the {@link com.google.api.services.compute.model.InterconnectGroupsCreateMembersRequest} * @return the request */ - public Get get(java.lang.String project, java.lang.String interconnectLocation) throws java.io.IOException { - Get result = new Get(project, interconnectLocation); + public CreateMembers createMembers(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.model.InterconnectGroupsCreateMembersRequest content) throws java.io.IOException { + CreateMembers result = new CreateMembers(project, interconnectGroup, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class CreateMembers extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectLocations/{interconnectLocation}"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}/createMembers"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern INTERCONNECT_LOCATION_PATTERN = + private final java.util.regex.Pattern INTERCONNECT_GROUP_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the details for the specified interconnect location. Gets a list of available - * interconnect locations by making a list() request. + * Create Interconnects with redundancy by creating them in a specified interconnect group. * - * Create a request for the method "interconnectLocations.get". + * Create a request for the method "interconnectGroups.createMembers". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

+ * {@link CreateMembers#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 interconnectLocation Name of the interconnect location to return. + * @param interconnectGroup Name of the group resource to create members for. + * @param content the {@link com.google.api.services.compute.model.InterconnectGroupsCreateMembersRequest} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String interconnectLocation) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectLocation.class); + protected CreateMembers(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.model.InterconnectGroupsCreateMembersRequest 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.interconnectLocation = com.google.api.client.util.Preconditions.checkNotNull(interconnectLocation, "Required parameter interconnectLocation must be specified."); + this.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_LOCATION_PATTERN.matcher(interconnectLocation).matches(), - "Parameter interconnectLocation must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup 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 CreateMembers set$Xgafv(java.lang.String $Xgafv) { + return (CreateMembers) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public CreateMembers setAccessToken(java.lang.String accessToken) { + return (CreateMembers) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public CreateMembers setAlt(java.lang.String alt) { + return (CreateMembers) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public CreateMembers setCallback(java.lang.String callback) { + return (CreateMembers) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public CreateMembers setFields(java.lang.String fields) { + return (CreateMembers) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public CreateMembers setKey(java.lang.String key) { + return (CreateMembers) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public CreateMembers setOauthToken(java.lang.String oauthToken) { + return (CreateMembers) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public CreateMembers setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateMembers) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public CreateMembers setQuotaUser(java.lang.String quotaUser) { + return (CreateMembers) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public CreateMembers setUploadType(java.lang.String uploadType) { + return (CreateMembers) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public CreateMembers setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateMembers) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public CreateMembers setUserIp(java.lang.String userIp) { + return (CreateMembers) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -100035,7 +99909,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public CreateMembers setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -100045,147 +99919,148 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the interconnect location to return. */ + /** Name of the group resource to create members for. */ @com.google.api.client.util.Key - private java.lang.String interconnectLocation; + private java.lang.String interconnectGroup; - /** Name of the interconnect location to return. + /** Name of the group resource to create members for. */ - public java.lang.String getInterconnectLocation() { - return interconnectLocation; + public java.lang.String getInterconnectGroup() { + return interconnectGroup; } - /** Name of the interconnect location to return. */ - public Get setInterconnectLocation(java.lang.String interconnectLocation) { + /** Name of the group resource to create members for. */ + public CreateMembers setInterconnectGroup(java.lang.String interconnectGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_LOCATION_PATTERN.matcher(interconnectLocation).matches(), - "Parameter interconnectLocation must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnectLocation = interconnectLocation; + this.interconnectGroup = interconnectGroup; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public CreateMembers set(String parameterName, Object value) { + return (CreateMembers) super.set(parameterName, value); } } /** - * Retrieves the list of interconnect locations available to the specified project. + * Deletes the specified InterconnectGroup in the given scope * - * Create a request for the method "interconnectLocations.list". + * Create a request for the method "interconnectGroups.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param interconnectGroup Name of the InterconnectGroup resource to delete. * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + public Delete delete(java.lang.String project, java.lang.String interconnectGroup) throws java.io.IOException { + Delete result = new Delete(project, interconnectGroup); initialize(result); return result; } - public class List extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectLocations"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern INTERCONNECT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Retrieves the list of interconnect locations available to the specified project. + * Deletes the specified InterconnectGroup in the given scope * - * Create a request for the method "interconnectLocations.list". + * Create a request for the method "interconnectGroups.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. + * @param interconnectGroup Name of the InterconnectGroup resource to delete. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectLocationList.class); + protected Delete(java.lang.String project, java.lang.String interconnectGroup) { + 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.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -100199,7 +100074,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -100209,332 +100084,113 @@ public List setProject(java.lang.String project) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. - - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } - - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ + /** Name of the InterconnectGroup resource to delete. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.String interconnectGroup; - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] + /** Name of the InterconnectGroup resource to delete. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.String getInterconnectGroup() { + return interconnectGroup; } - /** - * 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; + /** Name of the InterconnectGroup resource to delete. */ + public Delete setInterconnectGroup(java.lang.String interconnectGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectGroup = interconnectGroup; return this; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } + private java.lang.String requestId; - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the InterconnectRemoteLocations collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.InterconnectRemoteLocations.List request = compute.interconnectRemoteLocations().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public InterconnectRemoteLocations interconnectRemoteLocations() { - return new InterconnectRemoteLocations(); - } - - /** - * The "interconnectRemoteLocations" collection of methods. - */ - public class InterconnectRemoteLocations { - /** - * Returns the details for the specified interconnect remote location. Gets a list of available - * interconnect remote locations by making alist() request. + * Returns the specified InterconnectGroup resource in the given scope. * - * Create a request for the method "interconnectRemoteLocations.get". + * Create a request for the method "interconnectGroups.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 interconnectRemoteLocation Name of the interconnect remote location to return. + * @param interconnectGroup Name of the InterconnectGroup resource to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String interconnectRemoteLocation) throws java.io.IOException { - Get result = new Get(project, interconnectRemoteLocation); + public Get get(java.lang.String project, java.lang.String interconnectGroup) throws java.io.IOException { + Get result = new Get(project, interconnectGroup); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern INTERCONNECT_REMOTE_LOCATION_PATTERN = + private final java.util.regex.Pattern INTERCONNECT_GROUP_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the details for the specified interconnect remote location. Gets a list of available - * interconnect remote locations by making alist() request. + * Returns the specified InterconnectGroup resource in the given scope. * - * Create a request for the method "interconnectRemoteLocations.get". + * Create a request for the method "interconnectGroups.get". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link @@ -100542,21 +100198,21 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param interconnectRemoteLocation Name of the interconnect remote location to return. + * @param interconnectGroup Name of the InterconnectGroup resource to return. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String interconnectRemoteLocation) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectRemoteLocation.class); + protected Get(java.lang.String project, java.lang.String interconnectGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectGroup.class); this.project = com.google.api.client.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.interconnectRemoteLocation = com.google.api.client.util.Preconditions.checkNotNull(interconnectRemoteLocation, "Required parameter interconnectRemoteLocation must be specified."); + this.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_REMOTE_LOCATION_PATTERN.matcher(interconnectRemoteLocation).matches(), - "Parameter interconnectRemoteLocation must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -100652,24 +100308,24 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the interconnect remote location to return. */ + /** Name of the InterconnectGroup resource to return. */ @com.google.api.client.util.Key - private java.lang.String interconnectRemoteLocation; + private java.lang.String interconnectGroup; - /** Name of the interconnect remote location to return. + /** Name of the InterconnectGroup resource to return. */ - public java.lang.String getInterconnectRemoteLocation() { - return interconnectRemoteLocation; + public java.lang.String getInterconnectGroup() { + return interconnectGroup; } - /** Name of the interconnect remote location to return. */ - public Get setInterconnectRemoteLocation(java.lang.String interconnectRemoteLocation) { + /** Name of the InterconnectGroup resource to return. */ + public Get setInterconnectGroup(java.lang.String interconnectGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_REMOTE_LOCATION_PATTERN.matcher(interconnectRemoteLocation).matches(), - "Parameter interconnectRemoteLocation must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnectRemoteLocation = interconnectRemoteLocation; + this.interconnectGroup = interconnectGroup; return this; } @@ -100679,50 +100335,63 @@ public Get set(String parameterName, Object value) { } } /** - * Retrieves the list of interconnect remote locations available to the specified project. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "interconnectRemoteLocations.list". + * Create a request for the method "interconnectGroups.getIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); initialize(result); return result; } - public class List extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnectRemoteLocations"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Retrieves the list of interconnect remote locations available to the specified project. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "interconnectRemoteLocations.list". + * Create a request for the method "interconnectGroups.getIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectRemoteLocationList.class); + protected GetIamPolicy(java.lang.String project, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.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 @@ -100736,63 +100405,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -100806,7 +100475,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public GetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -100816,414 +100485,334 @@ public List setProject(java.lang.String project) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String filter; + private java.lang.String resource; - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + /** Name or id of the resource for this request. */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` + /** Requested IAM Policy version. */ + @com.google.api.client.util.Key + private java.lang.Integer optionsRequestedPolicyVersion; - 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. + /** Requested IAM Policy version. + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } - 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) ``` + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } - 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: + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Returns the interconnectStatuses for the specified InterconnectGroup. + * + * Create a request for the method "interconnectGroups.getOperationalStatus". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetOperationalStatus#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param interconnectGroup Name of the interconnectGroup resource to query. + * @return the request + */ + public GetOperationalStatus getOperationalStatus(java.lang.String project, java.lang.String interconnectGroup) throws java.io.IOException { + GetOperationalStatus result = new GetOperationalStatus(project, interconnectGroup); + initialize(result); + return result; + } - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + public class GetOperationalStatus extends ComputeRequest { - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}/getOperationalStatus"; - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } + private final java.util.regex.Pattern INTERCONNECT_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * Returns the interconnectStatuses for the specified InterconnectGroup. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "interconnectGroups.getOperationalStatus". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetOperationalStatus#execute()} method to invoke the remote + * operation.

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

* - * You cannot combine constraints on multiple fields using regular expressions. + * @param project Project ID for this request. + * @param interconnectGroup Name of the interconnectGroup resource to query. + * @since 1.13 */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + protected GetOperationalStatus(java.lang.String project, java.lang.String interconnectGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectGroupsGetOperationalStatusResponse.class); + this.project = com.google.api.client.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.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; + @Override + public GetOperationalStatus set$Xgafv(java.lang.String $Xgafv) { + return (GetOperationalStatus) super.set$Xgafv($Xgafv); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public GetOperationalStatus setAccessToken(java.lang.String accessToken) { + return (GetOperationalStatus) super.setAccessToken(accessToken); + } - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + @Override + public GetOperationalStatus setAlt(java.lang.String alt) { + return (GetOperationalStatus) super.setAlt(alt); + } - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + @Override + public GetOperationalStatus setCallback(java.lang.String callback) { + return (GetOperationalStatus) super.setCallback(callback); + } - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public GetOperationalStatus setFields(java.lang.String fields) { + return (GetOperationalStatus) super.setFields(fields); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; + @Override + public GetOperationalStatus setKey(java.lang.String key) { + return (GetOperationalStatus) super.setKey(key); } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + @Override + public GetOperationalStatus setOauthToken(java.lang.String oauthToken) { + return (GetOperationalStatus) super.setOauthToken(oauthToken); + } + + @Override + public GetOperationalStatus setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetOperationalStatus) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetOperationalStatus setQuotaUser(java.lang.String quotaUser) { + return (GetOperationalStatus) super.setQuotaUser(quotaUser); + } + + @Override + public GetOperationalStatus setUploadType(java.lang.String uploadType) { + return (GetOperationalStatus) super.setUploadType(uploadType); + } + + @Override + public GetOperationalStatus setUploadProtocol(java.lang.String uploadProtocol) { + return (GetOperationalStatus) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetOperationalStatus setUserIp(java.lang.String userIp) { + return (GetOperationalStatus) super.setUserIp(userIp); + } + + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String project; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Project ID for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getProject() { + return project; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** Project ID for this request. */ + public GetOperationalStatus setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; return this; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Name of the interconnectGroup resource to query. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String interconnectGroup; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Name of the interconnectGroup resource to query. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getInterconnectGroup() { + return interconnectGroup; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** Name of the interconnectGroup resource to query. */ + public GetOperationalStatus setInterconnectGroup(java.lang.String interconnectGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectGroup = interconnectGroup; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public GetOperationalStatus set(String parameterName, Object value) { + return (GetOperationalStatus) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the Interconnects collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Interconnects.List request = compute.interconnects().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Interconnects interconnects() { - return new Interconnects(); - } - - /** - * The "interconnects" collection of methods. - */ - public class Interconnects { - /** - * Deletes the specified Interconnect. + * Creates a InterconnectGroup in the specified project in the given scope using the parameters that + * are included in the request. * - * Create a request for the method "interconnects.delete". + * Create a request for the method "interconnectGroups.insert". * * 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 Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnect Name of the interconnect to delete. + * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { - Delete result = new Delete(project, interconnect); + public Insert insert(java.lang.String project, com.google.api.services.compute.model.InterconnectGroup content) throws java.io.IOException { + Insert result = new Insert(project, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern INTERCONNECT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Deletes the specified Interconnect. + * Creates a InterconnectGroup in the specified project in the given scope using the parameters + * that are included in the request. * - * Create a request for the method "interconnects.delete". + * Create a request for the method "interconnectGroups.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param interconnect Name of the interconnect to delete. + * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String interconnect) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Insert(java.lang.String project, com.google.api.services.compute.model.InterconnectGroup 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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -101237,7 +100826,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -101247,27 +100836,6 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the interconnect to delete. */ - @com.google.api.client.util.Key - private java.lang.String interconnect; - - /** Name of the interconnect to delete. - */ - public java.lang.String getInterconnect() { - return interconnect; - } - - /** Name of the interconnect to delete. */ - public Delete setInterconnect(java.lang.String interconnect) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnect = interconnect; - 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 @@ -101279,7 +100847,7 @@ public Delete setInterconnect(java.lang.String interconnect) { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -101293,7 +100861,7 @@ public Delete setInterconnect(java.lang.String interconnect) { clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -101310,76 +100878,63 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ - public Delete setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Returns the specified Interconnect. Get a list of available Interconnects by making a list() - * request. + * Lists the InterconnectGroups for a project in the given scope. * - * Create a request for the method "interconnects.get". + * Create a request for the method "interconnectGroups.list". * * 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 List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnect Name of the interconnect to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { - Get result = new Get(project, interconnect); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class Get extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern INTERCONNECT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Returns the specified Interconnect. Get a list of available Interconnects by making a list() - * request. + * Lists the InterconnectGroups for a project in the given scope. * - * Create a request for the method "interconnects.get". + * Create a request for the method "interconnectGroups.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param interconnect Name of the interconnect to return. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String interconnect) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Interconnect.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectGroupsListResponse.class); this.project = com.google.api.client.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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override @@ -101393,63 +100948,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -101463,7 +101018,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get 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 " + @@ -101473,171 +101028,395 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the interconnect to return. */ + /** + * 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 interconnect; + private java.lang.String filter; - /** Name of the interconnect to return. + /** 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 getInterconnect() { - return interconnect; + public java.lang.String getFilter() { + return filter; } - /** Name of the interconnect to return. */ - public Get setInterconnect(java.lang.String interconnect) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.interconnect = interconnect; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Returns the interconnectDiagnostics for the specified Interconnect. - * - * In the event of a global outage, do not use this API to make decisions about where to redirect - * your network traffic. - * - * Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global - * resource. A global outage can prevent this API from functioning properly. + * Patches the specified InterconnectGroup resource with the data included in the request. This + * method supports PATCH semantics and usesJSON merge patch format and processing rules. * - * Create a request for the method "interconnects.getDiagnostics". + * Create a request for the method "interconnectGroups.patch". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetDiagnostics#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 interconnect Name of the interconnect resource to query. + * @param interconnectGroup Name of the InterconnectGroup resource to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} * @return the request */ - public GetDiagnostics getDiagnostics(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { - GetDiagnostics result = new GetDiagnostics(project, interconnect); + public Patch patch(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.model.InterconnectGroup content) throws java.io.IOException { + Patch result = new Patch(project, interconnectGroup, content); initialize(result); return result; } - public class GetDiagnostics extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}/getDiagnostics"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{interconnectGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern INTERCONNECT_PATTERN = + private final java.util.regex.Pattern INTERCONNECT_GROUP_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the interconnectDiagnostics for the specified Interconnect. - * - * In the event of a global outage, do not use this API to make decisions about where to redirect - * your network traffic. - * - * Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global - * resource. A global outage can prevent this API from functioning properly. + * Patches the specified InterconnectGroup resource with the data included in the request. This + * method supports PATCH semantics and usesJSON merge patch format and processing rules. * - * Create a request for the method "interconnects.getDiagnostics". + * Create a request for the method "interconnectGroups.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetDiagnostics#execute()} method to invoke the remote operation. - *

{@link GetDiagnostics#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 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 interconnect Name of the interconnect resource to query. + * @param interconnectGroup Name of the InterconnectGroup resource to patch. + * @param content the {@link com.google.api.services.compute.model.InterconnectGroup} * @since 1.13 */ - protected GetDiagnostics(java.lang.String project, java.lang.String interconnect) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectsGetDiagnosticsResponse.class); + protected Patch(java.lang.String project, java.lang.String interconnectGroup, com.google.api.services.compute.model.InterconnectGroup 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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + this.interconnectGroup = com.google.api.client.util.Preconditions.checkNotNull(interconnectGroup, "Required parameter interconnectGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup 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 GetDiagnostics set$Xgafv(java.lang.String $Xgafv) { - return (GetDiagnostics) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public GetDiagnostics setAccessToken(java.lang.String accessToken) { - return (GetDiagnostics) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public GetDiagnostics setAlt(java.lang.String alt) { - return (GetDiagnostics) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public GetDiagnostics setCallback(java.lang.String callback) { - return (GetDiagnostics) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public GetDiagnostics setFields(java.lang.String fields) { - return (GetDiagnostics) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public GetDiagnostics setKey(java.lang.String key) { - return (GetDiagnostics) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public GetDiagnostics setOauthToken(java.lang.String oauthToken) { - return (GetDiagnostics) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public GetDiagnostics setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetDiagnostics) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public GetDiagnostics setQuotaUser(java.lang.String quotaUser) { - return (GetDiagnostics) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public GetDiagnostics setUploadType(java.lang.String uploadType) { - return (GetDiagnostics) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public GetDiagnostics setUploadProtocol(java.lang.String uploadProtocol) { - return (GetDiagnostics) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public GetDiagnostics setUserIp(java.lang.String userIp) { - return (GetDiagnostics) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -101651,7 +101430,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetDiagnostics 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 " + @@ -101661,78 +101440,144 @@ public GetDiagnostics setProject(java.lang.String project) { return this; } - /** Name of the interconnect resource to query. */ + /** Name of the InterconnectGroup resource to patch. */ @com.google.api.client.util.Key - private java.lang.String interconnect; + private java.lang.String interconnectGroup; - /** Name of the interconnect resource to query. + /** Name of the InterconnectGroup resource to patch. */ - public java.lang.String getInterconnect() { - return interconnect; + public java.lang.String getInterconnectGroup() { + return interconnectGroup; } - /** Name of the interconnect resource to query. */ - public GetDiagnostics setInterconnect(java.lang.String interconnect) { + /** Name of the InterconnectGroup resource to patch. */ + public Patch setInterconnectGroup(java.lang.String interconnectGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_GROUP_PATTERN.matcher(interconnectGroup).matches(), + "Parameter interconnectGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnect = interconnect; + this.interconnectGroup = interconnectGroup; return this; } - @Override - public GetDiagnostics set(String parameterName, Object value) { - return (GetDiagnostics) 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 "interconnects.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnects/{resource}/getIamPolicy"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * Create a request for the method "interconnects.getIamPolicy". + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

- * {@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** The list of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "interconnectGroups.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/setIamPolicy"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "interconnectGroups.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

* * @param project Project ID for this request. * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @since 1.13 */ - protected GetIamPolicy(java.lang.String project, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -101748,73 +101593,63 @@ protected GetIamPolicy(java.lang.String project, java.lang.String resource) { } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -101828,7 +101663,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + public SetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -101849,7 +101684,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + @@ -101859,154 +101694,130 @@ public GetIamPolicy setResource(java.lang.String resource) { return this; } - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; - return this; - } - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Returns the interconnectMacsecConfig for the specified Interconnect. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "interconnects.getMacsecConfig". + * Create a request for the method "interconnectGroups.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetMacsecConfig#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnect Name of the interconnect resource to query. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public GetMacsecConfig getMacsecConfig(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { - GetMacsecConfig result = new GetMacsecConfig(project, interconnect); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); initialize(result); return result; } - public class GetMacsecConfig extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}/getMacsecConfig"; + private static final String REST_PATH = "projects/{project}/global/interconnectGroups/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern INTERCONNECT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the interconnectMacsecConfig for the specified Interconnect. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "interconnects.getMacsecConfig". + * Create a request for the method "interconnectGroups.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetMacsecConfig#execute()} method to invoke the remote operation. - *

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

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

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

* * @param project Project ID for this request. - * @param interconnect Name of the interconnect resource to query. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected GetMacsecConfig(java.lang.String project, java.lang.String interconnect) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectsGetMacsecConfigResponse.class); + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetMacsecConfig set$Xgafv(java.lang.String $Xgafv) { - return (GetMacsecConfig) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public GetMacsecConfig setAccessToken(java.lang.String accessToken) { - return (GetMacsecConfig) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public GetMacsecConfig setAlt(java.lang.String alt) { - return (GetMacsecConfig) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public GetMacsecConfig setCallback(java.lang.String callback) { - return (GetMacsecConfig) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public GetMacsecConfig setFields(java.lang.String fields) { - return (GetMacsecConfig) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public GetMacsecConfig setKey(java.lang.String key) { - return (GetMacsecConfig) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public GetMacsecConfig setOauthToken(java.lang.String oauthToken) { - return (GetMacsecConfig) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public GetMacsecConfig setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetMacsecConfig) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public GetMacsecConfig setQuotaUser(java.lang.String quotaUser) { - return (GetMacsecConfig) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public GetMacsecConfig setUploadType(java.lang.String uploadType) { - return (GetMacsecConfig) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public GetMacsecConfig setUploadProtocol(java.lang.String uploadProtocol) { - return (GetMacsecConfig) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public GetMacsecConfig setUserIp(java.lang.String userIp) { - return (GetMacsecConfig) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -102020,7 +101831,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetMacsecConfig setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -102030,139 +101841,183 @@ public GetMacsecConfig setProject(java.lang.String project) { return this; } - /** Name of the interconnect resource to query. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String interconnect; + private java.lang.String resource; - /** Name of the interconnect resource to query. + /** Name or id of the resource for this request. */ - public java.lang.String getInterconnect() { - return interconnect; + public java.lang.String getResource() { + return resource; } - /** Name of the interconnect resource to query. */ - public GetMacsecConfig setInterconnect(java.lang.String interconnect) { + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnect = interconnect; + this.resource = resource; return this; } @Override - public GetMacsecConfig set(String parameterName, Object value) { - return (GetMacsecConfig) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the InterconnectLocations collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InterconnectLocations.List request = compute.interconnectLocations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InterconnectLocations interconnectLocations() { + return new InterconnectLocations(); + } + + /** + * The "interconnectLocations" collection of methods. + */ + public class InterconnectLocations { + /** - * Creates an Interconnect in the specified project using the data included in the request. + * Returns the details for the specified interconnect location. Gets a list of available + * interconnect locations by making a list() request. * - * Create a request for the method "interconnects.insert". + * Create a request for the method "interconnectLocations.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.Interconnect} + * @param interconnectLocation Name of the interconnect location to return. * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.Interconnect content) throws java.io.IOException { - Insert result = new Insert(project, content); + public Get get(java.lang.String project, java.lang.String interconnectLocation) throws java.io.IOException { + Get result = new Get(project, interconnectLocation); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects"; + private static final String REST_PATH = "projects/{project}/global/interconnectLocations/{interconnectLocation}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern INTERCONNECT_LOCATION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Creates an Interconnect in the specified project using the data included in the request. + * Returns the details for the specified interconnect location. Gets a list of available + * interconnect locations by making a list() request. * - * Create a request for the method "interconnects.insert". + * Create a request for the method "interconnectLocations.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * parameters, call the {@link 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 content the {@link com.google.api.services.compute.model.Interconnect} + * @param interconnectLocation Name of the interconnect location to return. * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.Interconnect 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 interconnectLocation) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectLocation.class); this.project = com.google.api.client.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.interconnectLocation = com.google.api.client.util.Preconditions.checkNotNull(interconnectLocation, "Required parameter interconnectLocation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_LOCATION_PATTERN.matcher(interconnectLocation).matches(), + "Parameter interconnectLocation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -102176,7 +102031,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -102186,64 +102041,36 @@ public Insert setProject(java.lang.String project) { return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Name of the interconnect location 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 interconnectLocation; - 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 interconnect location to return. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getInterconnectLocation() { + return interconnectLocation; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Name of the interconnect location to return. */ + public Get setInterconnectLocation(java.lang.String interconnectLocation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_LOCATION_PATTERN.matcher(interconnectLocation).matches(), + "Parameter interconnectLocation must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnectLocation = interconnectLocation; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Retrieves the list of Interconnects available to the specified project. + * Retrieves the list of interconnect locations available to the specified project. * - * Create a request for the method "interconnects.list". + * Create a request for the method "interconnectLocations.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. @@ -102257,17 +102084,17 @@ public List list(java.lang.String project) throws java.io.IOException { return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects"; + private static final String REST_PATH = "projects/{project}/global/interconnectLocations"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves the list of Interconnects available to the specified project. + * Retrieves the list of interconnect locations available to the specified project. * - * Create a request for the method "interconnects.list". + * Create a request for the method "interconnectLocations.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link @@ -102278,7 +102105,7 @@ public class List extends ComputeRequestThe typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.InterconnectRemoteLocations.List request = compute.interconnectRemoteLocations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public InterconnectRemoteLocations interconnectRemoteLocations() { + return new InterconnectRemoteLocations(); + } + + /** + * The "interconnectRemoteLocations" collection of methods. + */ + public class InterconnectRemoteLocations { + /** - * Updates the specified Interconnect with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * Returns the details for the specified interconnect remote location. Gets a list of available + * interconnect remote locations by making alist() request. * - * Create a request for the method "interconnects.patch". + * Create a request for the method "interconnectRemoteLocations.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param interconnect Name of the interconnect to update. - * @param content the {@link com.google.api.services.compute.model.Interconnect} + * @param interconnectRemoteLocation Name of the interconnect remote location to return. * @return the request */ - public Patch patch(java.lang.String project, java.lang.String interconnect, com.google.api.services.compute.model.Interconnect content) throws java.io.IOException { - Patch result = new Patch(project, interconnect, content); + public Get get(java.lang.String project, java.lang.String interconnectRemoteLocation) throws java.io.IOException { + Get result = new Get(project, interconnectRemoteLocation); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; + private static final String REST_PATH = "projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern INTERCONNECT_PATTERN = + private final java.util.regex.Pattern INTERCONNECT_REMOTE_LOCATION_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Updates the specified Interconnect with the data included in the request. This method - * supportsPATCH semantics and uses theJSON merge patch format and processing rules. + * Returns the details for the specified interconnect remote location. Gets a list of available + * interconnect remote locations by making alist() request. * - * Create a request for the method "interconnects.patch". + * Create a request for the method "interconnectRemoteLocations.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

+ * parameters, call the {@link 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 interconnect Name of the interconnect to update. - * @param content the {@link com.google.api.services.compute.model.Interconnect} + * @param interconnectRemoteLocation Name of the interconnect remote location to return. * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String interconnect, com.google.api.services.compute.model.Interconnect content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Get(java.lang.String project, java.lang.String interconnectRemoteLocation) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectRemoteLocation.class); this.project = com.google.api.client.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.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + this.interconnectRemoteLocation = com.google.api.client.util.Preconditions.checkNotNull(interconnectRemoteLocation, "Required parameter interconnectRemoteLocation must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_REMOTE_LOCATION_PATTERN.matcher(interconnectRemoteLocation).matches(), + "Parameter interconnectRemoteLocation must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) 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. */ @@ -102780,7 +102638,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch 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 " + @@ -102790,200 +102648,147 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the interconnect to update. */ + /** Name of the interconnect remote location to return. */ @com.google.api.client.util.Key - private java.lang.String interconnect; + private java.lang.String interconnectRemoteLocation; - /** Name of the interconnect to update. + /** Name of the interconnect remote location to return. */ - public java.lang.String getInterconnect() { - return interconnect; + public java.lang.String getInterconnectRemoteLocation() { + return interconnectRemoteLocation; } - /** Name of the interconnect to update. */ - public Patch setInterconnect(java.lang.String interconnect) { + /** Name of the interconnect remote location to return. */ + public Get setInterconnectRemoteLocation(java.lang.String interconnectRemoteLocation) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), - "Parameter interconnect must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_REMOTE_LOCATION_PATTERN.matcher(interconnectRemoteLocation).matches(), + "Parameter interconnectRemoteLocation must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.interconnect = interconnect; - 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; + this.interconnectRemoteLocation = interconnectRemoteLocation; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Retrieves the list of interconnect remote locations available to the specified project. * - * Create a request for the method "interconnects.setIamPolicy". + * Create a request for the method "interconnectRemoteLocations.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, resource, content); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class SetIamPolicy extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/interconnectRemoteLocations"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Retrieves the list of interconnect remote locations available to the specified project. * - * Create a request for the method "interconnects.setIamPolicy". + * Create a request for the method "interconnectRemoteLocations.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectRemoteLocationList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) 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. */ @@ -102997,7 +102802,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy 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 " + @@ -103007,321 +102812,414 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources - * documentation. - * - * Create a request for the method "interconnects.setLabels". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} - * @return the request - */ - public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, resource, content); - initialize(result); - return result; - } - - public class SetLabels extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/interconnects/{resource}/setLabels"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources - * documentation. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "interconnects.setLabels". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

+ * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} - * @since 1.13 + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - protected SetLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); - } + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); - } + /** 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. - @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); - } + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); - } + 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. - @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); - } + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` - @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); - } + 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: - @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); - } + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); - } + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. - @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); - } + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. - @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; } - /** Project ID 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 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.String project; + private java.lang.Long maxResults; - /** Project ID 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 getProject() { - return project; + public java.lang.Long getMaxResults() { + return maxResults; } - /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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; + /** + * 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; } - /** Name or id of the resource for this request. */ + /** + * 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 resource; + private java.lang.String orderBy; - /** Name or id of the resource for this request. + /** 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 getResource() { - return resource; + public java.lang.String getOrderBy() { + return orderBy; } - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the Interconnects collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Interconnects.List request = compute.interconnects().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Interconnects interconnects() { + return new Interconnects(); + } + + /** + * The "interconnects" collection of methods. + */ + public class Interconnects { + /** - * Returns permissions that a caller has on the specified resource. + * Deletes the specified Interconnect. * - * Create a request for the method "interconnects.testIamPermissions". + * Create a request for the method "interconnects.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param interconnect Name of the interconnect to delete. * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); + public Delete delete(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { + Delete result = new Delete(project, interconnect); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/interconnects/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern INTERCONNECT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns permissions that a caller has on the specified resource. + * Deletes the specified Interconnect. * - * Create a request for the method "interconnects.testIamPermissions". + * Create a request for the method "interconnects.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param interconnect Name of the interconnect to delete. * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected Delete(java.lang.String project, java.lang.String interconnect) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -103335,7 +103233,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -103345,91 +103243,115 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the interconnect to delete. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String interconnect; - /** Name or id of the resource for this request. + /** Name of the interconnect to delete. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInterconnect() { + return interconnect; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Name of the interconnect to delete. */ + public Delete setInterconnect(java.lang.String interconnect) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.interconnect = interconnect; return this; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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. - /** - * An accessor for creating requests from the LicenseCodes collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.LicenseCodes.List request = compute.licenseCodes().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public LicenseCodes licenseCodes() { - return new LicenseCodes(); - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * The "licenseCodes" collection of methods. - */ - public class LicenseCodes { + 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); + } + } /** - * Return a specified license code. License codes are mirrored across all projects that have - * permissions to read the License Code. Caution* This resource is intended for use only by third- - * party partners who are creatingCloud Marketplace images. + * Returns the specified Interconnect. Get a list of available Interconnects by making a list() + * request. * - * Create a request for the method "licenseCodes.get". + * Create a request for the method "interconnects.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 licenseCode Number corresponding to the License code resource to return. + * @param interconnect Name of the interconnect to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String licenseCode) throws java.io.IOException { - Get result = new Get(project, licenseCode); + public Get get(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { + Get result = new Get(project, interconnect); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenseCodes/{licenseCode}"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern LICENSE_CODE_PATTERN = - java.util.regex.Pattern.compile("[0-9]{0,61}?"); + private final java.util.regex.Pattern INTERCONNECT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Return a specified license code. License codes are mirrored across all projects that have - * permissions to read the License Code. *Caution* This resource is intended for use only by - * third-party partners who are creatingCloud Marketplace images. + * Returns the specified Interconnect. Get a list of available Interconnects by making a list() + * request. * - * Create a request for the method "licenseCodes.get". + * Create a request for the method "interconnects.get". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link @@ -103437,22 +103359,22 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param licenseCode Number corresponding to the License code resource to return. + * @param interconnect Name of the interconnect to return. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String licenseCode) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.LicenseCode.class); + protected Get(java.lang.String project, java.lang.String interconnect) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Interconnect.class); this.project = com.google.api.client.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.licenseCode = com.google.api.client.util.Preconditions.checkNotNull(licenseCode, "Required parameter licenseCode must be specified."); + this.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_CODE_PATTERN.matcher(licenseCode).matches(), - "Parameter licenseCode must conform to the pattern " + - "[0-9]{0,61}?"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -103547,24 +103469,24 @@ public Get setProject(java.lang.String project) { return this; } - /** Number corresponding to the License code resource to return. */ + /** Name of the interconnect to return. */ @com.google.api.client.util.Key - private java.lang.String licenseCode; + private java.lang.String interconnect; - /** Number corresponding to the License code resource to return. + /** Name of the interconnect to return. */ - public java.lang.String getLicenseCode() { - return licenseCode; + public java.lang.String getInterconnect() { + return interconnect; } - /** Number corresponding to the License code resource to return. */ - public Get setLicenseCode(java.lang.String licenseCode) { + /** Name of the interconnect to return. */ + public Get setInterconnect(java.lang.String interconnect) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_CODE_PATTERN.matcher(licenseCode).matches(), - "Parameter licenseCode must conform to the pattern " + - "[0-9]{0,61}?"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.licenseCode = licenseCode; + this.interconnect = interconnect; return this; } @@ -103574,65 +103496,73 @@ public Get set(String parameterName, Object value) { } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * Caution* This resource is intended for use only by third-party partners who are creatingCloud - * Marketplace images. + * Returns the interconnectDiagnostics for the specified Interconnect. * - * Create a request for the method "licenseCodes.getIamPolicy". + * In the event of a global outage, do not use this API to make decisions about where to redirect + * your network traffic. + * + * Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global + * resource. A global outage can prevent this API from functioning properly. + * + * Create a request for the method "interconnects.getDiagnostics". * * 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 GetDiagnostics#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. + * @param interconnect Name of the interconnect resource to query. * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); + public GetDiagnostics getDiagnostics(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { + GetDiagnostics result = new GetDiagnostics(project, interconnect); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest { + public class GetDiagnostics extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenseCodes/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}/getDiagnostics"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern INTERCONNECT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. *Caution* This resource is intended for use only by third-party partners who are - * creatingCloud Marketplace images. + * Returns the interconnectDiagnostics for the specified Interconnect. * - * Create a request for the method "licenseCodes.getIamPolicy". + * In the event of a global outage, do not use this API to make decisions about where to redirect + * your network traffic. * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

+ * Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global + * resource. A global outage can prevent this API from functioning properly. * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. + * Create a request for the method "interconnects.getDiagnostics". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetDiagnostics#execute()} method to invoke the remote operation. + *

{@link GetDiagnostics#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 interconnect Name of the interconnect resource to query. * @since 1.13 */ - protected GetIamPolicy(java.lang.String project, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + protected GetDiagnostics(java.lang.String project, java.lang.String interconnect) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectsGetDiagnosticsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -103647,63 +103577,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public GetDiagnostics set$Xgafv(java.lang.String $Xgafv) { + return (GetDiagnostics) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public GetDiagnostics setAccessToken(java.lang.String accessToken) { + return (GetDiagnostics) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public GetDiagnostics setAlt(java.lang.String alt) { + return (GetDiagnostics) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public GetDiagnostics setCallback(java.lang.String callback) { + return (GetDiagnostics) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public GetDiagnostics setFields(java.lang.String fields) { + return (GetDiagnostics) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public GetDiagnostics setKey(java.lang.String key) { + return (GetDiagnostics) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public GetDiagnostics setOauthToken(java.lang.String oauthToken) { + return (GetDiagnostics) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public GetDiagnostics setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetDiagnostics) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public GetDiagnostics setQuotaUser(java.lang.String quotaUser) { + return (GetDiagnostics) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public GetDiagnostics setUploadType(java.lang.String uploadType) { + return (GetDiagnostics) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public GetDiagnostics setUploadProtocol(java.lang.String uploadProtocol) { + return (GetDiagnostics) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public GetDiagnostics setUserIp(java.lang.String userIp) { + return (GetDiagnostics) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -103717,7 +103647,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { + public GetDiagnostics setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -103727,72 +103657,53 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the interconnect resource to query. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String interconnect; - /** Name or id of the resource for this request. + /** Name of the interconnect resource to query. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInterconnect() { + return interconnect; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** Name of the interconnect resource to query. */ + public GetDiagnostics setInterconnect(java.lang.String interconnect) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; - return this; - } - - /** Requested IAM Policy version. */ - @com.google.api.client.util.Key - private java.lang.Integer optionsRequestedPolicyVersion; - - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } - - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + this.interconnect = interconnect; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public GetDiagnostics set(String parameterName, Object value) { + return (GetDiagnostics) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Caution* - * This resource is intended for use only by third-party partners who are creatingCloud Marketplace - * images. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "licenseCodes.setIamPolicy". + * Create a request for the method "interconnects.getIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, resource, content); + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); initialize(result); return result; } - public class SetIamPolicy extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenseCodes/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -103801,25 +103712,23 @@ public class SetIamPolicy extends ComputeRequest + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

* * @param project Project ID for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + protected GetIamPolicy(java.lang.String project, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -103835,63 +103744,73 @@ protected SetIamPolicy(java.lang.String project, java.lang.String resource, com. } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -103905,7 +103824,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + public GetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -103926,7 +103845,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + public GetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + @@ -103936,132 +103855,154 @@ public SetIamPolicy setResource(java.lang.String resource) { return this; } + /** Requested IAM Policy version. */ + @com.google.api.client.util.Key + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Requested IAM Policy version. + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. Caution* This resource is - * intended for use only by third-party partners who are creatingCloud Marketplace images. + * Returns the interconnectMacsecConfig for the specified Interconnect. * - * Create a request for the method "licenseCodes.testIamPermissions". + * Create a request for the method "interconnects.getMacsecConfig". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link GetMacsecConfig#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param interconnect Name of the interconnect resource to query. * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); + public GetMacsecConfig getMacsecConfig(java.lang.String project, java.lang.String interconnect) throws java.io.IOException { + GetMacsecConfig result = new GetMacsecConfig(project, interconnect); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class GetMacsecConfig extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenseCodes/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}/getMacsecConfig"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern INTERCONNECT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns permissions that a caller has on the specified resource. *Caution* This resource is - * intended for use only by third-party partners who are creatingCloud Marketplace images. + * Returns the interconnectMacsecConfig for the specified Interconnect. * - * Create a request for the method "licenseCodes.testIamPermissions". + * Create a request for the method "interconnects.getMacsecConfig". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param interconnect Name of the interconnect resource to query. * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected GetMacsecConfig(java.lang.String project, java.lang.String interconnect) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectsGetMacsecConfigResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public GetMacsecConfig set$Xgafv(java.lang.String $Xgafv) { + return (GetMacsecConfig) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public GetMacsecConfig setAccessToken(java.lang.String accessToken) { + return (GetMacsecConfig) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public GetMacsecConfig setAlt(java.lang.String alt) { + return (GetMacsecConfig) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public GetMacsecConfig setCallback(java.lang.String callback) { + return (GetMacsecConfig) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public GetMacsecConfig setFields(java.lang.String fields) { + return (GetMacsecConfig) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public GetMacsecConfig setKey(java.lang.String key) { + return (GetMacsecConfig) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public GetMacsecConfig setOauthToken(java.lang.String oauthToken) { + return (GetMacsecConfig) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public GetMacsecConfig setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetMacsecConfig) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public GetMacsecConfig setQuotaUser(java.lang.String quotaUser) { + return (GetMacsecConfig) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public GetMacsecConfig setUploadType(java.lang.String uploadType) { + return (GetMacsecConfig) super.setUploadType(uploadType); + } + + @Override + public GetMacsecConfig setUploadProtocol(java.lang.String uploadProtocol) { + return (GetMacsecConfig) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetMacsecConfig setUserIp(java.lang.String userIp) { + return (GetMacsecConfig) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -104075,7 +104016,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + public GetMacsecConfig setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -104085,173 +104026,139 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the interconnect resource to query. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String interconnect; - /** Name or id of the resource for this request. + /** Name of the interconnect resource to query. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInterconnect() { + return interconnect; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Name of the interconnect resource to query. */ + public GetMacsecConfig setInterconnect(java.lang.String interconnect) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.interconnect = interconnect; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public GetMacsecConfig set(String parameterName, Object value) { + return (GetMacsecConfig) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the Licenses collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Licenses.List request = compute.licenses().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Licenses licenses() { - return new Licenses(); - } - - /** - * The "licenses" collection of methods. - */ - public class Licenses { - /** - * Deletes the specified license. Caution* This resource is intended for use only by third-party - * partners who are creatingCloud Marketplace images. + * Creates an Interconnect in the specified project using the data included in the request. * - * Create a request for the method "licenses.delete". + * Create a request for the method "interconnects.insert". * * 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 Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param license Name of the license resource to delete. + * @param content the {@link com.google.api.services.compute.model.Interconnect} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String license) throws java.io.IOException { - Delete result = new Delete(project, license); + public Insert insert(java.lang.String project, com.google.api.services.compute.model.Interconnect content) throws java.io.IOException { + Insert result = new Insert(project, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; + private static final String REST_PATH = "projects/{project}/global/interconnects"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern LICENSE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Deletes the specified license. *Caution* This resource is intended for use only by third-party - * partners who are creatingCloud Marketplace images. + * Creates an Interconnect in the specified project using the data included in the request. * - * Create a request for the method "licenses.delete". + * Create a request for the method "interconnects.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param license Name of the license resource to delete. + * @param content the {@link com.google.api.services.compute.model.Interconnect} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String license) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Insert(java.lang.String project, com.google.api.services.compute.model.Interconnect 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.license = com.google.api.client.util.Preconditions.checkNotNull(license, "Required parameter license must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -104265,7 +104172,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -104275,27 +104182,6 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the license resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String license; - - /** Name of the license resource to delete. - */ - public java.lang.String getLicense() { - return license; - } - - /** Name of the license resource to delete. */ - public Delete setLicense(java.lang.String license) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.license = license; - 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 @@ -104340,74 +104226,61 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Delete setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Returns the specified License resource. Caution* This resource is intended for use only by third- - * party partners who are creatingCloud Marketplace images. + * Retrieves the list of Interconnects available to the specified project. * - * Create a request for the method "licenses.get". + * Create a request for the method "interconnects.list". * * 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 List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param license Name of the License resource to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String license) throws java.io.IOException { - Get result = new Get(project, license); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class Get extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; + private static final String REST_PATH = "projects/{project}/global/interconnects"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern LICENSE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Returns the specified License resource. *Caution* This resource is intended for use only by - * third-party partners who are creatingCloud Marketplace images. + * Retrieves the list of Interconnects available to the specified project. * - * Create a request for the method "licenses.get". + * Create a request for the method "interconnects.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param license Name of the License resource to return. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String license) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.License.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.InterconnectList.class); this.project = com.google.api.client.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.license = com.google.api.client.util.Preconditions.checkNotNull(license, "Required parameter license must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override @@ -104421,63 +104294,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -104491,7 +104364,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get 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 " + @@ -104501,163 +104374,395 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the License resource to return. */ + /** + * 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 license; + private java.lang.String filter; - /** Name of the License resource to return. + /** 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 getLicense() { - return license; + public java.lang.String getFilter() { + return filter; } - /** Name of the License resource to return. */ - public Get setLicense(java.lang.String license) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.license = license; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. - * Caution* This resource is intended for use only by third-party partners who are creatingCloud - * Marketplace images. + * Updates the specified Interconnect with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. * - * Create a request for the method "licenses.getIamPolicy". + * Create a request for the method "interconnects.patch". * * 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 Patch#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. + * @param interconnect Name of the interconnect to update. + * @param content the {@link com.google.api.services.compute.model.Interconnect} * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); + public Patch patch(java.lang.String project, java.lang.String interconnect, com.google.api.services.compute.model.Interconnect content) throws java.io.IOException { + Patch result = new Patch(project, interconnect, content); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{interconnect}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern INTERCONNECT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. *Caution* This resource is intended for use only by third-party partners who are - * creatingCloud Marketplace images. + * Updates the specified Interconnect with the data included in the request. This method + * supportsPATCH semantics and uses theJSON merge patch format and processing rules. * - * Create a request for the method "licenses.getIamPolicy". + * Create a request for the method "interconnects.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

+ * parameters, call the {@link 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 resource Name or id of the resource for this request. + * @param interconnect Name of the interconnect to update. + * @param content the {@link com.google.api.services.compute.model.Interconnect} * @since 1.13 */ - protected GetIamPolicy(java.lang.String project, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + protected Patch(java.lang.String project, java.lang.String interconnect, com.google.api.services.compute.model.Interconnect 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect 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 Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -104671,7 +104776,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy 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 " + @@ -104681,157 +104786,200 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the interconnect to update. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String interconnect; - /** Name or id of the resource for this request. + /** Name of the interconnect to update. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getInterconnect() { + return interconnect; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { + /** Name of the interconnect to update. */ + public Patch setInterconnect(java.lang.String interconnect) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.interconnect = interconnect; return this; } - /** Requested IAM Policy version. */ + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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.Integer optionsRequestedPolicyVersion; + private java.lang.String requestId; - /** Requested IAM Policy version. - */ - public java.lang.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = 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. + + 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 GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Create a License resource in the specified project. Caution* This resource is intended for use - * only by third-party partners who are creatingCloud Marketplace images. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "licenses.insert". + * Create a request for the method "interconnects.setIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.License} + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.License content) throws java.io.IOException { - Insert result = new Insert(project, content); + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Create a License resource in the specified project. *Caution* This resource is intended for - * use only by third-party partners who are creatingCloud Marketplace images. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "licenses.insert". + * Create a request for the method "interconnects.setIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.License} + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.License content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -104845,7 +104993,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public SetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -104855,185 +105003,153 @@ public Insert setProject(java.lang.String project) { return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String resource; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Retrieves the list of licenses available in the specified project. This method does not get any - * licenses that belong to other projects, including licenses attached to publicly-available images, - * like Debian 9. If you want to get a list of publicly-available licenses, use this method to make - * a request to the respective image project, such as debian-cloud orwindows-cloud. Caution* This - * resource is intended for use only by third-party partners who are creatingCloud Marketplace - * images. + * Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources + * documentation. * - * Create a request for the method "licenses.list". + * Create a request for the method "interconnects.setLabels". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, resource, content); initialize(result); return result; } - public class List extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses"; + private static final String REST_PATH = "projects/{project}/global/interconnects/{resource}/setLabels"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Retrieves the list of licenses available in the specified project. This method does not get any - * licenses that belong to other projects, including licenses attached to publicly-available - * images, like Debian 9. If you want to get a list of publicly-available licenses, use this - * method to make a request to the respective image project, such as debian-cloud orwindows-cloud. - * *Caution* This resource is intended for use only by third-party partners who are creatingCloud - * Marketplace images. + * Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources + * documentation. * - * Create a request for the method "licenses.list". + * Create a request for the method "interconnects.setLabels". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.LicensesListResponse.class); + protected SetLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -105047,7 +105163,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public SetLabels setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -105057,398 +105173,353 @@ public List setProject(java.lang.String project) { return this; } + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public SetLabels setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "interconnects.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/interconnects/{resource}/testIamPermissions"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * 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")` + * Returns permissions that a caller has on the specified resource. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "interconnects.testIamPermissions". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

* - * You cannot combine constraints on multiple fields using regular expressions. + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.String filter; + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } - /** 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. + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } - 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. + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } - 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: + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } - You cannot combine constraints on multiple fields using regular expressions. + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getProject() { + return project; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ - 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; + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; return this; } - /** - * 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. - */ + /** Name or id of the resource for this request. */ @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. + private java.lang.String resource; - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + /** Name or id of the resource for this request. */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getResource() { + return resource; } - /** - * 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; + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } - /** - * 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; + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } + } - /** - * 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; - } + /** + * An accessor for creating requests from the LicenseCodes collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.LicenseCodes.List request = compute.licenseCodes().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public LicenseCodes licenseCodes() { + return new LicenseCodes(); + } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } + /** + * The "licenseCodes" collection of methods. + */ + public class LicenseCodes { - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Caution* - * This resource is intended for use only by third-party partners who are creatingCloud Marketplace - * images. + * Return a specified license code. License codes are mirrored across all projects that have + * permissions to read the License Code. Caution* This resource is intended for use only by third- + * party partners who are creatingCloud Marketplace images. * - * Create a request for the method "licenses.setIamPolicy". + * Create a request for the method "licenseCodes.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @param licenseCode Number corresponding to the License code resource to return. * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, resource, content); + public Get get(java.lang.String project, java.lang.String licenseCode) throws java.io.IOException { + Get result = new Get(project, licenseCode); initialize(result); return result; } - public class SetIamPolicy extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/licenseCodes/{licenseCode}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern LICENSE_CODE_PATTERN = + java.util.regex.Pattern.compile("[0-9]{0,61}?"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * *Caution* This resource is intended for use only by third-party partners who are creatingCloud - * Marketplace images. + * Return a specified license code. License codes are mirrored across all projects that have + * permissions to read the License Code. *Caution* This resource is intended for use only by + * third-party partners who are creatingCloud Marketplace images. * - * Create a request for the method "licenses.setIamPolicy". + * Create a request for the method "licenseCodes.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @param licenseCode Number corresponding to the License code resource to return. * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + protected Get(java.lang.String project, java.lang.String licenseCode) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.LicenseCode.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.licenseCode = com.google.api.client.util.Preconditions.checkNotNull(licenseCode, "Required parameter licenseCode must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(LICENSE_CODE_PATTERN.matcher(licenseCode).matches(), + "Parameter licenseCode must conform to the pattern " + + "[0-9]{0,61}?"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -105462,7 +105533,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -105472,55 +105543,55 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Number corresponding to the License code resource to return. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String licenseCode; - /** Name or id of the resource for this request. + /** Number corresponding to the License code resource to return. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getLicenseCode() { + return licenseCode; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** Number corresponding to the License code resource to return. */ + public Get setLicenseCode(java.lang.String licenseCode) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(LICENSE_CODE_PATTERN.matcher(licenseCode).matches(), + "Parameter licenseCode must conform to the pattern " + + "[0-9]{0,61}?"); } - this.resource = resource; + this.licenseCode = licenseCode; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. Caution* This resource is - * intended for use only by third-party partners who are creatingCloud Marketplace images. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Caution* This resource is intended for use only by third-party partners who are creatingCloud + * Marketplace images. * - * Create a request for the method "licenses.testIamPermissions". + * Create a request for the method "licenseCodes.getIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/licenseCodes/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -105529,24 +105600,24 @@ public class TestIamPermissions extends ComputeRequest {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

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

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

* * @param project Project ID for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected GetIamPolicy(java.lang.String project, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -105562,63 +105633,73 @@ protected TestIamPermissions(java.lang.String project, java.lang.String resource } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -105632,7 +105713,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + public GetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -105653,7 +105734,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + public GetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + @@ -105663,131 +105744,150 @@ public TestIamPermissions setResource(java.lang.String resource) { return this; } + /** Requested IAM Policy version. */ + @com.google.api.client.util.Key + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Requested IAM Policy version. + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Updates a License resource in the specified project. Caution* This resource is intended for use - * only by third-party partners who are creatingCloud Marketplace images. + * Sets the access control policy on the specified resource. Replaces any existing policy. Caution* + * This resource is intended for use only by third-party partners who are creatingCloud Marketplace + * images. * - * Create a request for the method "licenses.update". + * Create a request for the method "licenseCodes.setIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param license The license name for this request. - * @param content the {@link com.google.api.services.compute.model.License} + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @return the request */ - public Update update(java.lang.String project, java.lang.String license, com.google.api.services.compute.model.License content) throws java.io.IOException { - Update result = new Update(project, license, content); + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); initialize(result); return result; } - public class Update extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; + private static final String REST_PATH = "projects/{project}/global/licenseCodes/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern LICENSE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Updates a License resource in the specified project. *Caution* This resource is intended for - * use only by third-party partners who are creatingCloud Marketplace images. + * Sets the access control policy on the specified resource. Replaces any existing policy. + * *Caution* This resource is intended for use only by third-party partners who are creatingCloud + * Marketplace images. * - * Create a request for the method "licenses.update". + * Create a request for the method "licenseCodes.setIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param license The license name for this request. - * @param content the {@link com.google.api.services.compute.model.License} + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @since 1.13 */ - protected Update(java.lang.String project, java.lang.String license, com.google.api.services.compute.model.License content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.license = com.google.api.client.util.Preconditions.checkNotNull(license, "Required parameter license must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -105801,7 +105901,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update setProject(java.lang.String project) { + public SetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -105811,153 +105911,259 @@ public Update setProject(java.lang.String project) { return this; } - /** The license name for this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String license; + private java.lang.String resource; - /** The license name for this request. + /** Name or id of the resource for this request. */ - public java.lang.String getLicense() { - return license; + public java.lang.String getResource() { + return resource; } - /** The license name for this request. */ - public Update setLicense(java.lang.String license) { + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), - "Parameter license must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.license = license; + this.resource = resource; return this; } + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. Caution* This resource is + * intended for use only by third-party partners who are creatingCloud Marketplace images. + * + * Create a request for the method "licenseCodes.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/licenseCodes/{resource}/testIamPermissions"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * Returns permissions that a caller has on the specified resource. *Caution* This resource is + * intended for use only by third-party partners who are creatingCloud Marketplace images. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Create a request for the method "licenseCodes.testIamPermissions". * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.String requestId; + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. */ - public Update setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; return this; } - /** update_mask indicates fields to be updated as part of this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String resource; - /** update_mask indicates fields to be updated as part of this request. + /** Name or id of the resource for this request. */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getResource() { + return resource; } - /** update_mask indicates fields to be updated as part of this request. */ - public Update setUpdateMask(String updateMask) { - this.updateMask = updateMask; + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the MachineImages collection. + * An accessor for creating requests from the Licenses collection. * *

The typical use is:

*
    *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.MachineImages.List request = compute.machineImages().list(parameters ...)}
+   *   {@code Compute.Licenses.List request = compute.licenses().list(parameters ...)}
    * 
* * @return the resource collection */ - public MachineImages machineImages() { - return new MachineImages(); + public Licenses licenses() { + return new Licenses(); } /** - * The "machineImages" collection of methods. + * The "licenses" collection of methods. */ - public class MachineImages { + public class Licenses { /** - * Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone. + * Deletes the specified license. Caution* This resource is intended for use only by third-party + * partners who are creatingCloud Marketplace images. * - * Create a request for the method "machineImages.delete". + * Create a request for the method "licenses.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 machineImage The name of the machine image to delete. + * @param license Name of the license resource to delete. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String machineImage) throws java.io.IOException { - Delete result = new Delete(project, machineImage); + public Delete delete(java.lang.String project, java.lang.String license) throws java.io.IOException { + Delete result = new Delete(project, license); initialize(result); return result; } public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages/{machineImage}"; + private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern MACHINE_IMAGE_PATTERN = + private final java.util.regex.Pattern LICENSE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified machine image. Deleting a machine image is permanent and cannot be - * undone. + * Deletes the specified license. *Caution* This resource is intended for use only by third-party + * partners who are creatingCloud Marketplace images. * - * Create a request for the method "machineImages.delete". + * Create a request for the method "licenses.delete". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link @@ -105965,10 +106171,10 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param machineImage The name of the machine image to delete. + * @param license Name of the license resource to delete. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String machineImage) { + protected Delete(java.lang.String project, java.lang.String license) { 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()) { @@ -105976,10 +106182,10 @@ protected Delete(java.lang.String project, java.lang.String machineImage) { "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.machineImage = com.google.api.client.util.Preconditions.checkNotNull(machineImage, "Required parameter machineImage must be specified."); + this.license = com.google.api.client.util.Preconditions.checkNotNull(license, "Required parameter license must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), - "Parameter machineImage must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), + "Parameter license must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -106065,24 +106271,24 @@ public Delete setProject(java.lang.String project) { return this; } - /** The name of the machine image to delete. */ + /** Name of the license resource to delete. */ @com.google.api.client.util.Key - private java.lang.String machineImage; + private java.lang.String license; - /** The name of the machine image to delete. + /** Name of the license resource to delete. */ - public java.lang.String getMachineImage() { - return machineImage; + public java.lang.String getLicense() { + return license; } - /** The name of the machine image to delete. */ - public Delete setMachineImage(java.lang.String machineImage) { + /** Name of the license resource to delete. */ + public Delete setLicense(java.lang.String license) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), - "Parameter machineImage must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), + "Parameter license must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.machineImage = machineImage; + this.license = license; return this; } @@ -106141,37 +106347,39 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified machine image. + * Returns the specified License resource. Caution* This resource is intended for use only by third- + * party partners who are creatingCloud Marketplace images. * - * Create a request for the method "machineImages.get". + * Create a request for the method "licenses.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 machineImage The name of the machine image. + * @param license Name of the License resource to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String machineImage) throws java.io.IOException { - Get result = new Get(project, machineImage); + public Get get(java.lang.String project, java.lang.String license) throws java.io.IOException { + Get result = new Get(project, license); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages/{machineImage}"; + private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern MACHINE_IMAGE_PATTERN = + private final java.util.regex.Pattern LICENSE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the specified machine image. + * Returns the specified License resource. *Caution* This resource is intended for use only by + * third-party partners who are creatingCloud Marketplace images. * - * Create a request for the method "machineImages.get". + * Create a request for the method "licenses.get". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link @@ -106179,21 +106387,21 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param machineImage The name of the machine image. + * @param license Name of the License resource to return. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String machineImage) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineImage.class); + protected Get(java.lang.String project, java.lang.String license) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.License.class); this.project = com.google.api.client.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.machineImage = com.google.api.client.util.Preconditions.checkNotNull(machineImage, "Required parameter machineImage must be specified."); + this.license = com.google.api.client.util.Preconditions.checkNotNull(license, "Required parameter license must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), - "Parameter machineImage must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), + "Parameter license must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -106289,24 +106497,24 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the machine image. */ + /** Name of the License resource to return. */ @com.google.api.client.util.Key - private java.lang.String machineImage; + private java.lang.String license; - /** The name of the machine image. + /** Name of the License resource to return. */ - public java.lang.String getMachineImage() { - return machineImage; + public java.lang.String getLicense() { + return license; } - /** The name of the machine image. */ - public Get setMachineImage(java.lang.String machineImage) { + /** Name of the License resource to return. */ + public Get setLicense(java.lang.String license) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), - "Parameter machineImage must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), + "Parameter license must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.machineImage = machineImage; + this.license = license; return this; } @@ -106317,8 +106525,10 @@ public Get set(String parameterName, Object value) { } /** * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Caution* This resource is intended for use only by third-party partners who are creatingCloud + * Marketplace images. * - * Create a request for the method "machineImages.getIamPolicy". + * Create a request for the method "licenses.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. @@ -106335,7 +106545,7 @@ public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String reso public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -106345,9 +106555,10 @@ public class GetIamPolicy extends ComputeRequest @@ -106509,20 +106720,19 @@ public GetIamPolicy set(String parameterName, Object value) { } } /** - * Creates a machine image in the specified project using the data that is included in the request. - * If you are creating a new machine image to update an existing instance, your new machine image - * should use the same network or, if applicable, the same subnetwork as the original instance. + * Create a License resource in the specified project. Caution* This resource is intended for use + * only by third-party partners who are creatingCloud Marketplace images. * - * Create a request for the method "machineImages.insert". + * Create a request for the method "licenses.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.MachineImage} + * @param content the {@link com.google.api.services.compute.model.License} * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.MachineImage content) throws java.io.IOException { + public Insert insert(java.lang.String project, com.google.api.services.compute.model.License content) throws java.io.IOException { Insert result = new Insert(project, content); initialize(result); return result; @@ -106530,18 +106740,16 @@ public Insert insert(java.lang.String project, com.google.api.services.compute.m public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages"; + private static final String REST_PATH = "projects/{project}/global/licenses"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Creates a machine image in the specified project using the data that is included in the - * request. If you are creating a new machine image to update an existing instance, your new - * machine image should use the same network or, if applicable, the same subnetwork as the - * original instance. + * Create a License resource in the specified project. *Caution* This resource is intended for + * use only by third-party partners who are creatingCloud Marketplace images. * - * Create a request for the method "machineImages.insert". + * Create a request for the method "licenses.insert". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link @@ -106549,10 +106757,10 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.MachineImage} + * @param content the {@link com.google.api.services.compute.model.License} * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.MachineImage content) { + protected Insert(java.lang.String project, com.google.api.services.compute.model.License 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()) { @@ -106692,31 +106900,20 @@ public Insert setRequestId(java.lang.String requestId) { return this; } - /** Required. Source instance that is used to create the machine image from. */ - @com.google.api.client.util.Key - private java.lang.String sourceInstance; - - /** Required. Source instance that is used to create the machine image from. - */ - public java.lang.String getSourceInstance() { - return sourceInstance; - } - - /** Required. Source instance that is used to create the machine image from. */ - public Insert setSourceInstance(java.lang.String sourceInstance) { - this.sourceInstance = sourceInstance; - return this; - } - @Override public Insert set(String parameterName, Object value) { return (Insert) super.set(parameterName, value); } } /** - * Retrieves a list of machine images that are contained within the specified project. + * Retrieves the list of licenses available in the specified project. This method does not get any + * licenses that belong to other projects, including licenses attached to publicly-available images, + * like Debian 9. If you want to get a list of publicly-available licenses, use this method to make + * a request to the respective image project, such as debian-cloud orwindows-cloud. Caution* This + * resource is intended for use only by third-party partners who are creatingCloud Marketplace + * images. * - * Create a request for the method "machineImages.list". + * Create a request for the method "licenses.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. @@ -106730,17 +106927,22 @@ public List list(java.lang.String project) throws java.io.IOException { return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages"; + private static final String REST_PATH = "projects/{project}/global/licenses"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves a list of machine images that are contained within the specified project. + * Retrieves the list of licenses available in the specified project. This method does not get any + * licenses that belong to other projects, including licenses attached to publicly-available + * images, like Debian 9. If you want to get a list of publicly-available licenses, use this + * method to make a request to the respective image project, such as debian-cloud orwindows-cloud. + * *Caution* This resource is intended for use only by third-party partners who are creatingCloud + * Marketplace images. * - * Create a request for the method "machineImages.list". + * Create a request for the method "licenses.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link @@ -106751,7 +106953,7 @@ public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -107151,8 +107355,10 @@ public class SetIamPolicy extends ComputeRequest @@ -107289,28 +107495,28 @@ public SetIamPolicy set(String parameterName, Object value) { } } /** - * Sets the labels on a machine image. To learn more about labels, read theLabeling Resources - * documentation. + * Returns permissions that a caller has on the specified resource. Caution* This resource is + * intended for use only by third-party partners who are creatingCloud Marketplace images. * - * Create a request for the method "machineImages.setLabels". + * Create a request for the method "licenses.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, resource, content); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); initialize(result); return result; } - public class SetLabels extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/setLabels"; + private static final String REST_PATH = "projects/{project}/global/licenses/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -107319,24 +107525,24 @@ public class SetLabels extends ComputeRequest - * {@link - * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

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

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

* * @param project Project ID for this request. * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected SetLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -107352,63 +107558,63 @@ protected SetLabels(java.lang.String project, java.lang.String resource, com.goo } @Override - public SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -107422,7 +107628,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -107443,7 +107649,7 @@ public java.lang.String getResource() { } /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + @@ -107454,129 +107660,130 @@ public SetLabels setResource(java.lang.String resource) { } @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Updates a License resource in the specified project. Caution* This resource is intended for use + * only by third-party partners who are creatingCloud Marketplace images. * - * Create a request for the method "machineImages.testIamPermissions". + * Create a request for the method "licenses.update". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param license The license name for this request. + * @param content the {@link com.google.api.services.compute.model.License} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); + public Update update(java.lang.String project, java.lang.String license, com.google.api.services.compute.model.License content) throws java.io.IOException { + Update result = new Update(project, license, content); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/licenses/{license}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern LICENSE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns permissions that a caller has on the specified resource. + * Updates a License resource in the specified project. *Caution* This resource is intended for + * use only by third-party partners who are creatingCloud Marketplace images. * - * Create a request for the method "machineImages.testIamPermissions". + * Create a request for the method "licenses.update". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param license The license name for this request. + * @param content the {@link com.google.api.services.compute.model.License} * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected Update(java.lang.String project, java.lang.String license, com.google.api.services.compute.model.License 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.license = com.google.api.client.util.Preconditions.checkNotNull(license, "Required parameter license must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), + "Parameter license must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -107590,7 +107797,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + public Update setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -107600,177 +107807,237 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** The license name for this request. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String license; - /** Name or id of the resource for this request. + /** The license name for this request. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getLicense() { + return license; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** The license name for this request. */ + public Update setLicense(java.lang.String license) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(LICENSE_PATTERN.matcher(license).matches(), + "Parameter license must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.license = license; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** update_mask indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** update_mask indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** update_mask indicates fields to be updated as part of this request. */ + public Update setUpdateMask(String updateMask) { + this.updateMask = updateMask; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the MachineTypes collection. + * An accessor for creating requests from the MachineImages collection. * *

The typical use is:

*
    *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.MachineTypes.List request = compute.machineTypes().list(parameters ...)}
+   *   {@code Compute.MachineImages.List request = compute.machineImages().list(parameters ...)}
    * 
* * @return the resource collection */ - public MachineTypes machineTypes() { - return new MachineTypes(); + public MachineImages machineImages() { + return new MachineImages(); } /** - * The "machineTypes" collection of methods. + * The "machineImages" collection of methods. */ - public class MachineTypes { + public class MachineImages { /** - * Retrieves an aggregated list of machine types. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone. * - * Create a request for the method "machineTypes.aggregatedList". + * Create a request for the method "machineImages.delete". * * 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 Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param machineImage The name of the machine image to delete. * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + public Delete delete(java.lang.String project, java.lang.String machineImage) throws java.io.IOException { + Delete result = new Delete(project, machineImage); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/machineTypes"; + private static final String REST_PATH = "projects/{project}/global/machineImages/{machineImage}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern MACHINE_IMAGE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Retrieves an aggregated list of machine types. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Deletes the specified machine image. Deleting a machine image is permanent and cannot be + * undone. * - * Create a request for the method "machineTypes.aggregatedList". + * Create a request for the method "machineImages.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

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

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

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

* * @param project Project ID for this request. + * @param machineImage The name of the machine image to delete. * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineTypeAggregatedList.class); + protected Delete(java.lang.String project, java.lang.String machineImage) { + 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.machineImage = com.google.api.client.util.Preconditions.checkNotNull(machineImage, "Required parameter machineImage must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), + "Parameter machineImage must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -107784,7 +108051,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -107794,368 +108061,113 @@ public AggregatedList setProject(java.lang.String project) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ + /** The name of the machine image to delete. */ @com.google.api.client.util.Key - private java.lang.String filter; + private java.lang.String machineImage; - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. + /** The name of the machine image to delete. + */ + public java.lang.String getMachineImage() { + return machineImage; + } - 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; + /** The name of the machine image to delete. */ + public Delete setMachineImage(java.lang.String machineImage) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), + "Parameter machineImage must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.machineImage = machineImage; return this; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; - - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. - - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. - - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public AggregatedList setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } + private java.lang.String requestId; - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Returns the specified machine type. + * Returns the specified machine image. * - * Create a request for the method "machineTypes.get". + * Create a request for the method "machineImages.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 machineType Name of the machine type to return. + * @param machineImage The name of the machine image. * @return the request */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String machineType) throws java.io.IOException { - Get result = new Get(project, zone, machineType); + public Get get(java.lang.String project, java.lang.String machineImage) throws java.io.IOException { + Get result = new Get(project, machineImage); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/machineTypes/{machineType}"; + private static final String REST_PATH = "projects/{project}/global/machineImages/{machineImage}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern MACHINE_TYPE_PATTERN = + private final java.util.regex.Pattern MACHINE_IMAGE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the specified machine type. + * Returns the specified machine image. * - * Create a request for the method "machineTypes.get". + * Create a request for the method "machineImages.get". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link @@ -108163,28 +108175,21 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param machineType Name of the machine type to return. + * @param machineImage The name of the machine image. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String machineType) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineType.class); + protected Get(java.lang.String project, java.lang.String machineImage) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineImage.class); this.project = com.google.api.client.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.machineType = com.google.api.client.util.Preconditions.checkNotNull(machineType, "Required parameter machineType must be specified."); + this.machineImage = com.google.api.client.util.Preconditions.checkNotNull(machineImage, "Required parameter machineImage must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MACHINE_TYPE_PATTERN.matcher(machineType).matches(), - "Parameter machineType must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), + "Parameter machineImage must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @@ -108280,45 +108285,24 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public 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 machine type to return. */ + /** The name of the machine image. */ @com.google.api.client.util.Key - private java.lang.String machineType; + private java.lang.String machineImage; - /** Name of the machine type to return. + /** The name of the machine image. */ - public java.lang.String getMachineType() { - return machineType; + public java.lang.String getMachineImage() { + return machineImage; } - /** Name of the machine type to return. */ - public Get setMachineType(java.lang.String machineType) { + /** The name of the machine image. */ + public Get setMachineImage(java.lang.String machineImage) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(MACHINE_TYPE_PATTERN.matcher(machineType).matches(), - "Parameter machineType must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(MACHINE_IMAGE_PATTERN.matcher(machineImage).matches(), + "Parameter machineImage must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.machineType = machineType; + this.machineImage = machineImage; return this; } @@ -108328,60 +108312,62 @@ public Get set(String parameterName, Object value) { } } /** - * Retrieves a list of machine types available to the specified project. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "machineTypes.list". + * Create a request for the method "machineImages.getIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link 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 List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { - List result = new List(project, zone); + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); initialize(result); return result; } - public class List extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/machineTypes"; + private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Retrieves a list of machine types available to the specified project. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "machineTypes.list". + * Create a request for the method "machineImages.getIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineTypeList.class); + protected GetIamPolicy(java.lang.String project, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(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}"); } } @@ -108396,63 +108382,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -108466,7 +108452,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public GetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -108476,45 +108462,409 @@ public List setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String resource; - /** The name of the zone for this request. + /** Name or id of the resource for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getResource() { + return resource; } - /** The name of the zone for this request. */ - public List setZone(java.lang.String zone) { + /** 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(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(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.zone = zone; + this.resource = resource; 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 + /** Requested IAM Policy version. */ + @com.google.api.client.util.Key + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Requested IAM Policy version. + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Creates a machine image in the specified project using the data that is included in the request. + * If you are creating a new machine image to update an existing instance, your new machine image + * should use the same network or, if applicable, the same subnetwork as the original instance. + * + * Create a request for the method "machineImages.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.MachineImage} + * @return the request + */ + public Insert insert(java.lang.String project, com.google.api.services.compute.model.MachineImage content) throws java.io.IOException { + Insert result = new Insert(project, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/machineImages"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + /** + * Creates a machine image in the specified project using the data that is included in the + * request. If you are creating a new machine image to update an existing instance, your new + * machine image should use the same network or, if applicable, the same subnetwork as the + * original instance. + * + * Create a request for the method "machineImages.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param content the {@link com.google.api.services.compute.model.MachineImage} + * @since 1.13 + */ + protected Insert(java.lang.String project, com.google.api.services.compute.model.MachineImage 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; + } + + /** Required. Source instance that is used to create the machine image from. */ + @com.google.api.client.util.Key + private java.lang.String sourceInstance; + + /** Required. Source instance that is used to create the machine image from. + */ + public java.lang.String getSourceInstance() { + return sourceInstance; + } + + /** Required. Source instance that is used to create the machine image from. */ + public Insert setSourceInstance(java.lang.String sourceInstance) { + this.sourceInstance = sourceInstance; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of machine images that are contained within the specified project. + * + * Create a request for the method "machineImages.list". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/machineImages"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + /** + * Retrieves a list of machine images that are contained within the specified project. + * + * Create a request for the method "machineImages.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineImageList.class); + this.project = com.google.api.client.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. * @@ -108766,158 +109116,130 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the NetworkAttachments collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NetworkAttachments.List request = compute.networkAttachments().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public NetworkAttachments networkAttachments() { - return new NetworkAttachments(); - } - - /** - * The "networkAttachments" collection of methods. - */ - public class NetworkAttachments { - /** - * Retrieves the list of all NetworkAttachment resources, regional and global, available to the - * specified project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "networkAttachments.aggregatedList". + * Create a request for the method "machineImages.setIamPolicy". * * 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 SetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/networkAttachments"; + private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Retrieves the list of all NetworkAttachment resources, regional and global, available to the - * specified project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "networkAttachments.aggregatedList". + * Create a request for the method "machineImages.setIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

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

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

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

* * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkAttachmentAggregatedList.class); + protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.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(); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } - @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. */ + @com.google.api.client.util.Key + private java.lang.String project; /** Project ID for this request. */ @@ -108926,7 +109248,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + public SetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -108936,459 +109258,321 @@ public AggregatedList setProject(java.lang.String project) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - 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:* ``` + private java.lang.String resource; - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } - 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) ``` + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } - 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: + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); + } + } + /** + * Sets the labels on a machine image. To learn more about labels, read theLabeling Resources + * documentation. + * + * Create a request for the method "machineImages.setLabels". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @return the request + */ + public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) throws java.io.IOException { + SetLabels result = new SetLabels(project, resource, content); + initialize(result); + return result; + } - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + public class SetLabels extends ComputeRequest { - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/setLabels"; - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * Sets the labels on a machine image. To learn more about labels, read theLabeling Resources + * documentation. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "machineImages.setLabels". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetLabels#execute()} method to invoke the remote operation.

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

* - * You cannot combine constraints on multiple fields using regular expressions. + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @since 1.13 */ - public AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; + protected SetLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } - /** - * 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; + @Override + public SetLabels set$Xgafv(java.lang.String $Xgafv) { + return (SetLabels) super.set$Xgafv($Xgafv); } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - return this; + @Override + public SetLabels setAccessToken(java.lang.String accessToken) { + return (SetLabels) super.setAccessToken(accessToken); } - /** - * 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; + @Override + public SetLabels setAlt(java.lang.String alt) { + return (SetLabels) super.setAlt(alt); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public AggregatedList setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; + @Override + public SetLabels setCallback(java.lang.String callback) { + return (SetLabels) super.setCallback(callback); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public SetLabels setFields(java.lang.String fields) { + return (SetLabels) super.setFields(fields); + } - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + @Override + public SetLabels setKey(java.lang.String key) { + return (SetLabels) super.setKey(key); + } - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + @Override + public SetLabels setOauthToken(java.lang.String oauthToken) { + return (SetLabels) super.setOauthToken(oauthToken); + } - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetLabels) super.setPrettyPrint(prettyPrint); } - /** - * 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; + @Override + public SetLabels setQuotaUser(java.lang.String quotaUser) { + return (SetLabels) super.setQuotaUser(quotaUser); } - /** - * 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; + @Override + public SetLabels setUploadType(java.lang.String uploadType) { + return (SetLabels) super.setUploadType(uploadType); + } - /** 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; + @Override + public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (SetLabels) super.setUploadProtocol(uploadProtocol); } - /** - * 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; + @Override + public SetLabels setUserIp(java.lang.String userIp) { + return (SetLabels) super.setUserIp(userIp); } - /** - * 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. - */ + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String project; - 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. + /** Project ID for this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getProject() { + return project; } - /** - * 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; + /** Project ID for this request. */ + public SetLabels setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; + private java.lang.String resource; - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. + /** Name or id of the resource for this request. */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; + public java.lang.String getResource() { + return resource; } - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; + /** Name or id of the resource for this request. */ + public SetLabels setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public SetLabels set(String parameterName, Object value) { + return (SetLabels) super.set(parameterName, value); } } /** - * Deletes the specified NetworkAttachment in the given scope + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "networkAttachments.delete". + * Create a request for the method "machineImages.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param networkAttachment Name of the NetworkAttachment resource to delete. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String networkAttachment) throws java.io.IOException { - Delete result = new Delete(project, region, networkAttachment); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; + private static final String REST_PATH = "projects/{project}/global/machineImages/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern NETWORK_ATTACHMENT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified NetworkAttachment in the given scope + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "networkAttachments.delete". + * Create a request for the method "machineImages.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param networkAttachment Name of the NetworkAttachment resource to delete. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String networkAttachment) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.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.networkAttachment = com.google.api.client.util.Preconditions.checkNotNull(networkAttachment, "Required parameter networkAttachment must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), - "Parameter networkAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -109402,7 +109586,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -109412,169 +109596,107 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String resource; - /** Name of the region of this request. + /** Name or id of the resource for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getResource() { + return resource; } - /** Name of the region of this request. */ - public Delete setRegion(java.lang.String region) { + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.region = region; + this.resource = resource; return this; } - /** Name of the NetworkAttachment resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String networkAttachment; - - /** Name of the NetworkAttachment resource to delete. - */ - public java.lang.String getNetworkAttachment() { - return networkAttachment; - } - - /** Name of the NetworkAttachment resource to delete. */ - public Delete setNetworkAttachment(java.lang.String networkAttachment) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), - "Parameter networkAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkAttachment = networkAttachment; - return this; + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } + } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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 accessor for creating requests from the MachineTypes collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.MachineTypes.List request = compute.machineTypes().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public MachineTypes machineTypes() { + return new MachineTypes(); + } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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; - } + /** + * The "machineTypes" collection of methods. + */ + public class MachineTypes { - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } /** - * Returns the specified NetworkAttachment resource in the given scope. + * Retrieves an aggregated list of machine types. * - * Create a request for the method "networkAttachments.get". + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "machineTypes.aggregatedList". * * 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 AggregatedList#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param networkAttachment Name of the NetworkAttachment resource to return. * @return the request */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String networkAttachment) throws java.io.IOException { - Get result = new Get(project, region, networkAttachment); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class Get extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; + private static final String REST_PATH = "projects/{project}/aggregated/machineTypes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern NETWORK_ATTACHMENT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Returns the specified NetworkAttachment resource in the given scope. + * Retrieves an aggregated list of machine types. * - * Create a request for the method "networkAttachments.get". + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "machineTypes.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param networkAttachment Name of the NetworkAttachment resource to return. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String networkAttachment) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkAttachment.class); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineTypeAggregatedList.class); this.project = com.google.api.client.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.networkAttachment = com.google.api.client.util.Preconditions.checkNotNull(networkAttachment, "Required parameter networkAttachment must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), - "Parameter networkAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override @@ -109588,63 +109710,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -109658,7 +109780,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get 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 " + @@ -109668,398 +109790,469 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String filter; - /** Name of the region of this request. - */ - public java.lang.String getRegion() { - return region; - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - /** Name of the region of this request. */ - public Get setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - /** Name of the NetworkAttachment resource to return. */ - @com.google.api.client.util.Key - private java.lang.String networkAttachment; + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - /** Name of the NetworkAttachment resource to return. - */ - public java.lang.String getNetworkAttachment() { - return networkAttachment; - } + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - /** Name of the NetworkAttachment resource to return. */ - public Get setNetworkAttachment(java.lang.String networkAttachment) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), - "Parameter networkAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkAttachment = networkAttachment; - return this; - } + 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. - @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 "networkAttachments.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 region The name of the region 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 region, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, region, resource); - initialize(result); - return result; - } + 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) ``` - public class GetIamPolicy extends ComputeRequest { + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy"; + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "networkAttachments.getIamPolicy". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

+ * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @since 1.13 + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - protected GetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + public AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; } - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + return this; } - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + /** + * 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; } - @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); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public AggregatedList setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; } - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); - } + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - /** Project ID for this request. + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getProject() { - return project; + public java.lang.String getOrderBy() { + return orderBy; } - /** Project ID for this request. */ - public 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; + /** + * 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; } - /** The name of the region for this request. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String pageToken; - /** The name of the region for this request. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getPageToken() { + return pageToken; } - /** The name of the region for this request. */ - public GetIamPolicy setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; + /** + * 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; } - /** Name or id of the resource for this request. */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.Boolean returnPartialSuccess; - /** Name or id of the resource for this request. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getResource() { - return resource; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** Name or id of the resource for this request. */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; + /** + * 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; } - /** Requested IAM Policy version. */ + /** + * 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.Integer optionsRequestedPolicyVersion; + private java.lang.Long serviceProjectNumber; - /** Requested IAM Policy version. + /** 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.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Creates a NetworkAttachment in the specified project in the given scope using the parameters that - * are included in the request. + * Returns the specified machine type. * - * Create a request for the method "networkAttachments.insert". + * Create a request for the method "machineTypes.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param content the {@link com.google.api.services.compute.model.NetworkAttachment} + * @param zone The name of the zone for this request. + * @param machineType Name of the machine type to return. * @return the request */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkAttachment content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + public Get get(java.lang.String project, java.lang.String zone, java.lang.String machineType) throws java.io.IOException { + Get result = new Get(project, zone, machineType); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/machineTypes/{machineType}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private final java.util.regex.Pattern MACHINE_TYPE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Creates a NetworkAttachment in the specified project in the given scope using the parameters - * that are included in the request. + * Returns the specified machine type. * - * Create a request for the method "networkAttachments.insert". + * Create a request for the method "machineTypes.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param region Name of the region of this request. - * @param content the {@link com.google.api.services.compute.model.NetworkAttachment} + * @param zone The name of the zone for this request. + * @param machineType Name of the machine type to return. * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkAttachment 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 machineType) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineType.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.machineType = com.google.api.client.util.Preconditions.checkNotNull(machineType, "Required parameter machineType must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(MACHINE_TYPE_PATTERN.matcher(machineType).matches(), + "Parameter machineType must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -110073,7 +110266,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -110083,113 +110276,85 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region of this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** Name of the region of this request. */ - public Insert setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public Get setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder - */ + /** Name of the machine 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 machineType; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + /** Name of the machine type to return. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getMachineType() { + return machineType; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder - */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Name of the machine type to return. */ + public Get setMachineType(java.lang.String machineType) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(MACHINE_TYPE_PATTERN.matcher(machineType).matches(), + "Parameter machineType must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.machineType = machineType; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Lists the NetworkAttachments for a project in the given scope. + * Retrieves a list of machine types available to the specified project. * - * Create a request for the method "networkAttachments.list". + * Create a request for the method "machineTypes.list". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region of this request. + * @param zone The name of the zone for this request. * @return the request */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); + public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { + List result = new List(project, zone); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/machineTypes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Lists the NetworkAttachments for a project in the given scope. + * Retrieves a list of machine types available to the specified project. * - * Create a request for the method "networkAttachments.list". + * Create a request for the method "machineTypes.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link @@ -110197,21 +110362,21 @@ public class List extends ComputeRequest * * @param project Project ID for this request. - * @param region Name of the region of this request. + * @param zone The name of the zone for this request. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkAttachmentList.class); + protected List(java.lang.String project, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.MachineTypeList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @@ -110307,24 +110472,24 @@ public List setProject(java.lang.String project) { return this; } - /** Name of the region of this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** Name of the region of this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** Name of the region of this request. */ - public List setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public List setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } @@ -110597,137 +110762,153 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the NetworkAttachments collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.NetworkAttachments.List request = compute.networkAttachments().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public NetworkAttachments networkAttachments() { + return new NetworkAttachments(); + } + + /** + * The "networkAttachments" collection of methods. + */ + public class NetworkAttachments { + /** - * Patches the specified NetworkAttachment resource with the data included in the request. This - * method supports PATCH semantics and usesJSON merge patch format and processing rules. + * Retrieves the list of all NetworkAttachment resources, regional and global, available to the + * specified project. * - * Create a request for the method "networkAttachments.patch". + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "networkAttachments.aggregatedList". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param networkAttachment Name of the NetworkAttachment resource to patch. - * @param content the {@link com.google.api.services.compute.model.NetworkAttachment} * @return the request */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String networkAttachment, com.google.api.services.compute.model.NetworkAttachment content) throws java.io.IOException { - Patch result = new Patch(project, region, networkAttachment, content); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; + private static final String REST_PATH = "projects/{project}/aggregated/networkAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern NETWORK_ATTACHMENT_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Patches the specified NetworkAttachment resource with the data included in the request. This - * method supports PATCH semantics and usesJSON merge patch format and processing rules. + * Retrieves the list of all NetworkAttachment resources, regional and global, available to the + * specified project. * - * Create a request for the method "networkAttachments.patch". + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "networkAttachments.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param region Name of the region for this request. - * @param networkAttachment Name of the NetworkAttachment resource to patch. - * @param content the {@link com.google.api.services.compute.model.NetworkAttachment} * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String networkAttachment, com.google.api.services.compute.model.NetworkAttachment content) { - super(Compute.this, "PATCH", 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.NetworkAttachmentAggregatedList.class); this.project = com.google.api.client.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.networkAttachment = com.google.api.client.util.Preconditions.checkNotNull(networkAttachment, "Required parameter networkAttachment must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), - "Parameter networkAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) 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. */ @@ -110741,7 +110922,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch 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 " + @@ -110751,125 +110932,354 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region for this request. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String filter; - /** Name of the region for this request. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getFilter() { + return filter; } - /** Name of the region for this request. */ - public Patch setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; + /** + * 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 NetworkAttachment resource to patch. */ + /** + * 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 networkAttachment; + private java.lang.Boolean includeAllScopes; - /** Name of the NetworkAttachment resource to patch. + /** 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 getNetworkAttachment() { - return networkAttachment; + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; } - /** Name of the NetworkAttachment resource to patch. */ - public Patch setNetworkAttachment(java.lang.String networkAttachment) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), - "Parameter networkAttachment must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkAttachment = networkAttachment; + /** + * 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). end_interface: MixerMutationRequestBuilder + * 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). end_interface: MixerMutationRequestBuilder + 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). end_interface: MixerMutationRequestBuilder + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public Patch 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 Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Deletes the specified NetworkAttachment in the given scope * - * Create a request for the method "networkAttachments.setIamPolicy". + * Create a request for the method "networkAttachments.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param region Name of the region of this request. + * @param networkAttachment Name of the NetworkAttachment resource to delete. * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, region, resource, content); + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String networkAttachment) throws java.io.IOException { + Delete result = new Delete(project, region, networkAttachment); initialize(result); return result; } - public class SetIamPolicy extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -110877,28 +111287,26 @@ public class SetIamPolicy extends ComputeRequest - * {@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

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

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

* * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param region Name of the region of this request. + * @param networkAttachment Name of the NetworkAttachment resource to delete. * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + protected Delete(java.lang.String project, java.lang.String region, java.lang.String networkAttachment) { + 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(), @@ -110911,72 +111319,72 @@ protected SetIamPolicy(java.lang.String project, java.lang.String region, java.l "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.networkAttachment = com.google.api.client.util.Preconditions.checkNotNull(networkAttachment, "Required parameter networkAttachment must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), + "Parameter networkAttachment must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -110990,7 +111398,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -111000,18 +111408,18 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public SetIamPolicy setRegion(java.lang.String region) { + /** Name of the region 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 " + @@ -111021,55 +111429,103 @@ public SetIamPolicy setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the NetworkAttachment resource to delete. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String networkAttachment; - /** Name or id of the resource for this request. + /** Name of the NetworkAttachment resource to delete. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getNetworkAttachment() { + return networkAttachment; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** Name of the NetworkAttachment resource to delete. */ + public Delete setNetworkAttachment(java.lang.String networkAttachment) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), + "Parameter networkAttachment must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.networkAttachment = networkAttachment; + 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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Returns the specified NetworkAttachment resource in the given scope. * - * Create a request for the method "networkAttachments.testIamPermissions". + * Create a request for the method "networkAttachments.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param region Name of the region of this request. + * @param networkAttachment Name of the NetworkAttachment resource to return. * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); + public Get get(java.lang.String project, java.lang.String region, java.lang.String networkAttachment) throws java.io.IOException { + Get result = new Get(project, region, networkAttachment); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -111077,28 +111533,26 @@ public class TestIamPermissions extends ComputeRequest {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

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

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

* * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param region Name of the region of this request. + * @param networkAttachment Name of the NetworkAttachment resource to return. * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected Get(java.lang.String project, java.lang.String region, java.lang.String networkAttachment) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkAttachment.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -111111,72 +111565,82 @@ protected TestIamPermissions(java.lang.String project, java.lang.String region, "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.networkAttachment = com.google.api.client.util.Preconditions.checkNotNull(networkAttachment, "Required parameter networkAttachment must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), + "Parameter networkAttachment must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) 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. */ @@ -111190,7 +111654,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions 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 " + @@ -111200,18 +111664,18 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { + /** Name of the region of this request. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -111221,109 +111685,101 @@ public TestIamPermissions setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the NetworkAttachment resource to return. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String networkAttachment; - /** Name or id of the resource for this request. + /** Name of the NetworkAttachment resource to return. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getNetworkAttachment() { + return networkAttachment; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Name of the NetworkAttachment resource to return. */ + public Get setNetworkAttachment(java.lang.String networkAttachment) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), + "Parameter networkAttachment must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.networkAttachment = networkAttachment; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the NetworkEdgeSecurityServices collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NetworkEdgeSecurityServices.List request = compute.networkEdgeSecurityServices().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public NetworkEdgeSecurityServices networkEdgeSecurityServices() { - return new NetworkEdgeSecurityServices(); - } - - /** - * The "networkEdgeSecurityServices" collection of methods. - */ - public class NetworkEdgeSecurityServices { - /** - * Retrieves the list of all NetworkEdgeSecurityService resources available to the specified - * project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "networkEdgeSecurityServices.aggregatedList". + * Create a request for the method "networkAttachments.getIamPolicy". * * 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 GetIamPolicy#execute()} method to invoke the remote operation. * - * @param project Name of the project scoping this request. + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, region, resource); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/networkEdgeSecurityServices"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Retrieves the list of all NetworkEdgeSecurityService resources available to the specified - * project. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "networkEdgeSecurityServices.aggregatedList". + * Create a request for the method "networkAttachments.getIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

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

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

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

* - * @param project Name of the project scoping this request. + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEdgeSecurityServiceAggregatedList.class); + protected GetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override @@ -111337,77 +111793,77 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } - /** Name of the project scoping this request. */ + /** Project ID for this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Name of the project scoping this request. + /** Project ID for this request. */ public java.lang.String getProject() { return project; } - /** Name of the project scoping this request. */ - public AggregatedList setProject(java.lang.String project) { + /** Project ID for this request. */ + public 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 " + @@ -111417,354 +111873,92 @@ public AggregatedList setProject(java.lang.String project) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ + /** The name of the region for this request. */ @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - 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:* ``` + private java.lang.String region; - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } - 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) ``` + /** The name of the region for this request. */ + public GetIamPolicy setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } - 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: + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + /** 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; + } - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + /** Requested IAM Policy version. */ + @com.google.api.client.util.Key + private java.lang.Integer optionsRequestedPolicyVersion; - You cannot combine constraints on multiple fields using regular expressions. + /** Requested IAM Policy version. */ - public java.lang.String getFilter() { - return filter; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** - * 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; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Deletes the specified service. + * Creates a NetworkAttachment in the specified project in the given scope using the parameters that + * are included in the request. * - * Create a request for the method "networkEdgeSecurityServices.delete". + * Create a request for the method "networkAttachments.insert". * * 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 Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param networkEdgeSecurityService Name of the network edge security service to delete. + * @param region Name of the region of this request. + * @param content the {@link com.google.api.services.compute.model.NetworkAttachment} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) throws java.io.IOException { - Delete result = new Delete(project, region, networkEdgeSecurityService); + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkAttachment content) throws java.io.IOException { + Insert result = new Insert(project, region, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -111772,26 +111966,24 @@ public class Delete extends ComputeRequest {@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

* * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param networkEdgeSecurityService Name of the network edge security service to delete. + * @param region Name of the region of this request. + * @param content the {@link com.google.api.services.compute.model.NetworkAttachment} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkAttachment 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(), @@ -111804,72 +111996,66 @@ protected Delete(java.lang.String project, java.lang.String region, java.lang.St "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.networkEdgeSecurityService = com.google.api.client.util.Preconditions.checkNotNull(networkEdgeSecurityService, "Required parameter networkEdgeSecurityService must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), - "Parameter networkEdgeSecurityService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -111883,7 +112069,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -111893,18 +112079,18 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Delete setRegion(java.lang.String region) { + /** Name of the region of this request. */ + public Insert setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -111914,27 +112100,6 @@ public Delete setRegion(java.lang.String region) { return this; } - /** Name of the network edge security service to delete. */ - @com.google.api.client.util.Key - private java.lang.String networkEdgeSecurityService; - - /** Name of the network edge security service to delete. - */ - public java.lang.String getNetworkEdgeSecurityService() { - return networkEdgeSecurityService; - } - - /** Name of the network edge security service to delete. */ - public Delete setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurityService) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), - "Parameter networkEdgeSecurityService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkEdgeSecurityService = networkEdgeSecurityService; - 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 @@ -111946,7 +112111,7 @@ public Delete setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurity * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -111960,7 +112125,7 @@ public Delete setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurity clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -111977,40 +112142,39 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ - public Delete setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Gets a specified NetworkEdgeSecurityService. + * Lists the NetworkAttachments for a project in the given scope. * - * Create a request for the method "networkEdgeSecurityServices.get". + * Create a request for the method "networkAttachments.list". * * 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 List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param networkEdgeSecurityService Name of the network edge security service to get. + * @param region Name of the region of this request. * @return the request */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) throws java.io.IOException { - Get result = new Get(project, region, networkEdgeSecurityService); + 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 Get extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -112018,26 +112182,22 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param networkEdgeSecurityService Name of the network edge security service to get. + * @param region Name of the region of this request. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEdgeSecurityService.class); + protected List(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkAttachmentList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -112050,12 +112210,6 @@ protected Get(java.lang.String project, java.lang.String region, java.lang.Strin "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.networkEdgeSecurityService = com.google.api.client.util.Preconditions.checkNotNull(networkEdgeSecurityService, "Required parameter networkEdgeSecurityService must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), - "Parameter networkEdgeSecurityService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override @@ -112069,63 +112223,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -112139,7 +112293,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get 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 " + @@ -112149,18 +112303,18 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region of this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region of this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Get setRegion(java.lang.String region) { + /** Name of the region of this request. */ + public List setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -112170,54 +112324,299 @@ public Get setRegion(java.lang.String region) { return this; } - /** Name of the network edge security service to get. */ + /** + * 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 networkEdgeSecurityService; + private java.lang.String filter; - /** Name of the network edge security service to get. - */ - public java.lang.String getNetworkEdgeSecurityService() { - return networkEdgeSecurityService; - } + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - /** Name of the network edge security service to get. */ - public Get setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurityService) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), - "Parameter networkEdgeSecurityService must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkEdgeSecurityService = networkEdgeSecurityService; + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Creates a new service in the specified project using the data included in the request. + * Patches the specified NetworkAttachment resource with the data included in the request. This + * method supports PATCH semantics and usesJSON merge patch format and processing rules. * - * Create a request for the method "networkEdgeSecurityServices.insert". + * Create a request for the method "networkAttachments.patch". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} + * @param region Name of the region for this request. + * @param networkAttachment Name of the NetworkAttachment resource to patch. + * @param content the {@link com.google.api.services.compute.model.NetworkAttachment} * @return the request */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkEdgeSecurityService content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String networkAttachment, com.google.api.services.compute.model.NetworkAttachment content) throws java.io.IOException { + Patch result = new Patch(project, region, networkAttachment, content); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{networkAttachment}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -112225,23 +112624,28 @@ public class Insert extends ComputeRequest {@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

* * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} + * @param region Name of the region for this request. + * @param networkAttachment Name of the NetworkAttachment resource to patch. + * @param content the {@link com.google.api.services.compute.model.NetworkAttachment} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkEdgeSecurityService content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Patch(java.lang.String project, java.lang.String region, java.lang.String networkAttachment, com.google.api.services.compute.model.NetworkAttachment 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(), @@ -112254,66 +112658,72 @@ protected Insert(java.lang.String project, java.lang.String region, com.google.a "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.networkAttachment = com.google.api.client.util.Preconditions.checkNotNull(networkAttachment, "Required parameter networkAttachment must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), + "Parameter networkAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -112327,7 +112737,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert 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 " + @@ -112337,18 +112747,18 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** Name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** Name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Insert setRegion(java.lang.String region) { + /** Name of the region for this request. */ + public Patch setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -112358,6 +112768,27 @@ public Insert setRegion(java.lang.String region) { return this; } + /** Name of the NetworkAttachment resource to patch. */ + @com.google.api.client.util.Key + private java.lang.String networkAttachment; + + /** Name of the NetworkAttachment resource to patch. + */ + public java.lang.String getNetworkAttachment() { + return networkAttachment; + } + + /** Name of the NetworkAttachment resource to patch. */ + public Patch setNetworkAttachment(java.lang.String networkAttachment) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_ATTACHMENT_PATTERN.matcher(networkAttachment).matches(), + "Parameter networkAttachment must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkAttachment = networkAttachment; + 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 @@ -112369,7 +112800,7 @@ public Insert setRegion(java.lang.String region) { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ @com.google.api.client.util.Key private java.lang.String requestId; @@ -112383,7 +112814,7 @@ public Insert setRegion(java.lang.String region) { clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ public java.lang.String getRequestId() { return requestId; @@ -112400,57 +112831,41 @@ public java.lang.String getRequestId() { * request. This prevents clients from accidentally creating duplicate commitments. * * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * (00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder */ - public Insert setRequestId(java.lang.String requestId) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } - /** If true, the request will not be committed. */ - @com.google.api.client.util.Key - private java.lang.Boolean validateOnly; - - /** If true, the request will not be committed. - */ - public java.lang.Boolean getValidateOnly() { - return validateOnly; - } - - /** If true, the request will not be committed. */ - public Insert setValidateOnly(java.lang.Boolean validateOnly) { - this.validateOnly = validateOnly; - return this; - } - @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Patches the specified policy with the data included in the request. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "networkEdgeSecurityServices.patch". + * Create a request for the method "networkAttachments.setIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param networkEdgeSecurityService Name of the network edge security service to update. - * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} * @return the request */ - public Patch patch(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService, com.google.api.services.compute.model.NetworkEdgeSecurityService content) throws java.io.IOException { - Patch result = new Patch(project, region, networkEdgeSecurityService, content); + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, region, resource, content); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -112458,27 +112873,28 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

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

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

* * @param project Project ID for this request. - * @param region Name of the region scoping this request. - * @param networkEdgeSecurityService Name of the network edge security service to update. - * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService, com.google.api.services.compute.model.NetworkEdgeSecurityService content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected SetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -112491,72 +112907,72 @@ protected Patch(java.lang.String project, java.lang.String region, java.lang.Str "Parameter region must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.networkEdgeSecurityService = com.google.api.client.util.Preconditions.checkNotNull(networkEdgeSecurityService, "Required parameter networkEdgeSecurityService must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), - "Parameter networkEdgeSecurityService must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -112570,7 +112986,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public SetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -112580,18 +112996,18 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the region scoping this request. */ + /** The name of the region for this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** Name of the region scoping this request. + /** The name of the region for this request. */ public java.lang.String getRegion() { return region; } - /** Name of the region scoping this request. */ - public Patch setRegion(java.lang.String region) { + /** The name of the region for this request. */ + public SetIamPolicy setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -112601,147 +113017,268 @@ public Patch setRegion(java.lang.String region) { return this; } - /** Name of the network edge security service to update. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String networkEdgeSecurityService; + private java.lang.String resource; - /** Name of the network edge security service to update. + /** Name or id of the resource for this request. */ - public java.lang.String getNetworkEdgeSecurityService() { - return networkEdgeSecurityService; + public java.lang.String getResource() { + return resource; } - /** Name of the network edge security service to update. */ - public Patch setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurityService) { + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), - "Parameter networkEdgeSecurityService must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.networkEdgeSecurityService = networkEdgeSecurityService; + this.resource = resource; return this; } - @com.google.api.client.util.Key - private java.util.List paths; - - /** - - */ - public java.util.List getPaths() { - return paths; - } - - public Patch setPaths(java.util.List paths) { - this.paths = paths; - return this; + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "networkAttachments.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, region, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * Returns permissions that a caller has on the specified resource. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Create a request for the method "networkAttachments.testIamPermissions". * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.String requestId; + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getProject() { + return project; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. */ - public Patch setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } - /** Indicates fields to be updated as part of this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String resource; - /** Indicates fields to be updated as part of this request. + /** Name or id of the resource for this request. */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getResource() { + return resource; } - /** Indicates fields to be updated as part of this request. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the NetworkEndpointGroups collection. + * An accessor for creating requests from the NetworkEdgeSecurityServices collection. * *

The typical use is:

*
    *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NetworkEndpointGroups.List request = compute.networkEndpointGroups().list(parameters ...)}
+   *   {@code Compute.NetworkEdgeSecurityServices.List request = compute.networkEdgeSecurityServices().list(parameters ...)}
    * 
* * @return the resource collection */ - public NetworkEndpointGroups networkEndpointGroups() { - return new NetworkEndpointGroups(); + public NetworkEdgeSecurityServices networkEdgeSecurityServices() { + return new NetworkEdgeSecurityServices(); } /** - * The "networkEndpointGroups" collection of methods. + * The "networkEdgeSecurityServices" collection of methods. */ - public class NetworkEndpointGroups { + public class NetworkEdgeSecurityServices { /** - * Retrieves the list of network endpoint groups and sorts them by zone. + * Retrieves the list of all NetworkEdgeSecurityService resources available to the specified + * project. * * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to * `true`. * - * Create a request for the method "networkEndpointGroups.aggregatedList". + * Create a request for the method "networkEdgeSecurityServices.aggregatedList". * * This request holds the parameters needed by the compute server. After setting any optional * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. + * @param project Name of the project scoping this request. * @return the request */ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { @@ -112750,20 +113287,21 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/networkEndpointGroups"; + private static final String REST_PATH = "projects/{project}/aggregated/networkEdgeSecurityServices"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves the list of network endpoint groups and sorts them by zone. + * Retrieves the list of all NetworkEdgeSecurityService resources available to the specified + * project. * * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to * `true`. * - * Create a request for the method "networkEndpointGroups.aggregatedList". + * Create a request for the method "networkEdgeSecurityServices.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. @@ -112771,11 +113309,11 @@ public class AggregatedList extends ComputeRequest * - * @param project Project ID for this request. + * @param project Name of the project scoping this request. * @since 1.13 */ protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroupAggregatedList.class); + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEdgeSecurityServiceAggregatedList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -112854,17 +113392,17 @@ public AggregatedList setUserIp(java.lang.String userIp) { return (AggregatedList) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Name of the project scoping this request. */ @com.google.api.client.util.Key private java.lang.String project; - /** Project ID for this request. + /** Name of the project scoping this request. */ public java.lang.String getProject() { return project; } - /** Project ID for this request. */ + /** Name of the project scoping this request. */ public AggregatedList setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -113202,126 +113740,132 @@ public AggregatedList set(String parameterName, Object value) { } } /** - * Attach a list of network endpoints to the specified network endpoint group. + * Deletes the specified service. * - * Create a request for the method "networkEndpointGroups.attachNetworkEndpoints". + * Create a request for the method "networkEdgeSecurityServices.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AttachNetworkEndpoints#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone where - the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group where you are attaching network - endpoints to. It should - * comply with RFC1035. - * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsAttachEndpointsRequest} + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to delete. * @return the request */ - public AttachNetworkEndpoints attachNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsAttachEndpointsRequest content) throws java.io.IOException { - AttachNetworkEndpoints result = new AttachNetworkEndpoints(project, zone, networkEndpointGroup, content); + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) throws java.io.IOException { + Delete result = new Delete(project, region, networkEdgeSecurityService); initialize(result); return result; } - public class AttachNetworkEndpoints extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern NETWORK_EDGE_SECURITY_SERVICE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Attach a list of network endpoints to the specified network endpoint group. + * Deletes the specified service. * - * Create a request for the method "networkEndpointGroups.attachNetworkEndpoints". + * Create a request for the method "networkEdgeSecurityServices.delete". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AttachNetworkEndpoints#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param zone The name of the zone where - the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group where you are attaching network - endpoints to. It should - * comply with RFC1035. - * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsAttachEndpointsRequest} + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to delete. * @since 1.13 */ - protected AttachNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsAttachEndpointsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Delete(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.networkEdgeSecurityService = com.google.api.client.util.Preconditions.checkNotNull(networkEdgeSecurityService, "Required parameter networkEdgeSecurityService must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), + "Parameter networkEdgeSecurityService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public AttachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (AttachNetworkEndpoints) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public AttachNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (AttachNetworkEndpoints) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public AttachNetworkEndpoints setAlt(java.lang.String alt) { - return (AttachNetworkEndpoints) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public AttachNetworkEndpoints setCallback(java.lang.String callback) { - return (AttachNetworkEndpoints) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public AttachNetworkEndpoints setFields(java.lang.String fields) { - return (AttachNetworkEndpoints) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public AttachNetworkEndpoints setKey(java.lang.String key) { - return (AttachNetworkEndpoints) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public AttachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (AttachNetworkEndpoints) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public AttachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AttachNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public AttachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (AttachNetworkEndpoints) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public AttachNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (AttachNetworkEndpoints) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public AttachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (AttachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public AttachNetworkEndpoints setUserIp(java.lang.String userIp) { - return (AttachNetworkEndpoints) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -113335,7 +113879,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AttachNetworkEndpoints setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -113345,48 +113889,45 @@ public AttachNetworkEndpoints setProject(java.lang.String project) { return this; } - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String region; - /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. + /** Name of the region scoping this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getRegion() { + return region; } - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ - public AttachNetworkEndpoints setZone(java.lang.String zone) { - this.zone = zone; + /** Name of the region scoping this request. */ + public Delete setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } - /** - * The name of the network endpoint group where you are attaching network endpoints to. It - * should comply with RFC1035. - */ + /** Name of the network edge security service to delete. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String networkEdgeSecurityService; - /** The name of the network endpoint group where you are attaching network endpoints to. It should - comply with RFC1035. + /** Name of the network edge security service to delete. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getNetworkEdgeSecurityService() { + return networkEdgeSecurityService; } - /** - * The name of the network endpoint group where you are attaching network endpoints to. It - * should comply with RFC1035. - */ - public AttachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; + /** Name of the network edge security service to delete. */ + public Delete setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurityService) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), + "Parameter networkEdgeSecurityService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkEdgeSecurityService = networkEdgeSecurityService; return this; } @@ -113434,135 +113975,153 @@ 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 AttachNetworkEndpoints setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AttachNetworkEndpoints set(String parameterName, Object value) { - return (AttachNetworkEndpoints) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Deletes the specified network endpoint group. The network endpoints in the NEG and the VM - * instances they belong to are not terminated when the NEG is deleted. Note that the NEG cannot be - * deleted if there are backend services referencing it. + * Gets a specified NetworkEdgeSecurityService. * - * Create a request for the method "networkEndpointGroups.delete". + * Create a request for the method "networkEdgeSecurityServices.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone where - the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply with - RFC1035. + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to get. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup) throws java.io.IOException { - Delete result = new Delete(project, zone, networkEndpointGroup); + public Get get(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) throws java.io.IOException { + Get result = new Get(project, region, networkEdgeSecurityService); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern NETWORK_EDGE_SECURITY_SERVICE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Deletes the specified network endpoint group. The network endpoints in the NEG and the VM - * instances they belong to are not terminated when the NEG is deleted. Note that the NEG cannot - * be deleted if there are backend services referencing it. + * Gets a specified NetworkEdgeSecurityService. * - * Create a request for the method "networkEndpointGroups.delete". + * Create a request for the method "networkEdgeSecurityServices.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param zone The name of the zone where - the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply with - RFC1035. + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to get. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Get(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEdgeSecurityService.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.networkEdgeSecurityService = com.google.api.client.util.Preconditions.checkNotNull(networkEdgeSecurityService, "Required parameter networkEdgeSecurityService must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), + "Parameter networkEdgeSecurityService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public 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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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. */ @@ -113576,7 +114135,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete 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 " + @@ -113586,154 +114145,98 @@ public Delete setProject(java.lang.String project) { return this; } - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ - public Delete setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the network endpoint group to delete. It should comply with RFC1035. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String region; - /** The name of the network endpoint group to delete. It should comply with RFC1035. + /** Name of the region scoping this request. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getRegion() { + return region; } - /** - * The name of the network endpoint group to delete. It should comply with RFC1035. - */ - public Delete setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; + /** Name of the region scoping this request. */ + public Get setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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 network edge security service to get. */ @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 networkEdgeSecurityService; - 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 network edge security service to get. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getNetworkEdgeSecurityService() { + return networkEdgeSecurityService; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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; + /** Name of the network edge security service to get. */ + public Get setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurityService) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), + "Parameter networkEdgeSecurityService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkEdgeSecurityService = networkEdgeSecurityService; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Detach a list of network endpoints from the specified network endpoint group. + * Creates a new service in the specified project using the data included in the request. * - * Create a request for the method "networkEndpointGroups.detachNetworkEndpoints". + * Create a request for the method "networkEdgeSecurityServices.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DetachNetworkEndpoints#execute()} method to invoke the remote - * operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone where - the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group where you are removing network - endpoints. It should comply - * with RFC1035. - * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsDetachEndpointsRequest} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} * @return the request */ - public DetachNetworkEndpoints detachNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsDetachEndpointsRequest content) throws java.io.IOException { - DetachNetworkEndpoints result = new DetachNetworkEndpoints(project, zone, networkEndpointGroup, content); + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkEdgeSecurityService content) throws java.io.IOException { + Insert result = new Insert(project, region, content); initialize(result); return result; } - public class DetachNetworkEndpoints extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Detach a list of network endpoints from the specified network endpoint group. + * Creates a new service in the specified project using the data included in the request. * - * Create a request for the method "networkEndpointGroups.detachNetworkEndpoints". + * Create a request for the method "networkEdgeSecurityServices.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DetachNetworkEndpoints#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param zone The name of the zone where - the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group where you are removing network - endpoints. It should comply - * with RFC1035. - * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsDetachEndpointsRequest} + * @param region Name of the region scoping this request. + * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} * @since 1.13 */ - protected DetachNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsDetachEndpointsRequest content) { + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NetworkEdgeSecurityService 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()) { @@ -113741,68 +114244,72 @@ protected DetachNetworkEndpoints(java.lang.String project, java.lang.String zone "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override - public DetachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (DetachNetworkEndpoints) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public DetachNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (DetachNetworkEndpoints) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public DetachNetworkEndpoints setAlt(java.lang.String alt) { - return (DetachNetworkEndpoints) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public DetachNetworkEndpoints setCallback(java.lang.String callback) { - return (DetachNetworkEndpoints) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public DetachNetworkEndpoints setFields(java.lang.String fields) { - return (DetachNetworkEndpoints) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public DetachNetworkEndpoints setKey(java.lang.String key) { - return (DetachNetworkEndpoints) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public DetachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (DetachNetworkEndpoints) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public DetachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DetachNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public DetachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (DetachNetworkEndpoints) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public DetachNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (DetachNetworkEndpoints) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public DetachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (DetachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public DetachNetworkEndpoints setUserIp(java.lang.String userIp) { - return (DetachNetworkEndpoints) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -113816,7 +114323,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DetachNetworkEndpoints setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -113826,48 +114333,24 @@ public DetachNetworkEndpoints setProject(java.lang.String project) { return this; } - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ - public DetachNetworkEndpoints setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** - * The name of the network endpoint group where you are removing network endpoints. It should - * comply with RFC1035. - */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String region; - /** The name of the network endpoint group where you are removing network endpoints. It should comply - with RFC1035. + /** Name of the region scoping this request. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getRegion() { + return region; } - /** - * The name of the network endpoint group where you are removing network endpoints. It should - * comply with RFC1035. - */ - public DetachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; + /** Name of the region scoping this request. */ + public Insert setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; return this; } @@ -113915,139 +114398,161 @@ 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 DetachNetworkEndpoints setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } + /** If true, the request will not be committed. */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** If true, the request will not be committed. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** If true, the request will not be committed. */ + public Insert setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + @Override - public DetachNetworkEndpoints set(String parameterName, Object value) { - return (DetachNetworkEndpoints) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Returns the specified network endpoint group. + * Patches the specified policy with the data included in the request. * - * Create a request for the method "networkEndpointGroups.get". + * Create a request for the method "networkEdgeSecurityServices.patch". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone where - the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to update. + * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} * @return the request */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup) throws java.io.IOException { - Get result = new Get(project, zone, networkEndpointGroup); + public Patch patch(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService, com.google.api.services.compute.model.NetworkEdgeSecurityService content) throws java.io.IOException { + Patch result = new Patch(project, region, networkEdgeSecurityService, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}"; + private static final String REST_PATH = "projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern NETWORK_EDGE_SECURITY_SERVICE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Returns the specified network endpoint group. + * Patches the specified policy with the data included in the request. * - * Create a request for the method "networkEndpointGroups.get". + * Create a request for the method "networkEdgeSecurityServices.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param zone The name of the zone where - the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. + * @param region Name of the region scoping this request. + * @param networkEdgeSecurityService Name of the network edge security service to update. + * @param content the {@link com.google.api.services.compute.model.NetworkEdgeSecurityService} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroup.class); + protected Patch(java.lang.String project, java.lang.String region, java.lang.String networkEdgeSecurityService, com.google.api.services.compute.model.NetworkEdgeSecurityService content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + this.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.networkEdgeSecurityService = com.google.api.client.util.Preconditions.checkNotNull(networkEdgeSecurityService, "Required parameter networkEdgeSecurityService must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), + "Parameter networkEdgeSecurityService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -114061,7 +114566,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public Patch setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -114071,220 +114576,60 @@ public Get setProject(java.lang.String project) { return this; } - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of the zone where the network endpoint group is located. It should comply with - * RFC1035. - */ - public Get setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - - /** The name of the network endpoint group. It should comply with RFC1035. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String region; - /** The name of the network endpoint group. It should comply with RFC1035. + /** Name of the region scoping this request. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; - } - - /** The name of the network endpoint group. It should comply with RFC1035. */ - public Get setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = networkEndpointGroup; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public java.lang.String getRegion() { + return region; } - } - /** - * Creates a network endpoint group in the specified project using the parameters that are included - * in the request. - * - * Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with - * zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage - * NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service - * Connect NEGs): regional API - To manage NEGs with global scope (such as global internet - * NEGs):global API - * - * Create a request for the method "networkEndpointGroups.insert". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone where - you want to create the network endpoint group. It should comply with - * RFC1035. - * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroup} - * @return the request - */ - public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.NetworkEndpointGroup content) throws java.io.IOException { - Insert result = new Insert(project, zone, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - /** - * Creates a network endpoint group in the specified project using the parameters that are - * included in the request. - * - * Note: Use the following APIs to manage network endpoint groups: - To manage NEGs - * with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To - * manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private - * Service Connect NEGs): regional API - To manage NEGs with global scope (such as - * global internet NEGs):global API - * - * Create a request for the method "networkEndpointGroups.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param zone The name of the zone where - you want to create the network endpoint group. It should comply with - * RFC1035. - * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroup} - * @since 1.13 - */ - protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.NetworkEndpointGroup 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."); + /** Name of the region scoping this request. */ + public Patch setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - } - - @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); - } - - @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); - } - - @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); - } - - @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); - } - - @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); - } - - @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); - } - - @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); - } - - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); - } - - @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); - } - - @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); - } - - @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); - } - - @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + this.region = region; + return this; } - /** Project ID for this request. */ + /** Name of the network edge security service to update. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String networkEdgeSecurityService; - /** Project ID for this request. + /** Name of the network edge security service to update. */ - public java.lang.String getProject() { - return project; + public java.lang.String getNetworkEdgeSecurityService() { + return networkEdgeSecurityService; } - /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + /** Name of the network edge security service to update. */ + public Patch setNetworkEdgeSecurityService(java.lang.String networkEdgeSecurityService) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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(NETWORK_EDGE_SECURITY_SERVICE_PATTERN.matcher(networkEdgeSecurityService).matches(), + "Parameter networkEdgeSecurityService must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.project = project; + this.networkEdgeSecurityService = networkEdgeSecurityService; return this; } - /** - * The name of the zone where you want to create the network endpoint group. It should comply - * with RFC1035. - */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.util.List paths; + + /** - /** The name of the zone where you want to create the network endpoint group. It should comply with - RFC1035. */ - public java.lang.String getZone() { - return zone; + public java.util.List getPaths() { + return paths; } - /** - * The name of the zone where you want to create the network endpoint group. It should comply - * with RFC1035. - */ - public Insert setZone(java.lang.String zone) { - this.zone = zone; + public Patch setPaths(java.util.List paths) { + this.paths = paths; return this; } @@ -114332,67 +114677,107 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Insert setRequestId(java.lang.String requestId) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } + /** Indicates fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Indicates fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Indicates fields to be updated as part of this request. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the NetworkEndpointGroups collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.NetworkEndpointGroups.List request = compute.networkEndpointGroups().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public NetworkEndpointGroups networkEndpointGroups() { + return new NetworkEndpointGroups(); + } + + /** + * The "networkEndpointGroups" collection of methods. + */ + public class NetworkEndpointGroups { + /** - * Retrieves the list of network endpoint groups that are located in the specified project and zone. + * Retrieves the list of network endpoint groups and sorts them by zone. * - * Create a request for the method "networkEndpointGroups.list". + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "networkEndpointGroups.aggregatedList". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of thezone - where the network endpoint group is located. It should comply with RFC1035. * @return the request */ - public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { - List result = new List(project, zone); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups"; + private static final String REST_PATH = "projects/{project}/aggregated/networkEndpointGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves the list of network endpoint groups that are located in the specified project and - * zone. + * Retrieves the list of network endpoint groups and sorts them by zone. * - * Create a request for the method "networkEndpointGroups.list". + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "networkEndpointGroups.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param zone The name of thezone - where the network endpoint group is located. It should comply with RFC1035. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroupList.class); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroupAggregatedList.class); this.project = com.google.api.client.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."); } @Override @@ -114406,63 +114791,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); + } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -114476,7 +114861,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public AggregatedList setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -114486,28 +114871,6 @@ public List setProject(java.lang.String project) { return this; } - /** - * The name of thezone where the network endpoint group is located. It should comply with - * RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of thezone where the network endpoint group is located. It should comply with RFC1035. - */ - public java.lang.String getZone() { - return zone; - } - - /** - * The name of thezone where the network endpoint group is located. It should comply with - * RFC1035. - */ - public List setZone(java.lang.String zone) { - this.zone = zone; - return this; - } - /** * A filter expression that filters resources listed in the response. Most Compute resources * support two types of filter expressions: expressions that support regular expressions and @@ -114639,11 +115002,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public AggregatedList setFilter(java.lang.String filter) { this.filter = filter; return this; } + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + return this; + } + /** * The maximum number of results per page that should be returned. If the number of available * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be @@ -114668,7 +115065,7 @@ public java.lang.Long getMaxResults() { * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public List setMaxResults(java.lang.Long maxResults) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -114712,7 +115109,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -114735,7 +115132,7 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public List setPageToken(java.lang.String pageToken) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -114767,69 +115164,92 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Lists the network endpoints in the specified network endpoint group. + * Attach a list of network endpoints to the specified network endpoint group. * - * Create a request for the method "networkEndpointGroups.listNetworkEndpoints". + * Create a request for the method "networkEndpointGroups.attachNetworkEndpoints". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListNetworkEndpoints#execute()} method to invoke the remote + * parameters, call the {@link AttachNetworkEndpoints#execute()} method to invoke the remote * operation. * * @param project Project ID for this request. * @param zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group from which you want to generate a - list of included network - * endpoints. It should comply with RFC1035. - * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsListEndpointsRequest} + * @param networkEndpointGroup The name of the network endpoint group where you are attaching network + endpoints to. It should + * comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsAttachEndpointsRequest} * @return the request */ - public ListNetworkEndpoints listNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsListEndpointsRequest content) throws java.io.IOException { - ListNetworkEndpoints result = new ListNetworkEndpoints(project, zone, networkEndpointGroup, content); + public AttachNetworkEndpoints attachNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsAttachEndpointsRequest content) throws java.io.IOException { + AttachNetworkEndpoints result = new AttachNetworkEndpoints(project, zone, networkEndpointGroup, content); initialize(result); return result; } - public class ListNetworkEndpoints extends ComputeRequest { + public class AttachNetworkEndpoints extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Lists the network endpoints in the specified network endpoint group. + * Attach a list of network endpoints to the specified network endpoint group. * - * Create a request for the method "networkEndpointGroups.listNetworkEndpoints". + * Create a request for the method "networkEndpointGroups.attachNetworkEndpoints". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListNetworkEndpoints#execute()} method to invoke the remote - * operation.

{@link ListNetworkEndpoints#initialize(com.google.api.client.googleapis.services - * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * parameters, call the {@link AttachNetworkEndpoints#execute()} method to invoke the remote + * operation.

{@link AttachNetworkEndpoints#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 where the network endpoint group is located. It should comply with RFC1035. - * @param networkEndpointGroup The name of the network endpoint group from which you want to generate a - list of included network - * endpoints. It should comply with RFC1035. - * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsListEndpointsRequest} + * @param networkEndpointGroup The name of the network endpoint group where you are attaching network + endpoints to. It should + * comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsAttachEndpointsRequest} * @since 1.13 */ - protected ListNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsListEndpointsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.NetworkEndpointGroupsListNetworkEndpoints.class); + protected AttachNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsAttachEndpointsRequest 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(), @@ -114841,63 +115261,63 @@ protected ListNetworkEndpoints(java.lang.String project, java.lang.String zone, } @Override - public ListNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (ListNetworkEndpoints) super.set$Xgafv($Xgafv); + public AttachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (AttachNetworkEndpoints) super.set$Xgafv($Xgafv); } @Override - public ListNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (ListNetworkEndpoints) super.setAccessToken(accessToken); + public AttachNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (AttachNetworkEndpoints) super.setAccessToken(accessToken); } @Override - public ListNetworkEndpoints setAlt(java.lang.String alt) { - return (ListNetworkEndpoints) super.setAlt(alt); + public AttachNetworkEndpoints setAlt(java.lang.String alt) { + return (AttachNetworkEndpoints) super.setAlt(alt); } @Override - public ListNetworkEndpoints setCallback(java.lang.String callback) { - return (ListNetworkEndpoints) super.setCallback(callback); + public AttachNetworkEndpoints setCallback(java.lang.String callback) { + return (AttachNetworkEndpoints) super.setCallback(callback); } @Override - public ListNetworkEndpoints setFields(java.lang.String fields) { - return (ListNetworkEndpoints) super.setFields(fields); + public AttachNetworkEndpoints setFields(java.lang.String fields) { + return (AttachNetworkEndpoints) super.setFields(fields); } @Override - public ListNetworkEndpoints setKey(java.lang.String key) { - return (ListNetworkEndpoints) super.setKey(key); + public AttachNetworkEndpoints setKey(java.lang.String key) { + return (AttachNetworkEndpoints) super.setKey(key); } @Override - public ListNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (ListNetworkEndpoints) super.setOauthToken(oauthToken); + public AttachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (AttachNetworkEndpoints) super.setOauthToken(oauthToken); } @Override - public ListNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public AttachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AttachNetworkEndpoints) super.setPrettyPrint(prettyPrint); } @Override - public ListNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (ListNetworkEndpoints) super.setQuotaUser(quotaUser); + public AttachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (AttachNetworkEndpoints) super.setQuotaUser(quotaUser); } @Override - public ListNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (ListNetworkEndpoints) super.setUploadType(uploadType); + public AttachNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (AttachNetworkEndpoints) super.setUploadType(uploadType); } @Override - public ListNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (ListNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public AttachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (AttachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); } @Override - public ListNetworkEndpoints setUserIp(java.lang.String userIp) { - return (ListNetworkEndpoints) super.setUserIp(userIp); + public AttachNetworkEndpoints setUserIp(java.lang.String userIp) { + return (AttachNetworkEndpoints) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -114911,7 +115331,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListNetworkEndpoints setProject(java.lang.String project) { + public AttachNetworkEndpoints setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -114938,433 +115358,207 @@ public java.lang.String getZone() { * The name of the zone where the network endpoint group is located. It should comply with * RFC1035. */ - public ListNetworkEndpoints setZone(java.lang.String zone) { + public AttachNetworkEndpoints setZone(java.lang.String zone) { this.zone = zone; return this; } /** - * The name of the network endpoint group from which you want to generate a list of included - * network endpoints. It should comply with RFC1035. + * The name of the network endpoint group where you are attaching network endpoints to. It + * should comply with RFC1035. */ @com.google.api.client.util.Key private java.lang.String networkEndpointGroup; - /** The name of the network endpoint group from which you want to generate a list of included network - endpoints. It should comply with RFC1035. + /** The name of the network endpoint group where you are attaching network endpoints to. It should + comply with RFC1035. */ public java.lang.String getNetworkEndpointGroup() { return networkEndpointGroup; } /** - * The name of the network endpoint group from which you want to generate a list of included - * network endpoints. It should comply with RFC1035. + * The name of the network endpoint group where you are attaching network endpoints to. It + * should comply with RFC1035. */ - public ListNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + public AttachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { this.networkEndpointGroup = networkEndpointGroup; return this; } /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * You cannot combine constraints on multiple fields using regular expressions. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + private java.lang.String requestId; - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - You cannot combine constraints on multiple fields using regular expressions. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getRequestId() { + return requestId; } /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * You cannot combine constraints on multiple fields using regular expressions. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public ListNetworkEndpoints setFilter(java.lang.String filter) { - this.filter = filter; + public AttachNetworkEndpoints setRequestId(java.lang.String requestId) { + this.requestId = requestId; 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; + @Override + public AttachNetworkEndpoints set(String parameterName, Object value) { + return (AttachNetworkEndpoints) super.set(parameterName, value); } + } + /** + * Deletes the specified network endpoint group. The network endpoints in the NEG and the VM + * instances they belong to are not terminated when the NEG is deleted. Note that the NEG cannot be + * deleted if there are backend services referencing it. + * + * Create a request for the method "networkEndpointGroups.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 where + the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply with + RFC1035. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup) throws java.io.IOException { + Delete result = new Delete(project, zone, networkEndpointGroup); + initialize(result); + return result; + } - /** - * 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 ListNetworkEndpoints setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; - } + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * Deletes the specified network endpoint group. The network endpoints in the NEG and the VM + * instances they belong to are not terminated when the NEG is deleted. Note that the NEG cannot + * be deleted if there are backend services referencing it. * - * 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. + * Create a request for the method "networkEndpointGroups.delete". * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param zone The name of the zone where + the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply with + RFC1035. + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); + } - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - 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 ListNetworkEndpoints 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 ListNetworkEndpoints 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 ListNetworkEndpoints setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public ListNetworkEndpoints set(String parameterName, Object value) { - return (ListNetworkEndpoints) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "networkEndpointGroups.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "networkEndpointGroups.testIamPermissions". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -115378,7 +115572,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -115388,125 +115582,154 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. + */ @com.google.api.client.util.Key private java.lang.String zone; - /** The name of the zone for this request. + /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. */ public java.lang.String getZone() { return zone; } - /** The name of the zone for this request. */ - public TestIamPermissions setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } + /** + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. + */ + public Delete setZone(java.lang.String zone) { this.zone = zone; return this; } - /** Name or id of the resource for this request. */ + /** + * The name of the network endpoint group to delete. It should comply with RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String networkEndpointGroup; - /** Name or id of the resource for this request. + /** The name of the network endpoint group to delete. It should comply with RFC1035. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; + /** + * The name of the network endpoint group to delete. It should comply with RFC1035. + */ + public Delete setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; return this; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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. - /** - * An accessor for creating requests from the NetworkFirewallPolicies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NetworkFirewallPolicies.List request = compute.networkFirewallPolicies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public NetworkFirewallPolicies networkFirewallPolicies() { - return new NetworkFirewallPolicies(); - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * The "networkFirewallPolicies" collection of methods. - */ - public class NetworkFirewallPolicies { + 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); + } + } /** - * Inserts an association for the specified firewall policy. + * Detach a list of network endpoints from the specified network endpoint group. * - * Create a request for the method "networkFirewallPolicies.addAssociation". + * Create a request for the method "networkEndpointGroups.detachNetworkEndpoints". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. + * parameters, call the {@link DetachNetworkEndpoints#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} + * @param zone The name of the zone where + the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group where you are removing network + endpoints. It should comply + * with RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsDetachEndpointsRequest} * @return the request */ - public AddAssociation addAssociation(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyAssociation content) throws java.io.IOException { - AddAssociation result = new AddAssociation(project, firewallPolicy, content); + public DetachNetworkEndpoints detachNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsDetachEndpointsRequest content) throws java.io.IOException { + DetachNetworkEndpoints result = new DetachNetworkEndpoints(project, zone, networkEndpointGroup, content); initialize(result); return result; } - public class AddAssociation extends ComputeRequest { + public class DetachNetworkEndpoints extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - private final java.util.regex.Pattern ASSOCIATED_POLICY_TO_BE_REPLACED_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Inserts an association for the specified firewall policy. + * Detach a list of network endpoints from the specified network endpoint group. * - * Create a request for the method "networkFirewallPolicies.addAssociation". + * Create a request for the method "networkEndpointGroups.detachNetworkEndpoints". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. - *

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

{@link DetachNetworkEndpoints#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 firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} + * @param zone The name of the zone where + the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group where you are removing network + endpoints. It should comply + * with RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsDetachEndpointsRequest} * @since 1.13 */ - protected AddAssociation(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyAssociation content) { + protected DetachNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsDetachEndpointsRequest 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()) { @@ -115514,72 +115737,68 @@ protected AddAssociation(java.lang.String project, java.lang.String firewallPoli "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @Override - public AddAssociation set$Xgafv(java.lang.String $Xgafv) { - return (AddAssociation) super.set$Xgafv($Xgafv); + public DetachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (DetachNetworkEndpoints) super.set$Xgafv($Xgafv); } @Override - public AddAssociation setAccessToken(java.lang.String accessToken) { - return (AddAssociation) super.setAccessToken(accessToken); + public DetachNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (DetachNetworkEndpoints) super.setAccessToken(accessToken); } @Override - public AddAssociation setAlt(java.lang.String alt) { - return (AddAssociation) super.setAlt(alt); + public DetachNetworkEndpoints setAlt(java.lang.String alt) { + return (DetachNetworkEndpoints) super.setAlt(alt); } @Override - public AddAssociation setCallback(java.lang.String callback) { - return (AddAssociation) super.setCallback(callback); + public DetachNetworkEndpoints setCallback(java.lang.String callback) { + return (DetachNetworkEndpoints) super.setCallback(callback); } @Override - public AddAssociation setFields(java.lang.String fields) { - return (AddAssociation) super.setFields(fields); + public DetachNetworkEndpoints setFields(java.lang.String fields) { + return (DetachNetworkEndpoints) super.setFields(fields); } @Override - public AddAssociation setKey(java.lang.String key) { - return (AddAssociation) super.setKey(key); + public DetachNetworkEndpoints setKey(java.lang.String key) { + return (DetachNetworkEndpoints) super.setKey(key); } @Override - public AddAssociation setOauthToken(java.lang.String oauthToken) { - return (AddAssociation) super.setOauthToken(oauthToken); + public DetachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (DetachNetworkEndpoints) super.setOauthToken(oauthToken); } @Override - public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddAssociation) super.setPrettyPrint(prettyPrint); + public DetachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DetachNetworkEndpoints) super.setPrettyPrint(prettyPrint); } @Override - public AddAssociation setQuotaUser(java.lang.String quotaUser) { - return (AddAssociation) super.setQuotaUser(quotaUser); + public DetachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (DetachNetworkEndpoints) super.setQuotaUser(quotaUser); } @Override - public AddAssociation setUploadType(java.lang.String uploadType) { - return (AddAssociation) super.setUploadType(uploadType); + public DetachNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (DetachNetworkEndpoints) super.setUploadType(uploadType); } @Override - public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (AddAssociation) super.setUploadProtocol(uploadProtocol); + public DetachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (DetachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); } @Override - public AddAssociation setUserIp(java.lang.String userIp) { - return (AddAssociation) super.setUserIp(userIp); + public DetachNetworkEndpoints setUserIp(java.lang.String userIp) { + return (DetachNetworkEndpoints) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -115593,7 +115812,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddAssociation setProject(java.lang.String project) { + public DetachNetworkEndpoints setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -115603,77 +115822,48 @@ public AddAssociation setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ - @com.google.api.client.util.Key - private java.lang.String firewallPolicy; - - /** Name of the firewall policy to update. - */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; - } - - /** Name of the firewall policy to update. */ - public AddAssociation setFirewallPolicy(java.lang.String firewallPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.firewallPolicy = firewallPolicy; - return this; - } - /** - * Name of the firewall policy associated with the target network to swap association with. - * This field is mutually exclusive with 'replace_existing_association'. + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. */ @com.google.api.client.util.Key - private java.lang.String associatedPolicyToBeReplaced; + private java.lang.String zone; - /** Name of the firewall policy associated with the target network to swap association with. This field - is mutually exclusive with 'replace_existing_association'. + /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. */ - public java.lang.String getAssociatedPolicyToBeReplaced() { - return associatedPolicyToBeReplaced; + public java.lang.String getZone() { + return zone; } /** - * Name of the firewall policy associated with the target network to swap association with. - * This field is mutually exclusive with 'replace_existing_association'. + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. */ - public AddAssociation setAssociatedPolicyToBeReplaced(java.lang.String associatedPolicyToBeReplaced) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ASSOCIATED_POLICY_TO_BE_REPLACED_PATTERN.matcher(associatedPolicyToBeReplaced).matches(), - "Parameter associatedPolicyToBeReplaced must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.associatedPolicyToBeReplaced = associatedPolicyToBeReplaced; + public DetachNetworkEndpoints setZone(java.lang.String zone) { + this.zone = zone; return this; } /** - * Indicates whether or not to replace it if an association of the attachment already exists. - * This is false by default, in which case an error will be returned if an association already - * exists. + * The name of the network endpoint group where you are removing network endpoints. It should + * comply with RFC1035. */ @com.google.api.client.util.Key - private java.lang.Boolean replaceExistingAssociation; + private java.lang.String networkEndpointGroup; - /** Indicates whether or not to replace it if an association of the attachment already exists. This is - false by default, in which case an error will be returned if an association already exists. + /** The name of the network endpoint group where you are removing network endpoints. It should comply + with RFC1035. */ - public java.lang.Boolean getReplaceExistingAssociation() { - return replaceExistingAssociation; + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } /** - * Indicates whether or not to replace it if an association of the attachment already exists. - * This is false by default, in which case an error will be returned if an association already - * exists. + * The name of the network endpoint group where you are removing network endpoints. It should + * comply with RFC1035. */ - public AddAssociation setReplaceExistingAssociation(java.lang.Boolean replaceExistingAssociation) { - this.replaceExistingAssociation = replaceExistingAssociation; + public DetachNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; return this; } @@ -115721,136 +115911,139 @@ 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 AddAssociation setRequestId(java.lang.String requestId) { + public DetachNetworkEndpoints setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddAssociation set(String parameterName, Object value) { - return (AddAssociation) super.set(parameterName, value); + public DetachNetworkEndpoints set(String parameterName, Object value) { + return (DetachNetworkEndpoints) super.set(parameterName, value); } } /** - * Inserts a packet mirroring rule into a firewall policy. + * Returns the specified network endpoint group. * - * Create a request for the method "networkFirewallPolicies.addPacketMirroringRule". + * Create a request for the method "networkEndpointGroups.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddPacketMirroringRule#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 firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param zone The name of the zone where + the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. * @return the request */ - public AddPacketMirroringRule addPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { - AddPacketMirroringRule result = new AddPacketMirroringRule(project, firewallPolicy, content); + public Get get(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup) throws java.io.IOException { + Get result = new Get(project, zone, networkEndpointGroup); initialize(result); return result; } - public class AddPacketMirroringRule extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addPacketMirroringRule"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Inserts a packet mirroring rule into a firewall policy. + * Returns the specified network endpoint group. * - * Create a request for the method "networkFirewallPolicies.addPacketMirroringRule". + * Create a request for the method "networkEndpointGroups.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddPacketMirroringRule#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param zone The name of the zone where + the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. * @since 1.13 */ - protected AddPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule 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 networkEndpointGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroup.class); this.project = com.google.api.client.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.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @Override - public AddPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { - return (AddPacketMirroringRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public AddPacketMirroringRule setAccessToken(java.lang.String accessToken) { - return (AddPacketMirroringRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public AddPacketMirroringRule setAlt(java.lang.String alt) { - return (AddPacketMirroringRule) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public AddPacketMirroringRule setCallback(java.lang.String callback) { - return (AddPacketMirroringRule) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public AddPacketMirroringRule setFields(java.lang.String fields) { - return (AddPacketMirroringRule) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public AddPacketMirroringRule setKey(java.lang.String key) { - return (AddPacketMirroringRule) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public AddPacketMirroringRule setOauthToken(java.lang.String oauthToken) { - return (AddPacketMirroringRule) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public AddPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddPacketMirroringRule) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public AddPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { - return (AddPacketMirroringRule) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public AddPacketMirroringRule setUploadType(java.lang.String uploadType) { - return (AddPacketMirroringRule) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public AddPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddPacketMirroringRule) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public AddPacketMirroringRule setUserIp(java.lang.String userIp) { - return (AddPacketMirroringRule) 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. */ @@ -115864,7 +116057,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddPacketMirroringRule 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 " + @@ -115874,173 +116067,109 @@ public AddPacketMirroringRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ - @com.google.api.client.util.Key - private java.lang.String firewallPolicy; - - /** Name of the firewall policy to update. - */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; - } - - /** Name of the firewall policy to update. */ - public AddPacketMirroringRule setFirewallPolicy(java.lang.String firewallPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.firewallPolicy = firewallPolicy; - return this; - } - - /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxPriority; - - /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and - maxPriority>. This field is exclusive with rule.priority. - */ - public java.lang.Integer getMaxPriority() { - return maxPriority; - } - - /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ - public AddPacketMirroringRule setMaxPriority(java.lang.Integer maxPriority) { - this.maxPriority = maxPriority; - return this; - } - /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. */ @com.google.api.client.util.Key - private java.lang.Integer minPriority; + private java.lang.String zone; - /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and - maxPriority>. This field is exclusive with rule.priority. + /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. */ - public java.lang.Integer getMinPriority() { - return minPriority; + public java.lang.String getZone() { + return zone; } /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. */ - public AddPacketMirroringRule setMinPriority(java.lang.Integer minPriority) { - this.minPriority = minPriority; + public Get setZone(java.lang.String zone) { + this.zone = zone; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** The name of the network endpoint group. It should comply with RFC1035. */ @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 networkEndpointGroup; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** The name of the network endpoint group. It should comply with RFC1035. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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 AddPacketMirroringRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** The name of the network endpoint group. It should comply with RFC1035. */ + public Get setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; return this; } @Override - public AddPacketMirroringRule set(String parameterName, Object value) { - return (AddPacketMirroringRule) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Inserts a rule into a firewall policy. + * Creates a network endpoint group in the specified project using the parameters that are included + * in the request. * - * Create a request for the method "networkFirewallPolicies.addRule". + * Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with + * zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage + * NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service + * Connect NEGs): regional API - To manage NEGs with global scope (such as global internet + * NEGs):global API + * + * Create a request for the method "networkEndpointGroups.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddRule#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param zone The name of the zone where + you want to create the network endpoint group. It should comply with + * RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroup} * @return the request */ - public AddRule addRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { - AddRule result = new AddRule(project, firewallPolicy, content); + public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.NetworkEndpointGroup content) throws java.io.IOException { + Insert result = new Insert(project, zone, content); initialize(result); return result; } - public class AddRule extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Inserts a rule into a firewall policy. + * Creates a network endpoint group in the specified project using the parameters that are + * included in the request. * - * Create a request for the method "networkFirewallPolicies.addRule". + * Note: Use the following APIs to manage network endpoint groups: - To manage NEGs + * with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To + * manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private + * Service Connect NEGs): regional API - To manage NEGs with global scope (such as + * global internet NEGs):global API + * + * Create a request for the method "networkEndpointGroups.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddRule#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param zone The name of the zone where + you want to create the network endpoint group. It should comply with + * RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroup} * @since 1.13 */ - protected AddRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) { + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.NetworkEndpointGroup 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()) { @@ -116048,72 +116177,67 @@ protected AddRule(java.lang.String project, java.lang.String firewallPolicy, com "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); } @Override - public AddRule set$Xgafv(java.lang.String $Xgafv) { - return (AddRule) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public AddRule setAccessToken(java.lang.String accessToken) { - return (AddRule) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public AddRule setAlt(java.lang.String alt) { - return (AddRule) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public AddRule setCallback(java.lang.String callback) { - return (AddRule) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public AddRule setFields(java.lang.String fields) { - return (AddRule) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public AddRule setKey(java.lang.String key) { - return (AddRule) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public AddRule setOauthToken(java.lang.String oauthToken) { - return (AddRule) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddRule) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public AddRule setQuotaUser(java.lang.String quotaUser) { - return (AddRule) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public AddRule setUploadType(java.lang.String uploadType) { - return (AddRule) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public AddRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddRule) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public AddRule setUserIp(java.lang.String userIp) { - return (AddRule) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -116127,7 +116251,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddRule setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -116137,70 +116261,26 @@ public AddRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ - @com.google.api.client.util.Key - private java.lang.String firewallPolicy; - - /** Name of the firewall policy to update. - */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; - } - - /** Name of the firewall policy to update. */ - public AddRule setFirewallPolicy(java.lang.String firewallPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.firewallPolicy = firewallPolicy; - return this; - } - - /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ - @com.google.api.client.util.Key - private java.lang.Integer maxPriority; - - /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and - maxPriority>. This field is exclusive with rule.priority. - */ - public java.lang.Integer getMaxPriority() { - return maxPriority; - } - - /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. - */ - public AddRule setMaxPriority(java.lang.Integer maxPriority) { - this.maxPriority = maxPriority; - return this; - } - /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. + * The name of the zone where you want to create the network endpoint group. It should comply + * with RFC1035. */ @com.google.api.client.util.Key - private java.lang.Integer minPriority; + private java.lang.String zone; - /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and - maxPriority>. This field is exclusive with rule.priority. + /** The name of the zone where you want to create the network endpoint group. It should comply with + RFC1035. */ - public java.lang.Integer getMinPriority() { - return minPriority; + public java.lang.String getZone() { + return zone; } /** - * When rule.priority is not specified, auto choose a unused priority betweenminPriority and - * maxPriority>. This field is exclusive with rule.priority. + * The name of the zone where you want to create the network endpoint group. It should comply + * with RFC1035. */ - public AddRule setMinPriority(java.lang.Integer minPriority) { - this.minPriority = minPriority; + public Insert setZone(java.lang.String zone) { + this.zone = zone; return this; } @@ -116248,70 +116328,67 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public AddRule setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddRule set(String parameterName, Object value) { - return (AddRule) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Retrieves an aggregated list of network firewall policies, listing network firewall policies from - * all applicable scopes (global and regional) and grouping the results per scope. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. + * Retrieves the list of network endpoint groups that are located in the specified project and zone. * - * Create a request for the method "networkFirewallPolicies.aggregatedList". + * Create a request for the method "networkEndpointGroups.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 zone The name of thezone + where the network endpoint group is located. It should comply with RFC1035. * @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 zone) throws java.io.IOException { + List result = new List(project, zone); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/firewallPolicies"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves an aggregated list of network firewall policies, listing network firewall policies - * from all applicable scopes (global and regional) and grouping the results per scope. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. + * Retrieves the list of network endpoint groups that are located in the specified project and + * zone. * - * Create a request for the method "networkFirewallPolicies.aggregatedList". + * Create a request for the method "networkEndpointGroups.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

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

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

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

* * @param project Project ID for this request. + * @param zone The name of thezone + where the network endpoint group is located. It should comply with RFC1035. * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkFirewallPolicyAggregatedList.class); + protected List(java.lang.String project, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkEndpointGroupList.class); this.project = com.google.api.client.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."); } @Override @@ -116325,63 +116402,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -116395,7 +116472,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + public List setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -116405,6 +116482,28 @@ public AggregatedList setProject(java.lang.String project) { return this; } + /** + * The name of thezone where the network endpoint group is located. It should comply with + * RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the network endpoint group is located. It should comply with RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the network endpoint group is located. It should comply with + * RFC1035. + */ + public List setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + /** * A filter expression that filters resources listed in the response. Most Compute resources * support two types of filter expressions: expressions that support regular expressions and @@ -116536,45 +116635,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public List setFilter(java.lang.String filter) { this.filter = filter; return this; } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; - } - - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - return this; - } - /** * The maximum number of results per page that should be returned. If the number of available * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be @@ -116599,7 +116664,7 @@ public java.lang.Long getMaxResults() { * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public AggregatedList setMaxResults(java.lang.Long maxResults) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -116643,7 +116708,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -116666,7 +116731,7 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public AggregatedList setPageToken(java.lang.String pageToken) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -116698,156 +116763,137 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; - - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. - */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; - } - - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; - return this; - } - @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Copies rules to the specified firewall policy. + * Lists the network endpoints in the specified network endpoint group. * - * Create a request for the method "networkFirewallPolicies.cloneRules". + * Create a request for the method "networkEndpointGroups.listNetworkEndpoints". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link CloneRules#execute()} method to invoke the remote operation. + * parameters, call the {@link ListNetworkEndpoints#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. + * @param zone The name of the zone where + the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group from which you want to generate a + list of included network + * endpoints. It should comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsListEndpointsRequest} * @return the request */ - public CloneRules cloneRules(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - CloneRules result = new CloneRules(project, firewallPolicy); + public ListNetworkEndpoints listNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsListEndpointsRequest content) throws java.io.IOException { + ListNetworkEndpoints result = new ListNetworkEndpoints(project, zone, networkEndpointGroup, content); initialize(result); return result; } - public class CloneRules extends ComputeRequest { + public class ListNetworkEndpoints extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/cloneRules"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Copies rules to the specified firewall policy. + * Lists the network endpoints in the specified network endpoint group. * - * Create a request for the method "networkFirewallPolicies.cloneRules". + * Create a request for the method "networkEndpointGroups.listNetworkEndpoints". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link CloneRules#execute()} method to invoke the remote operation.

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

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

{@link ListNetworkEndpoints#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 firewallPolicy Name of the firewall policy to update. + * @param zone The name of the zone where + the network endpoint group is located. It should comply with RFC1035. + * @param networkEndpointGroup The name of the network endpoint group from which you want to generate a + list of included network + * endpoints. It should comply with RFC1035. + * @param content the {@link com.google.api.services.compute.model.NetworkEndpointGroupsListEndpointsRequest} * @since 1.13 */ - protected CloneRules(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected ListNetworkEndpoints(java.lang.String project, java.lang.String zone, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.NetworkEndpointGroupsListEndpointsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.NetworkEndpointGroupsListNetworkEndpoints.class); this.project = com.google.api.client.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.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @Override - public CloneRules set$Xgafv(java.lang.String $Xgafv) { - return (CloneRules) super.set$Xgafv($Xgafv); + public ListNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (ListNetworkEndpoints) super.set$Xgafv($Xgafv); } @Override - public CloneRules setAccessToken(java.lang.String accessToken) { - return (CloneRules) super.setAccessToken(accessToken); + public ListNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (ListNetworkEndpoints) super.setAccessToken(accessToken); } @Override - public CloneRules setAlt(java.lang.String alt) { - return (CloneRules) super.setAlt(alt); + public ListNetworkEndpoints setAlt(java.lang.String alt) { + return (ListNetworkEndpoints) super.setAlt(alt); } @Override - public CloneRules setCallback(java.lang.String callback) { - return (CloneRules) super.setCallback(callback); + public ListNetworkEndpoints setCallback(java.lang.String callback) { + return (ListNetworkEndpoints) super.setCallback(callback); } @Override - public CloneRules setFields(java.lang.String fields) { - return (CloneRules) super.setFields(fields); + public ListNetworkEndpoints setFields(java.lang.String fields) { + return (ListNetworkEndpoints) super.setFields(fields); } @Override - public CloneRules setKey(java.lang.String key) { - return (CloneRules) super.setKey(key); + public ListNetworkEndpoints setKey(java.lang.String key) { + return (ListNetworkEndpoints) super.setKey(key); } @Override - public CloneRules setOauthToken(java.lang.String oauthToken) { - return (CloneRules) super.setOauthToken(oauthToken); + public ListNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (ListNetworkEndpoints) super.setOauthToken(oauthToken); } @Override - public CloneRules setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CloneRules) super.setPrettyPrint(prettyPrint); + public ListNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListNetworkEndpoints) super.setPrettyPrint(prettyPrint); } @Override - public CloneRules setQuotaUser(java.lang.String quotaUser) { - return (CloneRules) super.setQuotaUser(quotaUser); + public ListNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (ListNetworkEndpoints) super.setQuotaUser(quotaUser); } @Override - public CloneRules setUploadType(java.lang.String uploadType) { - return (CloneRules) super.setUploadType(uploadType); + public ListNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (ListNetworkEndpoints) super.setUploadType(uploadType); } @Override - public CloneRules setUploadProtocol(java.lang.String uploadProtocol) { - return (CloneRules) super.setUploadProtocol(uploadProtocol); + public ListNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (ListNetworkEndpoints) super.setUploadProtocol(uploadProtocol); } @Override - public CloneRules setUserIp(java.lang.String userIp) { - return (CloneRules) super.setUserIp(userIp); + public ListNetworkEndpoints setUserIp(java.lang.String userIp) { + return (ListNetworkEndpoints) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -116861,7 +116907,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public CloneRules setProject(java.lang.String project) { + public ListNetworkEndpoints setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -116871,437 +116917,450 @@ public CloneRules setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. + */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String zone; - /** Name of the firewall policy to update. + /** The name of the zone where the network endpoint group is located. It should comply with RFC1035. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getZone() { + return zone; } - /** Name of the firewall policy to update. */ - public CloneRules setFirewallPolicy(java.lang.String firewallPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.firewallPolicy = firewallPolicy; + /** + * The name of the zone where the network endpoint group is located. It should comply with + * RFC1035. + */ + public ListNetworkEndpoints setZone(java.lang.String zone) { + this.zone = zone; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * The name of the network endpoint group from which you want to generate a list of included + * network endpoints. It should comply with RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String networkEndpointGroup; + + /** The name of the network endpoint group from which you want to generate a list of included network + endpoints. It should comply with RFC1035. + */ + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; + } + + /** + * The name of the network endpoint group from which you want to generate a list of included + * network endpoints. It should comply with RFC1035. + */ + public ListNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; + 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. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original 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 CloneRules setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public ListNetworkEndpoints setFilter(java.lang.String filter) { + this.filter = filter; return this; } - /** The firewall policy from which to copy rules. */ + /** + * 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 sourceFirewallPolicy; + private java.lang.Long maxResults; - /** The firewall policy from which to copy rules. + /** 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 getSourceFirewallPolicy() { - return sourceFirewallPolicy; + public java.lang.Long getMaxResults() { + return maxResults; } - /** The firewall policy from which to copy rules. */ - public CloneRules setSourceFirewallPolicy(java.lang.String sourceFirewallPolicy) { - this.sourceFirewallPolicy = sourceFirewallPolicy; + /** + * 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 ListNetworkEndpoints setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; return this; } - @Override - public CloneRules set(String parameterName, Object value) { - return (CloneRules) super.set(parameterName, value); - } - } - /** - * Deletes the specified policy. - * - * Create a request for the method "networkFirewallPolicies.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 firewallPolicy Name of the firewall policy to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - Delete result = new Delete(project, firewallPolicy); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } /** - * Deletes the specified policy. - * - * Create a request for the method "networkFirewallPolicies.delete". + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * 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. * - * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to delete. - * @since 1.13 + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - protected Delete(java.lang.String project, java.lang.String firewallPolicy) { - 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.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + public ListNetworkEndpoints setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + /** + * 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; - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + /** 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; } - @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 firewall policy to delete. */ - @com.google.api.client.util.Key - private java.lang.String firewallPolicy; - - /** Name of the firewall policy to delete. + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; - } - - /** Name of the firewall policy to delete. */ - public Delete setFirewallPolicy(java.lang.String firewallPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.firewallPolicy = firewallPolicy; + public ListNetworkEndpoints setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public ListNetworkEndpoints setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public ListNetworkEndpoints set(String parameterName, Object value) { + return (ListNetworkEndpoints) super.set(parameterName, value); } } /** - * Returns the specified network firewall policy. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "networkFirewallPolicies.get". + * Create a request for the method "networkEndpointGroups.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to get. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public Get get(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - Get result = new Get(project, firewallPolicy); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the specified network firewall policy. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "networkFirewallPolicies.get". + * Create a request for the method "networkEndpointGroups.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to get. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicy.class); + protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -117315,7 +117374,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -117325,53 +117384,98 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to get. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String zone; - /** Name of the firewall policy to get. + /** The name of the zone for this request. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getZone() { + return zone; } - /** Name of the firewall policy to get. */ - public Get setFirewallPolicy(java.lang.String firewallPolicy) { + /** The name of the zone for this request. */ + public TestIamPermissions setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.firewallPolicy = firewallPolicy; + this.resource = resource; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the NetworkFirewallPolicies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.NetworkFirewallPolicies.List request = compute.networkFirewallPolicies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public NetworkFirewallPolicies networkFirewallPolicies() { + return new NetworkFirewallPolicies(); + } + + /** + * The "networkFirewallPolicies" collection of methods. + */ + public class NetworkFirewallPolicies { + /** - * Gets an association with the specified name. + * Inserts an association for the specified firewall policy. * - * Create a request for the method "networkFirewallPolicies.getAssociation". + * Create a request for the method "networkFirewallPolicies.addAssociation". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. + * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to which the queried association belongs. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} * @return the request */ - public GetAssociation getAssociation(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - GetAssociation result = new GetAssociation(project, firewallPolicy); + public AddAssociation addAssociation(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyAssociation content) throws java.io.IOException { + AddAssociation result = new AddAssociation(project, firewallPolicy, content); initialize(result); return result; } - public class GetAssociation extends ComputeRequest { + public class AddAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getAssociation"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -117379,23 +117483,27 @@ public class GetAssociation extends ComputeRequest {@link GetAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. + *

{@link AddAssociation#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 firewallPolicy Name of the firewall policy to which the queried association belongs. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} * @since 1.13 */ - protected GetAssociation(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyAssociation.class); + protected AddAssociation(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyAssociation 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(), @@ -117411,73 +117519,63 @@ protected GetAssociation(java.lang.String project, java.lang.String firewallPoli } @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 GetAssociation set$Xgafv(java.lang.String $Xgafv) { - return (GetAssociation) super.set$Xgafv($Xgafv); + public AddAssociation set$Xgafv(java.lang.String $Xgafv) { + return (AddAssociation) super.set$Xgafv($Xgafv); } @Override - public GetAssociation setAccessToken(java.lang.String accessToken) { - return (GetAssociation) super.setAccessToken(accessToken); + public AddAssociation setAccessToken(java.lang.String accessToken) { + return (AddAssociation) super.setAccessToken(accessToken); } @Override - public GetAssociation setAlt(java.lang.String alt) { - return (GetAssociation) super.setAlt(alt); + public AddAssociation setAlt(java.lang.String alt) { + return (AddAssociation) super.setAlt(alt); } @Override - public GetAssociation setCallback(java.lang.String callback) { - return (GetAssociation) super.setCallback(callback); + public AddAssociation setCallback(java.lang.String callback) { + return (AddAssociation) super.setCallback(callback); } @Override - public GetAssociation setFields(java.lang.String fields) { - return (GetAssociation) super.setFields(fields); + public AddAssociation setFields(java.lang.String fields) { + return (AddAssociation) super.setFields(fields); } @Override - public GetAssociation setKey(java.lang.String key) { - return (GetAssociation) super.setKey(key); + public AddAssociation setKey(java.lang.String key) { + return (AddAssociation) super.setKey(key); } @Override - public GetAssociation setOauthToken(java.lang.String oauthToken) { - return (GetAssociation) super.setOauthToken(oauthToken); + public AddAssociation setOauthToken(java.lang.String oauthToken) { + return (AddAssociation) super.setOauthToken(oauthToken); } @Override - public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetAssociation) super.setPrettyPrint(prettyPrint); + public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddAssociation) super.setPrettyPrint(prettyPrint); } @Override - public GetAssociation setQuotaUser(java.lang.String quotaUser) { - return (GetAssociation) super.setQuotaUser(quotaUser); + public AddAssociation setQuotaUser(java.lang.String quotaUser) { + return (AddAssociation) super.setQuotaUser(quotaUser); } @Override - public GetAssociation setUploadType(java.lang.String uploadType) { - return (GetAssociation) super.setUploadType(uploadType); + public AddAssociation setUploadType(java.lang.String uploadType) { + return (AddAssociation) super.setUploadType(uploadType); } @Override - public GetAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (GetAssociation) super.setUploadProtocol(uploadProtocol); + public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (AddAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public GetAssociation setUserIp(java.lang.String userIp) { - return (GetAssociation) super.setUserIp(userIp); + public AddAssociation setUserIp(java.lang.String userIp) { + return (AddAssociation) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -117491,7 +117589,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetAssociation setProject(java.lang.String project) { + public AddAssociation setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -117501,18 +117599,18 @@ public GetAssociation setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to which the queried association belongs. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key private java.lang.String firewallPolicy; - /** Name of the firewall policy to which the queried association belongs. + /** Name of the firewall policy to update. */ public java.lang.String getFirewallPolicy() { return firewallPolicy; } - /** Name of the firewall policy to which the queried association belongs. */ - public GetAssociation setFirewallPolicy(java.lang.String firewallPolicy) { + /** Name of the firewall policy to update. */ + public AddAssociation setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), "Parameter firewallPolicy must conform to the pattern " + @@ -117522,242 +117620,136 @@ public GetAssociation setFirewallPolicy(java.lang.String firewallPolicy) { return this; } - /** The name of the association to get from the firewall policy. */ + /** + * Name of the firewall policy associated with the target network to swap association with. + * This field is mutually exclusive with 'replace_existing_association'. + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String associatedPolicyToBeReplaced; - /** The name of the association to get from the firewall policy. + /** Name of the firewall policy associated with the target network to swap association with. This field + is mutually exclusive with 'replace_existing_association'. */ - public java.lang.String getName() { - return name; + public java.lang.String getAssociatedPolicyToBeReplaced() { + return associatedPolicyToBeReplaced; } - /** The name of the association to get from the firewall policy. */ - public GetAssociation setName(java.lang.String name) { - this.name = name; + /** + * Name of the firewall policy associated with the target network to swap association with. + * This field is mutually exclusive with 'replace_existing_association'. + */ + public AddAssociation setAssociatedPolicyToBeReplaced(java.lang.String associatedPolicyToBeReplaced) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ASSOCIATED_POLICY_TO_BE_REPLACED_PATTERN.matcher(associatedPolicyToBeReplaced).matches(), + "Parameter associatedPolicyToBeReplaced must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.associatedPolicyToBeReplaced = associatedPolicyToBeReplaced; return this; } - @Override - public GetAssociation set(String parameterName, Object value) { - return (GetAssociation) 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 "networkFirewallPolicies.getIamPolicy". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{resource}/getIamPolicy"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + /** + * Indicates whether or not to replace it if an association of the attachment already exists. + * This is false by default, in which case an error will be returned if an association already + * exists. + */ + @com.google.api.client.util.Key + private java.lang.Boolean replaceExistingAssociation; - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** Indicates whether or not to replace it if an association of the attachment already exists. This is + false by default, in which case an error will be returned if an association already exists. + */ + public java.lang.Boolean getReplaceExistingAssociation() { + return replaceExistingAssociation; + } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource + * Indicates whether or not to replace it if an association of the attachment already exists. + * This is false by default, in which case an error will be returned if an association already * exists. - * - * Create a request for the method "networkFirewallPolicies.getIamPolicy". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String project, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. */ - public java.lang.String getProject() { - return project; - } - - /** Project ID for this request. */ - public GetIamPolicy setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; + public AddAssociation setReplaceExistingAssociation(java.lang.Boolean replaceExistingAssociation) { + this.replaceExistingAssociation = replaceExistingAssociation; 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() { - return optionsRequestedPolicyVersion; + public java.lang.String getRequestId() { + return requestId; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public AddAssociation setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public AddAssociation set(String parameterName, Object value) { + return (AddAssociation) super.set(parameterName, value); } } /** - * Gets a packet mirroring rule of the specified priority. + * Inserts a packet mirroring rule into a firewall policy. * - * Create a request for the method "networkFirewallPolicies.getPacketMirroringRule". + * Create a request for the method "networkFirewallPolicies.addPacketMirroringRule". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetPacketMirroringRule#execute()} method to invoke the remote + * parameters, call the {@link AddPacketMirroringRule#execute()} method to invoke the remote * operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @return the request */ - public GetPacketMirroringRule getPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - GetPacketMirroringRule result = new GetPacketMirroringRule(project, firewallPolicy); + public AddPacketMirroringRule addPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { + AddPacketMirroringRule result = new AddPacketMirroringRule(project, firewallPolicy, content); initialize(result); return result; } - public class GetPacketMirroringRule extends ComputeRequest { + public class AddPacketMirroringRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getPacketMirroringRule"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addPacketMirroringRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -117766,22 +117758,23 @@ public class GetPacketMirroringRule extends ComputeRequest {@link GetPacketMirroringRule#initialize(com.google.api.client.googleapis.servic + * parameters, call the {@link AddPacketMirroringRule#execute()} method to invoke the remote + * operation.

{@link AddPacketMirroringRule#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 firewallPolicy Name of the firewall policy to which the queried rule belongs. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @since 1.13 */ - protected GetPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyRule.class); + protected AddPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule 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(), @@ -117797,73 +117790,63 @@ protected GetPacketMirroringRule(java.lang.String project, java.lang.String fire } @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 GetPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { - return (GetPacketMirroringRule) super.set$Xgafv($Xgafv); + public AddPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { + return (AddPacketMirroringRule) super.set$Xgafv($Xgafv); } @Override - public GetPacketMirroringRule setAccessToken(java.lang.String accessToken) { - return (GetPacketMirroringRule) super.setAccessToken(accessToken); + public AddPacketMirroringRule setAccessToken(java.lang.String accessToken) { + return (AddPacketMirroringRule) super.setAccessToken(accessToken); } @Override - public GetPacketMirroringRule setAlt(java.lang.String alt) { - return (GetPacketMirroringRule) super.setAlt(alt); + public AddPacketMirroringRule setAlt(java.lang.String alt) { + return (AddPacketMirroringRule) super.setAlt(alt); } @Override - public GetPacketMirroringRule setCallback(java.lang.String callback) { - return (GetPacketMirroringRule) super.setCallback(callback); + public AddPacketMirroringRule setCallback(java.lang.String callback) { + return (AddPacketMirroringRule) super.setCallback(callback); } @Override - public GetPacketMirroringRule setFields(java.lang.String fields) { - return (GetPacketMirroringRule) super.setFields(fields); + public AddPacketMirroringRule setFields(java.lang.String fields) { + return (AddPacketMirroringRule) super.setFields(fields); } @Override - public GetPacketMirroringRule setKey(java.lang.String key) { - return (GetPacketMirroringRule) super.setKey(key); + public AddPacketMirroringRule setKey(java.lang.String key) { + return (AddPacketMirroringRule) super.setKey(key); } @Override - public GetPacketMirroringRule setOauthToken(java.lang.String oauthToken) { - return (GetPacketMirroringRule) super.setOauthToken(oauthToken); + public AddPacketMirroringRule setOauthToken(java.lang.String oauthToken) { + return (AddPacketMirroringRule) super.setOauthToken(oauthToken); } @Override - public GetPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetPacketMirroringRule) super.setPrettyPrint(prettyPrint); + public AddPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddPacketMirroringRule) super.setPrettyPrint(prettyPrint); } @Override - public GetPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { - return (GetPacketMirroringRule) super.setQuotaUser(quotaUser); + public AddPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { + return (AddPacketMirroringRule) super.setQuotaUser(quotaUser); } @Override - public GetPacketMirroringRule setUploadType(java.lang.String uploadType) { - return (GetPacketMirroringRule) super.setUploadType(uploadType); + public AddPacketMirroringRule setUploadType(java.lang.String uploadType) { + return (AddPacketMirroringRule) super.setUploadType(uploadType); } @Override - public GetPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetPacketMirroringRule) super.setUploadProtocol(uploadProtocol); + public AddPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddPacketMirroringRule) super.setUploadProtocol(uploadProtocol); } @Override - public GetPacketMirroringRule setUserIp(java.lang.String userIp) { - return (GetPacketMirroringRule) super.setUserIp(userIp); + public AddPacketMirroringRule setUserIp(java.lang.String userIp) { + return (AddPacketMirroringRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -117877,7 +117860,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetPacketMirroringRule setProject(java.lang.String project) { + public AddPacketMirroringRule setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -117887,18 +117870,18 @@ public GetPacketMirroringRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to which the queried rule belongs. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key private java.lang.String firewallPolicy; - /** Name of the firewall policy to which the queried rule belongs. + /** Name of the firewall policy to update. */ public java.lang.String getFirewallPolicy() { return firewallPolicy; } - /** Name of the firewall policy to which the queried rule belongs. */ - public GetPacketMirroringRule setFirewallPolicy(java.lang.String firewallPolicy) { + /** Name of the firewall policy to update. */ + public AddPacketMirroringRule setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), "Parameter firewallPolicy must conform to the pattern " + @@ -117908,48 +117891,128 @@ public GetPacketMirroringRule setFirewallPolicy(java.lang.String firewallPolicy) return this; } - /** The priority of the rule to get from the firewall policy. */ + /** + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ @com.google.api.client.util.Key - private java.lang.Integer priority; + private java.lang.Integer maxPriority; - /** The priority of the rule to get from the firewall policy. + /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and + maxPriority>. This field is exclusive with rule.priority. */ - public java.lang.Integer getPriority() { - return priority; + public java.lang.Integer getMaxPriority() { + return maxPriority; } - /** The priority of the rule to get from the firewall policy. */ - public GetPacketMirroringRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ + public AddPacketMirroringRule setMaxPriority(java.lang.Integer maxPriority) { + this.maxPriority = maxPriority; + return this; + } + + /** + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ + @com.google.api.client.util.Key + private java.lang.Integer minPriority; + + /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and + maxPriority>. This field is exclusive with rule.priority. + */ + public java.lang.Integer getMinPriority() { + return minPriority; + } + + /** + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ + public AddPacketMirroringRule setMinPriority(java.lang.Integer minPriority) { + this.minPriority = minPriority; + 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 AddPacketMirroringRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetPacketMirroringRule set(String parameterName, Object value) { - return (GetPacketMirroringRule) super.set(parameterName, value); + public AddPacketMirroringRule set(String parameterName, Object value) { + return (AddPacketMirroringRule) super.set(parameterName, value); } } /** - * Gets a rule of the specified priority. + * Inserts a rule into a firewall policy. * - * Create a request for the method "networkFirewallPolicies.getRule". + * Create a request for the method "networkFirewallPolicies.addRule". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetRule#execute()} method to invoke the remote operation. + * parameters, call the {@link AddRule#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @return the request */ - public GetRule getRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - GetRule result = new GetRule(project, firewallPolicy); + public AddRule addRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { + AddRule result = new AddRule(project, firewallPolicy, content); initialize(result); return result; } - public class GetRule extends ComputeRequest { + public class AddRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getRule"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -117958,22 +118021,23 @@ public class GetRule extends ComputeRequest + * parameters, call the {@link AddRule#execute()} method to invoke the remote operation.

* {@link - * GetRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * AddRule#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 firewallPolicy Name of the firewall policy to which the queried rule belongs. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @since 1.13 */ - protected GetRule(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyRule.class); + protected AddRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule 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(), @@ -117989,73 +118053,63 @@ protected GetRule(java.lang.String project, java.lang.String firewallPolicy) { } @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 GetRule set$Xgafv(java.lang.String $Xgafv) { - return (GetRule) super.set$Xgafv($Xgafv); + public AddRule set$Xgafv(java.lang.String $Xgafv) { + return (AddRule) super.set$Xgafv($Xgafv); } @Override - public GetRule setAccessToken(java.lang.String accessToken) { - return (GetRule) super.setAccessToken(accessToken); + public AddRule setAccessToken(java.lang.String accessToken) { + return (AddRule) super.setAccessToken(accessToken); } @Override - public GetRule setAlt(java.lang.String alt) { - return (GetRule) super.setAlt(alt); + public AddRule setAlt(java.lang.String alt) { + return (AddRule) super.setAlt(alt); } @Override - public GetRule setCallback(java.lang.String callback) { - return (GetRule) super.setCallback(callback); + public AddRule setCallback(java.lang.String callback) { + return (AddRule) super.setCallback(callback); } @Override - public GetRule setFields(java.lang.String fields) { - return (GetRule) super.setFields(fields); + public AddRule setFields(java.lang.String fields) { + return (AddRule) super.setFields(fields); } @Override - public GetRule setKey(java.lang.String key) { - return (GetRule) super.setKey(key); + public AddRule setKey(java.lang.String key) { + return (AddRule) super.setKey(key); } @Override - public GetRule setOauthToken(java.lang.String oauthToken) { - return (GetRule) super.setOauthToken(oauthToken); + public AddRule setOauthToken(java.lang.String oauthToken) { + return (AddRule) super.setOauthToken(oauthToken); } @Override - public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetRule) super.setPrettyPrint(prettyPrint); + public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddRule) super.setPrettyPrint(prettyPrint); } @Override - public GetRule setQuotaUser(java.lang.String quotaUser) { - return (GetRule) super.setQuotaUser(quotaUser); + public AddRule setQuotaUser(java.lang.String quotaUser) { + return (AddRule) super.setQuotaUser(quotaUser); } @Override - public GetRule setUploadType(java.lang.String uploadType) { - return (GetRule) super.setUploadType(uploadType); + public AddRule setUploadType(java.lang.String uploadType) { + return (AddRule) super.setUploadType(uploadType); } @Override - public GetRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetRule) super.setUploadProtocol(uploadProtocol); + public AddRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddRule) super.setUploadProtocol(uploadProtocol); } @Override - public GetRule setUserIp(java.lang.String userIp) { - return (GetRule) super.setUserIp(userIp); + public AddRule setUserIp(java.lang.String userIp) { + return (AddRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -118069,7 +118123,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetRule setProject(java.lang.String project) { + public AddRule setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -118079,18 +118133,18 @@ public GetRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to which the queried rule belongs. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key private java.lang.String firewallPolicy; - /** Name of the firewall policy to which the queried rule belongs. + /** Name of the firewall policy to update. */ public java.lang.String getFirewallPolicy() { return firewallPolicy; } - /** Name of the firewall policy to which the queried rule belongs. */ - public GetRule setFirewallPolicy(java.lang.String firewallPolicy) { + /** Name of the firewall policy to update. */ + public AddRule setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), "Parameter firewallPolicy must conform to the pattern " + @@ -118100,154 +118154,49 @@ public GetRule setFirewallPolicy(java.lang.String firewallPolicy) { return this; } - /** The priority of the rule to get from the firewall policy. */ + /** + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ @com.google.api.client.util.Key - private java.lang.Integer priority; + private java.lang.Integer maxPriority; - /** The priority of the rule to get from the firewall policy. + /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and + maxPriority>. This field is exclusive with rule.priority. */ - public java.lang.Integer getPriority() { - return priority; + public java.lang.Integer getMaxPriority() { + return maxPriority; } - /** The priority of the rule to get from the firewall policy. */ - public GetRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ + public AddRule setMaxPriority(java.lang.Integer maxPriority) { + this.maxPriority = maxPriority; return this; } - @Override - public GetRule set(String parameterName, Object value) { - return (GetRule) super.set(parameterName, value); - } - } - /** - * Creates a new policy in the specified project using the data included in the request. - * - * Create a request for the method "networkFirewallPolicies.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.FirewallPolicy} - * @return the request - */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.FirewallPolicy content) throws java.io.IOException { - Insert result = new Insert(project, content); - initialize(result); - return result; - } - - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewallPolicies"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - /** - * Creates a new policy in the specified project using the data included in the request. - * - * Create a request for the method "networkFirewallPolicies.insert". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} - * @since 1.13 + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.FirewallPolicy 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; + private java.lang.Integer minPriority; - /** Project ID for this request. + /** When rule.priority is not specified, auto choose a unused priority betweenminPriority and + maxPriority>. This field is exclusive with rule.priority. */ - public java.lang.String getProject() { - return project; + public java.lang.Integer getMinPriority() { + return minPriority; } - /** 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; + /** + * When rule.priority is not specified, auto choose a unused priority betweenminPriority and + * maxPriority>. This field is exclusive with rule.priority. + */ + public AddRule setMinPriority(java.lang.Integer minPriority) { + this.minPriority = minPriority; return this; } @@ -118295,55 +118244,64 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Insert setRequestId(java.lang.String requestId) { + public AddRule setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public AddRule set(String parameterName, Object value) { + return (AddRule) super.set(parameterName, value); } } /** - * Lists all the policies that have been configured for the specified project. + * Retrieves an aggregated list of network firewall policies, listing network firewall policies from + * all applicable scopes (global and regional) and grouping the results per scope. * - * Create a request for the method "networkFirewallPolicies.list". + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "networkFirewallPolicies.aggregatedList". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class List extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies"; + private static final String REST_PATH = "projects/{project}/aggregated/firewallPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Lists all the policies that have been configured for the specified project. + * Retrieves an aggregated list of network firewall policies, listing network firewall policies + * from all applicable scopes (global and regional) and grouping the results per scope. * - * Create a request for the method "networkFirewallPolicies.list". + * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "networkFirewallPolicies.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyList.class); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkFirewallPolicyAggregatedList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -118363,63 +118321,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public AggregatedList setUploadType(java.lang.String uploadType) { + return (AggregatedList) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { + return (AggregatedList) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public AggregatedList setUserIp(java.lang.String userIp) { + return (AggregatedList) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -118433,7 +118391,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public AggregatedList setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -118574,11 +118532,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public AggregatedList setFilter(java.lang.String filter) { this.filter = filter; return this; } + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + return this; + } + /** * The maximum number of results per page that should be returned. If the number of available * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be @@ -118603,7 +118595,7 @@ public java.lang.Long getMaxResults() { * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public List setMaxResults(java.lang.Long maxResults) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -118647,7 +118639,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -118670,7 +118662,7 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public List setPageToken(java.lang.String pageToken) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -118702,38 +118694,60 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Patches the specified policy with the data included in the request. + * Copies rules to the specified firewall policy. * - * Create a request for the method "networkFirewallPolicies.patch". + * Create a request for the method "networkFirewallPolicies.cloneRules". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link CloneRules#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} * @return the request */ - public Patch patch(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicy content) throws java.io.IOException { - Patch result = new Patch(project, firewallPolicy, content); + public CloneRules cloneRules(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + CloneRules result = new CloneRules(project, firewallPolicy); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class CloneRules extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/cloneRules"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -118742,22 +118756,22 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

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

+ * {@link + * CloneRules#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 firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected CloneRules(java.lang.String project, java.lang.String firewallPolicy) { + 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(), @@ -118773,63 +118787,63 @@ protected Patch(java.lang.String project, java.lang.String firewallPolicy, com.g } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public CloneRules set$Xgafv(java.lang.String $Xgafv) { + return (CloneRules) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public CloneRules setAccessToken(java.lang.String accessToken) { + return (CloneRules) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public CloneRules setAlt(java.lang.String alt) { + return (CloneRules) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public CloneRules setCallback(java.lang.String callback) { + return (CloneRules) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public CloneRules setFields(java.lang.String fields) { + return (CloneRules) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public CloneRules setKey(java.lang.String key) { + return (CloneRules) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public CloneRules setOauthToken(java.lang.String oauthToken) { + return (CloneRules) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public CloneRules setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CloneRules) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public CloneRules setQuotaUser(java.lang.String quotaUser) { + return (CloneRules) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public CloneRules setUploadType(java.lang.String uploadType) { + return (CloneRules) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public CloneRules setUploadProtocol(java.lang.String uploadProtocol) { + return (CloneRules) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public CloneRules setUserIp(java.lang.String userIp) { + return (CloneRules) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -118843,7 +118857,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public CloneRules setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -118864,7 +118878,7 @@ public java.lang.String getFirewallPolicy() { } /** Name of the firewall policy to update. */ - public Patch setFirewallPolicy(java.lang.String firewallPolicy) { + public CloneRules setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), "Parameter firewallPolicy must conform to the pattern " + @@ -118918,38 +118932,53 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Patch setRequestId(java.lang.String requestId) { + public CloneRules setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } + /** The firewall policy from which to copy rules. */ + @com.google.api.client.util.Key + private java.lang.String sourceFirewallPolicy; + + /** The firewall policy from which to copy rules. + */ + public java.lang.String getSourceFirewallPolicy() { + return sourceFirewallPolicy; + } + + /** The firewall policy from which to copy rules. */ + public CloneRules setSourceFirewallPolicy(java.lang.String sourceFirewallPolicy) { + this.sourceFirewallPolicy = sourceFirewallPolicy; + return this; + } + @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public CloneRules set(String parameterName, Object value) { + return (CloneRules) super.set(parameterName, value); } } /** - * Updates an association for the specified network firewall policy. + * Deletes the specified policy. * - * Create a request for the method "networkFirewallPolicies.patchAssociation". + * Create a request for the method "networkFirewallPolicies.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PatchAssociation#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} + * @param firewallPolicy Name of the firewall policy to delete. * @return the request */ - public PatchAssociation patchAssociation(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyAssociation content) throws java.io.IOException { - PatchAssociation result = new PatchAssociation(project, firewallPolicy, content); + public Delete delete(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + Delete result = new Delete(project, firewallPolicy); initialize(result); return result; } - public class PatchAssociation extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/patchAssociation"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -118958,23 +118987,21 @@ public class PatchAssociation extends ComputeRequest {@link PatchAssociation#initialize(com.google.api.client.googleapis.services.AbstractGoogle - * ClientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

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

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

* * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} + * @param firewallPolicy Name of the firewall policy to delete. * @since 1.13 */ - protected PatchAssociation(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyAssociation content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Delete(java.lang.String project, java.lang.String firewallPolicy) { + 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(), @@ -118990,63 +119017,63 @@ protected PatchAssociation(java.lang.String project, java.lang.String firewallPo } @Override - public PatchAssociation set$Xgafv(java.lang.String $Xgafv) { - return (PatchAssociation) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public PatchAssociation setAccessToken(java.lang.String accessToken) { - return (PatchAssociation) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public PatchAssociation setAlt(java.lang.String alt) { - return (PatchAssociation) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public PatchAssociation setCallback(java.lang.String callback) { - return (PatchAssociation) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public PatchAssociation setFields(java.lang.String fields) { - return (PatchAssociation) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public PatchAssociation setKey(java.lang.String key) { - return (PatchAssociation) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public PatchAssociation setOauthToken(java.lang.String oauthToken) { - return (PatchAssociation) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public PatchAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchAssociation) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public PatchAssociation setQuotaUser(java.lang.String quotaUser) { - return (PatchAssociation) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public PatchAssociation setUploadType(java.lang.String uploadType) { - return (PatchAssociation) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public PatchAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchAssociation) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public PatchAssociation setUserIp(java.lang.String userIp) { - return (PatchAssociation) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -119060,7 +119087,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchAssociation setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -119070,18 +119097,18 @@ public PatchAssociation setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** Name of the firewall policy to delete. */ @com.google.api.client.util.Key private java.lang.String firewallPolicy; - /** Name of the firewall policy to update. + /** Name of the firewall policy to delete. */ public java.lang.String getFirewallPolicy() { return firewallPolicy; } - /** Name of the firewall policy to update. */ - public PatchAssociation setFirewallPolicy(java.lang.String firewallPolicy) { + /** Name of the firewall policy to delete. */ + public Delete setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), "Parameter firewallPolicy must conform to the pattern " + @@ -119135,39 +119162,37 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public PatchAssociation setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public PatchAssociation set(String parameterName, Object value) { - return (PatchAssociation) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Patches a packet mirroring rule of the specified priority. + * Returns the specified network firewall policy. * - * Create a request for the method "networkFirewallPolicies.patchPacketMirroringRule". + * Create a request for the method "networkFirewallPolicies.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PatchPacketMirroringRule#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 firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param firewallPolicy Name of the firewall policy to get. * @return the request */ - public PatchPacketMirroringRule patchPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { - PatchPacketMirroringRule result = new PatchPacketMirroringRule(project, firewallPolicy, content); + public Get get(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + Get result = new Get(project, firewallPolicy); initialize(result); return result; } - public class PatchPacketMirroringRule extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/patchPacketMirroringRule"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -119176,23 +119201,21 @@ public class PatchPacketMirroringRule extends ComputeRequest {@link PatchPacketMirroringRule#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 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 firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param firewallPolicy Name of the firewall policy to get. * @since 1.13 */ - protected PatchPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule 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 firewallPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -119208,63 +119231,73 @@ protected PatchPacketMirroringRule(java.lang.String project, java.lang.String fi } @Override - public PatchPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { - return (PatchPacketMirroringRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public PatchPacketMirroringRule setAccessToken(java.lang.String accessToken) { - return (PatchPacketMirroringRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public PatchPacketMirroringRule setAlt(java.lang.String alt) { - return (PatchPacketMirroringRule) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public PatchPacketMirroringRule setCallback(java.lang.String callback) { - return (PatchPacketMirroringRule) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public PatchPacketMirroringRule setFields(java.lang.String fields) { - return (PatchPacketMirroringRule) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public PatchPacketMirroringRule setKey(java.lang.String key) { - return (PatchPacketMirroringRule) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public PatchPacketMirroringRule setOauthToken(java.lang.String oauthToken) { - return (PatchPacketMirroringRule) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public PatchPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchPacketMirroringRule) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public PatchPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { - return (PatchPacketMirroringRule) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public PatchPacketMirroringRule setUploadType(java.lang.String uploadType) { - return (PatchPacketMirroringRule) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public PatchPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchPacketMirroringRule) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public PatchPacketMirroringRule setUserIp(java.lang.String userIp) { - return (PatchPacketMirroringRule) 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. */ @@ -119278,7 +119311,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchPacketMirroringRule 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 " + @@ -119288,18 +119321,18 @@ public PatchPacketMirroringRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** Name of the firewall policy to get. */ @com.google.api.client.util.Key private java.lang.String firewallPolicy; - /** Name of the firewall policy to update. + /** Name of the firewall policy to get. */ public java.lang.String getFirewallPolicy() { return firewallPolicy; } - /** Name of the firewall policy to update. */ - public PatchPacketMirroringRule setFirewallPolicy(java.lang.String firewallPolicy) { + /** Name of the firewall policy to get. */ + public Get setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), "Parameter firewallPolicy must conform to the pattern " + @@ -119309,98 +119342,32 @@ public PatchPacketMirroringRule setFirewallPolicy(java.lang.String firewallPolic return this; } - /** The priority of the rule to patch. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to patch. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to patch. */ - public PatchPacketMirroringRule setPriority(java.lang.Integer priority) { - this.priority = priority; - 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 PatchPacketMirroringRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - @Override - public PatchPacketMirroringRule set(String parameterName, Object value) { - return (PatchPacketMirroringRule) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Patches a rule of the specified priority. + * Gets an association with the specified name. * - * Create a request for the method "networkFirewallPolicies.patchRule". + * Create a request for the method "networkFirewallPolicies.getAssociation". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation. + * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param firewallPolicy Name of the firewall policy to which the queried association belongs. * @return the request */ - public PatchRule patchRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { - PatchRule result = new PatchRule(project, firewallPolicy, content); + public GetAssociation getAssociation(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + GetAssociation result = new GetAssociation(project, firewallPolicy); initialize(result); return result; } - public class PatchRule extends ComputeRequest { + public class GetAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -119409,23 +119376,22 @@ public class PatchRule extends ComputeRequest - * {@link - * PatchRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

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

{@link GetAssociation#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 firewallPolicy Name of the firewall policy to update. - * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} + * @param firewallPolicy Name of the firewall policy to which the queried association belongs. * @since 1.13 */ - protected PatchRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected GetAssociation(java.lang.String project, java.lang.String firewallPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyAssociation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -119441,63 +119407,73 @@ protected PatchRule(java.lang.String project, java.lang.String firewallPolicy, c } @Override - public PatchRule set$Xgafv(java.lang.String $Xgafv) { - return (PatchRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public PatchRule setAccessToken(java.lang.String accessToken) { - return (PatchRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public PatchRule setAlt(java.lang.String alt) { - return (PatchRule) super.setAlt(alt); + public GetAssociation set$Xgafv(java.lang.String $Xgafv) { + return (GetAssociation) super.set$Xgafv($Xgafv); } @Override - public PatchRule setCallback(java.lang.String callback) { - return (PatchRule) super.setCallback(callback); + public GetAssociation setAccessToken(java.lang.String accessToken) { + return (GetAssociation) super.setAccessToken(accessToken); } @Override - public PatchRule setFields(java.lang.String fields) { - return (PatchRule) super.setFields(fields); + public GetAssociation setAlt(java.lang.String alt) { + return (GetAssociation) super.setAlt(alt); } @Override - public PatchRule setKey(java.lang.String key) { - return (PatchRule) super.setKey(key); + public GetAssociation setCallback(java.lang.String callback) { + return (GetAssociation) super.setCallback(callback); } @Override - public PatchRule setOauthToken(java.lang.String oauthToken) { - return (PatchRule) super.setOauthToken(oauthToken); + public GetAssociation setFields(java.lang.String fields) { + return (GetAssociation) super.setFields(fields); } @Override - public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchRule) super.setPrettyPrint(prettyPrint); + public GetAssociation setKey(java.lang.String key) { + return (GetAssociation) super.setKey(key); } @Override - public PatchRule setQuotaUser(java.lang.String quotaUser) { - return (PatchRule) super.setQuotaUser(quotaUser); + public GetAssociation setOauthToken(java.lang.String oauthToken) { + return (GetAssociation) super.setOauthToken(oauthToken); } @Override - public PatchRule setUploadType(java.lang.String uploadType) { - return (PatchRule) super.setUploadType(uploadType); + public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetAssociation) super.setPrettyPrint(prettyPrint); } @Override - public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchRule) super.setUploadProtocol(uploadProtocol); + public GetAssociation setQuotaUser(java.lang.String quotaUser) { + return (GetAssociation) super.setQuotaUser(quotaUser); } @Override - public PatchRule setUserIp(java.lang.String userIp) { - return (PatchRule) super.setUserIp(userIp); + public GetAssociation setUploadType(java.lang.String uploadType) { + return (GetAssociation) super.setUploadType(uploadType); + } + + @Override + public GetAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (GetAssociation) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetAssociation setUserIp(java.lang.String userIp) { + return (GetAssociation) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -119511,7 +119487,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PatchRule setProject(java.lang.String project) { + public GetAssociation setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -119521,18 +119497,18 @@ public PatchRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** Name of the firewall policy to which the queried association belongs. */ @com.google.api.client.util.Key private java.lang.String firewallPolicy; - /** Name of the firewall policy to update. + /** Name of the firewall policy to which the queried association belongs. */ public java.lang.String getFirewallPolicy() { return firewallPolicy; } - /** Name of the firewall policy to update. */ - public PatchRule setFirewallPolicy(java.lang.String firewallPolicy) { + /** Name of the firewall policy to which the queried association belongs. */ + public GetAssociation setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), "Parameter firewallPolicy must conform to the pattern " + @@ -119542,193 +119518,155 @@ public PatchRule setFirewallPolicy(java.lang.String firewallPolicy) { return this; } - /** The priority of the rule to patch. */ - @com.google.api.client.util.Key - private java.lang.Integer priority; - - /** The priority of the rule to patch. - */ - public java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to patch. */ - public PatchRule setPriority(java.lang.Integer priority) { - this.priority = priority; - 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). - */ + /** The name of the association to get from the firewall policy. */ @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 name; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** The name of the association to get from the firewall policy. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getName() { + return name; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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 PatchRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** The name of the association to get from the firewall policy. */ + public GetAssociation setName(java.lang.String name) { + this.name = name; return this; } @Override - public PatchRule set(String parameterName, Object value) { - return (PatchRule) super.set(parameterName, value); + public GetAssociation set(String parameterName, Object value) { + return (GetAssociation) super.set(parameterName, value); } } /** - * Removes an association for the specified firewall policy. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "networkFirewallPolicies.removeAssociation". + * Create a request for the method "networkFirewallPolicies.getIamPolicy". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. + * @param resource Name or id of the resource for this request. * @return the request */ - public RemoveAssociation removeAssociation(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - RemoveAssociation result = new RemoveAssociation(project, firewallPolicy); + public GetIamPolicy getIamPolicy(java.lang.String project, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, resource); initialize(result); return result; } - public class RemoveAssociation extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Removes an association for the specified firewall policy. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "networkFirewallPolicies.removeAssociation". + * Create a request for the method "networkFirewallPolicies.getIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. - *

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

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

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

* * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. + * @param resource Name or id of the resource for this request. * @since 1.13 */ - protected RemoveAssociation(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected GetIamPolicy(java.lang.String project, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { - return (RemoveAssociation) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RemoveAssociation setAccessToken(java.lang.String accessToken) { - return (RemoveAssociation) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public RemoveAssociation setAlt(java.lang.String alt) { - return (RemoveAssociation) super.setAlt(alt); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public RemoveAssociation setCallback(java.lang.String callback) { - return (RemoveAssociation) super.setCallback(callback); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public RemoveAssociation setFields(java.lang.String fields) { - return (RemoveAssociation) super.setFields(fields); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public RemoveAssociation setKey(java.lang.String key) { - return (RemoveAssociation) super.setKey(key); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public RemoveAssociation setOauthToken(java.lang.String oauthToken) { - return (RemoveAssociation) super.setOauthToken(oauthToken); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveAssociation) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { - return (RemoveAssociation) super.setQuotaUser(quotaUser); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public RemoveAssociation setUploadType(java.lang.String uploadType) { - return (RemoveAssociation) super.setUploadType(uploadType); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public RemoveAssociation setUserIp(java.lang.String userIp) { - return (RemoveAssociation) super.setUserIp(userIp); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -119742,7 +119680,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveAssociation setProject(java.lang.String project) { + public GetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -119752,119 +119690,70 @@ public RemoveAssociation setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String firewallPolicy; + private java.lang.String resource; - /** Name of the firewall policy to update. + /** Name or id of the resource for this request. */ - public java.lang.String getFirewallPolicy() { - return firewallPolicy; + public java.lang.String getResource() { + return resource; } - /** Name of the firewall policy to update. */ - public RemoveAssociation setFirewallPolicy(java.lang.String firewallPolicy) { + /** 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(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), - "Parameter firewallPolicy must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.firewallPolicy = firewallPolicy; - return this; - } - - /** Name for the attachment that will be removed. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Name for the attachment that will be removed. - */ - public java.lang.String getName() { - return name; - } - - /** Name for the attachment that will be removed. */ - public RemoveAssociation setName(java.lang.String name) { - this.name = name; + this.resource = resource; return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.Integer optionsRequestedPolicyVersion; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Requested IAM Policy version. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public RemoveAssociation setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public RemoveAssociation set(String parameterName, Object value) { - return (RemoveAssociation) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Deletes a packet mirroring rule of the specified priority. + * Gets a packet mirroring rule of the specified priority. * - * Create a request for the method "networkFirewallPolicies.removePacketMirroringRule". + * Create a request for the method "networkFirewallPolicies.getPacketMirroringRule". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemovePacketMirroringRule#execute()} method to invoke the remote + * parameters, call the {@link GetPacketMirroringRule#execute()} method to invoke the remote * operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. + * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. * @return the request */ - public RemovePacketMirroringRule removePacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - RemovePacketMirroringRule result = new RemovePacketMirroringRule(project, firewallPolicy); + public GetPacketMirroringRule getPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + GetPacketMirroringRule result = new GetPacketMirroringRule(project, firewallPolicy); initialize(result); return result; } - public class RemovePacketMirroringRule extends ComputeRequest { + public class GetPacketMirroringRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removePacketMirroringRule"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getPacketMirroringRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -119873,22 +119762,22 @@ public class RemovePacketMirroringRule extends ComputeRequest {@link RemovePacketMirroringRule#initialize(com.google.api.client.googleapis.ser - * vices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately - * after invoking the constructor.

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

{@link GetPacketMirroringRule#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 firewallPolicy Name of the firewall policy to update. + * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. * @since 1.13 */ - protected RemovePacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected GetPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyRule.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -119904,63 +119793,73 @@ protected RemovePacketMirroringRule(java.lang.String project, java.lang.String f } @Override - public RemovePacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { - return (RemovePacketMirroringRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RemovePacketMirroringRule setAccessToken(java.lang.String accessToken) { - return (RemovePacketMirroringRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public RemovePacketMirroringRule setAlt(java.lang.String alt) { - return (RemovePacketMirroringRule) super.setAlt(alt); + public GetPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { + return (GetPacketMirroringRule) super.set$Xgafv($Xgafv); } @Override - public RemovePacketMirroringRule setCallback(java.lang.String callback) { - return (RemovePacketMirroringRule) super.setCallback(callback); + public GetPacketMirroringRule setAccessToken(java.lang.String accessToken) { + return (GetPacketMirroringRule) super.setAccessToken(accessToken); } @Override - public RemovePacketMirroringRule setFields(java.lang.String fields) { - return (RemovePacketMirroringRule) super.setFields(fields); + public GetPacketMirroringRule setAlt(java.lang.String alt) { + return (GetPacketMirroringRule) super.setAlt(alt); } @Override - public RemovePacketMirroringRule setKey(java.lang.String key) { - return (RemovePacketMirroringRule) super.setKey(key); + public GetPacketMirroringRule setCallback(java.lang.String callback) { + return (GetPacketMirroringRule) super.setCallback(callback); } @Override - public RemovePacketMirroringRule setOauthToken(java.lang.String oauthToken) { - return (RemovePacketMirroringRule) super.setOauthToken(oauthToken); + public GetPacketMirroringRule setFields(java.lang.String fields) { + return (GetPacketMirroringRule) super.setFields(fields); } @Override - public RemovePacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemovePacketMirroringRule) super.setPrettyPrint(prettyPrint); + public GetPacketMirroringRule setKey(java.lang.String key) { + return (GetPacketMirroringRule) super.setKey(key); } @Override - public RemovePacketMirroringRule setQuotaUser(java.lang.String quotaUser) { - return (RemovePacketMirroringRule) super.setQuotaUser(quotaUser); + public GetPacketMirroringRule setOauthToken(java.lang.String oauthToken) { + return (GetPacketMirroringRule) super.setOauthToken(oauthToken); } @Override - public RemovePacketMirroringRule setUploadType(java.lang.String uploadType) { - return (RemovePacketMirroringRule) super.setUploadType(uploadType); + public GetPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetPacketMirroringRule) super.setPrettyPrint(prettyPrint); } @Override - public RemovePacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemovePacketMirroringRule) super.setUploadProtocol(uploadProtocol); + public GetPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { + return (GetPacketMirroringRule) super.setQuotaUser(quotaUser); } @Override - public RemovePacketMirroringRule setUserIp(java.lang.String userIp) { - return (RemovePacketMirroringRule) super.setUserIp(userIp); + public GetPacketMirroringRule setUploadType(java.lang.String uploadType) { + return (GetPacketMirroringRule) super.setUploadType(uploadType); + } + + @Override + public GetPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { + return (GetPacketMirroringRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetPacketMirroringRule setUserIp(java.lang.String userIp) { + return (GetPacketMirroringRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -119974,7 +119873,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemovePacketMirroringRule setProject(java.lang.String project) { + public GetPacketMirroringRule setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -119984,18 +119883,18 @@ public RemovePacketMirroringRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** Name of the firewall policy to which the queried rule belongs. */ @com.google.api.client.util.Key private java.lang.String firewallPolicy; - /** Name of the firewall policy to update. + /** Name of the firewall policy to which the queried rule belongs. */ public java.lang.String getFirewallPolicy() { return firewallPolicy; } - /** Name of the firewall policy to update. */ - public RemovePacketMirroringRule setFirewallPolicy(java.lang.String firewallPolicy) { + /** Name of the firewall policy to which the queried rule belongs. */ + public GetPacketMirroringRule setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), "Parameter firewallPolicy must conform to the pattern " + @@ -120005,97 +119904,48 @@ public RemovePacketMirroringRule setFirewallPolicy(java.lang.String firewallPoli return this; } - /** The priority of the rule to remove from the firewall policy. */ + /** The priority of the rule to get from the firewall policy. */ @com.google.api.client.util.Key private java.lang.Integer priority; - /** The priority of the rule to remove from the firewall policy. + /** The priority of the rule to get from the firewall policy. */ public java.lang.Integer getPriority() { return priority; } - /** The priority of the rule to remove from the firewall policy. */ - public RemovePacketMirroringRule setPriority(java.lang.Integer priority) { + /** The priority of the rule to get from the firewall policy. */ + public GetPacketMirroringRule setPriority(java.lang.Integer priority) { this.priority = priority; 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 RemovePacketMirroringRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - @Override - public RemovePacketMirroringRule set(String parameterName, Object value) { - return (RemovePacketMirroringRule) super.set(parameterName, value); + public GetPacketMirroringRule set(String parameterName, Object value) { + return (GetPacketMirroringRule) super.set(parameterName, value); } } /** - * Deletes a rule of the specified priority. + * Gets a rule of the specified priority. * - * Create a request for the method "networkFirewallPolicies.removeRule". + * Create a request for the method "networkFirewallPolicies.getRule". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation. + * parameters, call the {@link GetRule#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param firewallPolicy Name of the firewall policy to update. + * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. * @return the request */ - public RemoveRule removeRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { - RemoveRule result = new RemoveRule(project, firewallPolicy); + public GetRule getRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + GetRule result = new GetRule(project, firewallPolicy); initialize(result); return result; } - public class RemoveRule extends ComputeRequest { + public class GetRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/getRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -120104,22 +119954,22 @@ public class RemoveRule extends ComputeRequest + * parameters, call the {@link GetRule#execute()} method to invoke the remote operation.

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

+ * GetRule#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 firewallPolicy Name of the firewall policy to update. + * @param firewallPolicy Name of the firewall policy to which the queried rule belongs. * @since 1.13 */ - protected RemoveRule(java.lang.String project, java.lang.String firewallPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected GetRule(java.lang.String project, java.lang.String firewallPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FirewallPolicyRule.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -120135,63 +119985,73 @@ protected RemoveRule(java.lang.String project, java.lang.String firewallPolicy) } @Override - public RemoveRule set$Xgafv(java.lang.String $Xgafv) { - return (RemoveRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RemoveRule setAccessToken(java.lang.String accessToken) { - return (RemoveRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public RemoveRule setAlt(java.lang.String alt) { - return (RemoveRule) super.setAlt(alt); + public GetRule set$Xgafv(java.lang.String $Xgafv) { + return (GetRule) super.set$Xgafv($Xgafv); } @Override - public RemoveRule setCallback(java.lang.String callback) { - return (RemoveRule) super.setCallback(callback); + public GetRule setAccessToken(java.lang.String accessToken) { + return (GetRule) super.setAccessToken(accessToken); } @Override - public RemoveRule setFields(java.lang.String fields) { - return (RemoveRule) super.setFields(fields); + public GetRule setAlt(java.lang.String alt) { + return (GetRule) super.setAlt(alt); } @Override - public RemoveRule setKey(java.lang.String key) { - return (RemoveRule) super.setKey(key); + public GetRule setCallback(java.lang.String callback) { + return (GetRule) super.setCallback(callback); } @Override - public RemoveRule setOauthToken(java.lang.String oauthToken) { - return (RemoveRule) super.setOauthToken(oauthToken); + public GetRule setFields(java.lang.String fields) { + return (GetRule) super.setFields(fields); } @Override - public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveRule) super.setPrettyPrint(prettyPrint); + public GetRule setKey(java.lang.String key) { + return (GetRule) super.setKey(key); } @Override - public RemoveRule setQuotaUser(java.lang.String quotaUser) { - return (RemoveRule) super.setQuotaUser(quotaUser); + public GetRule setOauthToken(java.lang.String oauthToken) { + return (GetRule) super.setOauthToken(oauthToken); } @Override - public RemoveRule setUploadType(java.lang.String uploadType) { - return (RemoveRule) super.setUploadType(uploadType); + public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetRule) super.setPrettyPrint(prettyPrint); } @Override - public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveRule) super.setUploadProtocol(uploadProtocol); + public GetRule setQuotaUser(java.lang.String quotaUser) { + return (GetRule) super.setQuotaUser(quotaUser); } @Override - public RemoveRule setUserIp(java.lang.String userIp) { - return (RemoveRule) super.setUserIp(userIp); + public GetRule setUploadType(java.lang.String uploadType) { + return (GetRule) super.setUploadType(uploadType); + } + + @Override + public GetRule setUploadProtocol(java.lang.String uploadProtocol) { + return (GetRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetRule setUserIp(java.lang.String userIp) { + return (GetRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -120205,7 +120065,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemoveRule setProject(java.lang.String project) { + public GetRule setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -120215,18 +120075,18 @@ public RemoveRule setProject(java.lang.String project) { return this; } - /** Name of the firewall policy to update. */ + /** Name of the firewall policy to which the queried rule belongs. */ @com.google.api.client.util.Key private java.lang.String firewallPolicy; - /** Name of the firewall policy to update. + /** Name of the firewall policy to which the queried rule belongs. */ public java.lang.String getFirewallPolicy() { return firewallPolicy; } - /** Name of the firewall policy to update. */ - public RemoveRule setFirewallPolicy(java.lang.String firewallPolicy) { + /** Name of the firewall policy to which the queried rule belongs. */ + public GetRule setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), "Parameter firewallPolicy must conform to the pattern " + @@ -120236,195 +120096,134 @@ public RemoveRule setFirewallPolicy(java.lang.String firewallPolicy) { return this; } - /** The priority of the rule to remove from the firewall policy. */ + /** The priority of the rule to get from the firewall policy. */ @com.google.api.client.util.Key private java.lang.Integer priority; - /** The priority of the rule to remove from the firewall policy. + /** The priority of the rule to get from the firewall policy. */ public java.lang.Integer getPriority() { return priority; } - /** The priority of the rule to remove from the firewall policy. */ - public RemoveRule setPriority(java.lang.Integer priority) { + /** The priority of the rule to get from the firewall policy. */ + public GetRule setPriority(java.lang.Integer priority) { this.priority = priority; 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 RemoveRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - @Override - public RemoveRule set(String parameterName, Object value) { - return (RemoveRule) super.set(parameterName, value); + public GetRule set(String parameterName, Object value) { + return (GetRule) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Creates a new policy in the specified project using the data included in the request. * - * Create a request for the method "networkFirewallPolicies.setIamPolicy". + * Create a request for the method "networkFirewallPolicies.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, resource, content); + public Insert insert(java.lang.String project, com.google.api.services.compute.model.FirewallPolicy content) throws java.io.IOException { + Insert result = new Insert(project, content); initialize(result); return result; } - public class SetIamPolicy extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Creates a new policy in the specified project using the data included in the request. * - * Create a request for the method "networkFirewallPolicies.setIamPolicy". + * Create a request for the method "networkFirewallPolicies.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + protected Insert(java.lang.String project, com.google.api.services.compute.model.FirewallPolicy 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -120438,7 +120237,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -120448,402 +120247,64 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "networkFirewallPolicies.testIamPermissions". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{resource}/testIamPermissions"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Returns permissions that a caller has on the specified resource. - * - * Create a request for the method "networkFirewallPolicies.testIamPermissions". + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

+ * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} - * @since 1.13 + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); - } - - /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String project; - - /** Project ID for this request. - */ - public java.lang.String getProject() { - return project; - } + private java.lang.String requestId; - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; - return this; - } + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** Name or id of the resource for this request. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public java.lang.String getRequestId() { + return requestId; } - } - - } - - /** - * An accessor for creating requests from the NetworkProfiles collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NetworkProfiles.List request = compute.networkProfiles().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public NetworkProfiles networkProfiles() { - return new NetworkProfiles(); - } - - /** - * The "networkProfiles" collection of methods. - */ - public class NetworkProfiles { - - /** - * Returns the specified network profile. - * - * Create a request for the method "networkProfiles.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 networkProfile Name of the network profile to return. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String networkProfile) throws java.io.IOException { - Get result = new Get(project, networkProfile); - initialize(result); - return result; - } - - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/networkProfiles/{networkProfile}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern NETWORK_PROFILE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the specified network profile. - * - * Create a request for the method "networkProfiles.get". + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * @param project Project ID for this request. - * @param networkProfile Name of the network profile to return. - * @since 1.13 - */ - protected Get(java.lang.String project, java.lang.String networkProfile) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkProfile.class); - this.project = com.google.api.client.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.networkProfile = com.google.api.client.util.Preconditions.checkNotNull(networkProfile, "Required parameter networkProfile must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PROFILE_PATTERN.matcher(networkProfile).matches(), - "Parameter networkProfile 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 network profile to return. */ - @com.google.api.client.util.Key - private java.lang.String networkProfile; - - /** Name of the network profile to return. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getNetworkProfile() { - return networkProfile; - } - - /** Name of the network profile to return. */ - public Get setNetworkProfile(java.lang.String networkProfile) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PROFILE_PATTERN.matcher(networkProfile).matches(), - "Parameter networkProfile must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.networkProfile = networkProfile; + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Retrieves a list of network profiles available to the specified project. + * Lists all the policies that have been configured for the specified project. * - * Create a request for the method "networkProfiles.list". + * Create a request for the method "networkFirewallPolicies.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. @@ -120857,17 +120318,17 @@ public List list(java.lang.String project) throws java.io.IOException { return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networkProfiles"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); /** - * Retrieves a list of network profiles available to the specified project. + * Lists all the policies that have been configured for the specified project. * - * Create a request for the method "networkProfiles.list". + * Create a request for the method "networkFirewallPolicies.list". * * This request holds the parameters needed by the the compute server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link @@ -120878,7 +120339,7 @@ public class List extends ComputeRequestThe typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.Networks.List request = compute.networks().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Networks networks() { - return new Networks(); - } - - /** - * The "networks" collection of methods. - */ - public class Networks { - /** - * Adds a peering to the specified network. + * Patches the specified policy with the data included in the request. * - * Create a request for the method "networks.addPeering". + * Create a request for the method "networkFirewallPolicies.patch". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddPeering#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 network Name of the network resource to add peering to. - * @param content the {@link com.google.api.services.compute.model.NetworksAddPeeringRequest} + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} * @return the request */ - public AddPeering addPeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksAddPeeringRequest content) throws java.io.IOException { - AddPeering result = new AddPeering(project, network, content); + public Patch patch(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicy content) throws java.io.IOException { + Patch result = new Patch(project, firewallPolicy, content); initialize(result); return result; } - public class AddPeering extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/addPeering"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern NETWORK_PATTERN = + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Adds a peering to the specified network. + * Patches the specified policy with the data included in the request. * - * Create a request for the method "networks.addPeering". + * Create a request for the method "networkFirewallPolicies.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddPeering#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param network Name of the network resource to add peering to. - * @param content the {@link com.google.api.services.compute.model.NetworksAddPeeringRequest} + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicy} * @since 1.13 */ - protected AddPeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksAddPeeringRequest 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 firewallPolicy, com.google.api.services.compute.model.FirewallPolicy 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public AddPeering set$Xgafv(java.lang.String $Xgafv) { - return (AddPeering) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public AddPeering setAccessToken(java.lang.String accessToken) { - return (AddPeering) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public AddPeering setAlt(java.lang.String alt) { - return (AddPeering) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public AddPeering setCallback(java.lang.String callback) { - return (AddPeering) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public AddPeering setFields(java.lang.String fields) { - return (AddPeering) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public AddPeering setKey(java.lang.String key) { - return (AddPeering) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public AddPeering setOauthToken(java.lang.String oauthToken) { - return (AddPeering) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public AddPeering setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddPeering) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public AddPeering setQuotaUser(java.lang.String quotaUser) { - return (AddPeering) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public AddPeering setUploadType(java.lang.String uploadType) { - return (AddPeering) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public AddPeering setUploadProtocol(java.lang.String uploadProtocol) { - return (AddPeering) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public AddPeering setUserIp(java.lang.String userIp) { - return (AddPeering) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -121402,7 +120839,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddPeering 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 " + @@ -121412,24 +120849,24 @@ public AddPeering setProject(java.lang.String project) { return this; } - /** Name of the network resource to add peering to. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.String firewallPolicy; - /** Name of the network resource to add peering to. + /** Name of the firewall policy to update. */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the network resource to add peering to. */ - public AddPeering setNetwork(java.lang.String network) { + /** Name of the firewall policy to update. */ + public Patch setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.network = network; + this.firewallPolicy = firewallPolicy; return this; } @@ -121477,67 +120914,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 AddPeering setRequestId(java.lang.String requestId) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddPeering set(String parameterName, Object value) { - return (AddPeering) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Cancel requests to remove a peering from the specified network. Applicable only for - * PeeringConnection with update_strategy=CONSENSUS. Cancels a request to remove a peering from the - * specified network. + * Updates an association for the specified network firewall policy. * - * Create a request for the method "networks.cancelRequestRemovePeering". + * Create a request for the method "networkFirewallPolicies.patchAssociation". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link CancelRequestRemovePeering#execute()} method to invoke the remote - * operation. + * parameters, call the {@link PatchAssociation#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param network Name of the network resource to remove peering from. - * @param content the {@link com.google.api.services.compute.model.NetworksCancelRequestRemovePeeringRequest} + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} * @return the request */ - public CancelRequestRemovePeering cancelRequestRemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksCancelRequestRemovePeeringRequest content) throws java.io.IOException { - CancelRequestRemovePeering result = new CancelRequestRemovePeering(project, network, content); + public PatchAssociation patchAssociation(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyAssociation content) throws java.io.IOException { + PatchAssociation result = new PatchAssociation(project, firewallPolicy, content); initialize(result); return result; } - public class CancelRequestRemovePeering extends ComputeRequest { + public class PatchAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/cancelRequestRemovePeering"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/patchAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern NETWORK_PATTERN = + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Cancel requests to remove a peering from the specified network. Applicable only for - * PeeringConnection with update_strategy=CONSENSUS. Cancels a request to remove a peering from - * the specified network. + * Updates an association for the specified network firewall policy. * - * Create a request for the method "networks.cancelRequestRemovePeering". + * Create a request for the method "networkFirewallPolicies.patchAssociation". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link CancelRequestRemovePeering#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param network Name of the network resource to remove peering from. - * @param content the {@link com.google.api.services.compute.model.NetworksCancelRequestRemovePeeringRequest} + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyAssociation} * @since 1.13 */ - protected CancelRequestRemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksCancelRequestRemovePeeringRequest content) { + protected PatchAssociation(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyAssociation 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()) { @@ -121545,72 +120977,72 @@ protected CancelRequestRemovePeering(java.lang.String project, java.lang.String "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public CancelRequestRemovePeering set$Xgafv(java.lang.String $Xgafv) { - return (CancelRequestRemovePeering) super.set$Xgafv($Xgafv); + public PatchAssociation set$Xgafv(java.lang.String $Xgafv) { + return (PatchAssociation) super.set$Xgafv($Xgafv); } @Override - public CancelRequestRemovePeering setAccessToken(java.lang.String accessToken) { - return (CancelRequestRemovePeering) super.setAccessToken(accessToken); + public PatchAssociation setAccessToken(java.lang.String accessToken) { + return (PatchAssociation) super.setAccessToken(accessToken); } @Override - public CancelRequestRemovePeering setAlt(java.lang.String alt) { - return (CancelRequestRemovePeering) super.setAlt(alt); + public PatchAssociation setAlt(java.lang.String alt) { + return (PatchAssociation) super.setAlt(alt); } @Override - public CancelRequestRemovePeering setCallback(java.lang.String callback) { - return (CancelRequestRemovePeering) super.setCallback(callback); + public PatchAssociation setCallback(java.lang.String callback) { + return (PatchAssociation) super.setCallback(callback); } @Override - public CancelRequestRemovePeering setFields(java.lang.String fields) { - return (CancelRequestRemovePeering) super.setFields(fields); + public PatchAssociation setFields(java.lang.String fields) { + return (PatchAssociation) super.setFields(fields); } @Override - public CancelRequestRemovePeering setKey(java.lang.String key) { - return (CancelRequestRemovePeering) super.setKey(key); + public PatchAssociation setKey(java.lang.String key) { + return (PatchAssociation) super.setKey(key); } @Override - public CancelRequestRemovePeering setOauthToken(java.lang.String oauthToken) { - return (CancelRequestRemovePeering) super.setOauthToken(oauthToken); + public PatchAssociation setOauthToken(java.lang.String oauthToken) { + return (PatchAssociation) super.setOauthToken(oauthToken); } @Override - public CancelRequestRemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CancelRequestRemovePeering) super.setPrettyPrint(prettyPrint); + public PatchAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchAssociation) super.setPrettyPrint(prettyPrint); } @Override - public CancelRequestRemovePeering setQuotaUser(java.lang.String quotaUser) { - return (CancelRequestRemovePeering) super.setQuotaUser(quotaUser); + public PatchAssociation setQuotaUser(java.lang.String quotaUser) { + return (PatchAssociation) super.setQuotaUser(quotaUser); } @Override - public CancelRequestRemovePeering setUploadType(java.lang.String uploadType) { - return (CancelRequestRemovePeering) super.setUploadType(uploadType); + public PatchAssociation setUploadType(java.lang.String uploadType) { + return (PatchAssociation) super.setUploadType(uploadType); } @Override - public CancelRequestRemovePeering setUploadProtocol(java.lang.String uploadProtocol) { - return (CancelRequestRemovePeering) super.setUploadProtocol(uploadProtocol); + public PatchAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public CancelRequestRemovePeering setUserIp(java.lang.String userIp) { - return (CancelRequestRemovePeering) super.setUserIp(userIp); + public PatchAssociation setUserIp(java.lang.String userIp) { + return (PatchAssociation) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -121624,7 +121056,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public CancelRequestRemovePeering setProject(java.lang.String project) { + public PatchAssociation setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -121634,24 +121066,24 @@ public CancelRequestRemovePeering setProject(java.lang.String project) { return this; } - /** Name of the network resource to remove peering from. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.String firewallPolicy; - /** Name of the network resource to remove peering from. + /** Name of the firewall policy to update. */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the network resource to remove peering from. */ - public CancelRequestRemovePeering setNetwork(java.lang.String network) { + /** Name of the firewall policy to update. */ + public PatchAssociation setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.network = network; + this.firewallPolicy = firewallPolicy; return this; } @@ -121699,132 +121131,136 @@ 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 CancelRequestRemovePeering setRequestId(java.lang.String requestId) { + public PatchAssociation setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public CancelRequestRemovePeering set(String parameterName, Object value) { - return (CancelRequestRemovePeering) super.set(parameterName, value); + public PatchAssociation set(String parameterName, Object value) { + return (PatchAssociation) super.set(parameterName, value); } } /** - * Deletes the specified network. + * Patches a packet mirroring rule of the specified priority. * - * Create a request for the method "networks.delete". + * Create a request for the method "networkFirewallPolicies.patchPacketMirroringRule". * * 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 PatchPacketMirroringRule#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param network Name of the network to delete. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String network) throws java.io.IOException { - Delete result = new Delete(project, network); + public PatchPacketMirroringRule patchPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { + PatchPacketMirroringRule result = new PatchPacketMirroringRule(project, firewallPolicy, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class PatchPacketMirroringRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/patchPacketMirroringRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern NETWORK_PATTERN = + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Deletes the specified network. + * Patches a packet mirroring rule of the specified priority. * - * Create a request for the method "networks.delete". + * Create a request for the method "networkFirewallPolicies.patchPacketMirroringRule". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

{@link PatchPacketMirroringRule#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 network Name of the network to delete. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String network) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected PatchPacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public PatchPacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { + return (PatchPacketMirroringRule) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public PatchPacketMirroringRule setAccessToken(java.lang.String accessToken) { + return (PatchPacketMirroringRule) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public PatchPacketMirroringRule setAlt(java.lang.String alt) { + return (PatchPacketMirroringRule) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public PatchPacketMirroringRule setCallback(java.lang.String callback) { + return (PatchPacketMirroringRule) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public PatchPacketMirroringRule setFields(java.lang.String fields) { + return (PatchPacketMirroringRule) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public PatchPacketMirroringRule setKey(java.lang.String key) { + return (PatchPacketMirroringRule) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public PatchPacketMirroringRule setOauthToken(java.lang.String oauthToken) { + return (PatchPacketMirroringRule) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public PatchPacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchPacketMirroringRule) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public PatchPacketMirroringRule setQuotaUser(java.lang.String quotaUser) { + return (PatchPacketMirroringRule) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public PatchPacketMirroringRule setUploadType(java.lang.String uploadType) { + return (PatchPacketMirroringRule) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public PatchPacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchPacketMirroringRule) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public PatchPacketMirroringRule setUserIp(java.lang.String userIp) { + return (PatchPacketMirroringRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -121838,7 +121274,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public PatchPacketMirroringRule setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -121848,24 +121284,40 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the network to delete. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.String firewallPolicy; - /** Name of the network to delete. + /** Name of the firewall policy to update. */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the network to delete. */ - public Delete setNetwork(java.lang.String network) { + /** Name of the firewall policy to update. */ + public PatchPacketMirroringRule setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.network = network; + this.firewallPolicy = firewallPolicy; + return this; + } + + /** The priority of the rule to patch. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to patch. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to patch. */ + public PatchPacketMirroringRule setPriority(java.lang.Integer priority) { + this.priority = priority; return this; } @@ -121913,142 +121365,135 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Delete setRequestId(java.lang.String requestId) { + public PatchPacketMirroringRule setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public PatchPacketMirroringRule set(String parameterName, Object value) { + return (PatchPacketMirroringRule) super.set(parameterName, value); } } /** - * Returns the specified network. + * Patches a rule of the specified priority. * - * Create a request for the method "networks.get". + * Create a request for the method "networkFirewallPolicies.patchRule". * * 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 PatchRule#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param network Name of the network to return. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @return the request */ - public Get get(java.lang.String project, java.lang.String network) throws java.io.IOException { - Get result = new Get(project, network); + public PatchRule patchRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule content) throws java.io.IOException { + PatchRule result = new PatchRule(project, firewallPolicy, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class PatchRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern NETWORK_PATTERN = + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the specified network. + * Patches a rule of the specified priority. * - * Create a request for the method "networks.get". + * Create a request for the method "networkFirewallPolicies.patchRule". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

+ * {@link + * PatchRule#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 network Name of the network to return. + * @param firewallPolicy Name of the firewall policy to update. + * @param content the {@link com.google.api.services.compute.model.FirewallPolicyRule} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String network) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Network.class); + protected PatchRule(java.lang.String project, java.lang.String firewallPolicy, com.google.api.services.compute.model.FirewallPolicyRule 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy 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 PatchRule set$Xgafv(java.lang.String $Xgafv) { + return (PatchRule) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public PatchRule setAccessToken(java.lang.String accessToken) { + return (PatchRule) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public PatchRule setAlt(java.lang.String alt) { + return (PatchRule) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public PatchRule setCallback(java.lang.String callback) { + return (PatchRule) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public PatchRule setFields(java.lang.String fields) { + return (PatchRule) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public PatchRule setKey(java.lang.String key) { + return (PatchRule) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public PatchRule setOauthToken(java.lang.String oauthToken) { + return (PatchRule) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchRule) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public PatchRule setQuotaUser(java.lang.String quotaUser) { + return (PatchRule) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public PatchRule setUploadType(java.lang.String uploadType) { + return (PatchRule) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchRule) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public PatchRule setUserIp(java.lang.String userIp) { + return (PatchRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -122062,7 +121507,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public PatchRule setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -122072,160 +121517,214 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the network to return. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.String firewallPolicy; - /** Name of the network to return. + /** Name of the firewall policy to update. */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the network to return. */ - public Get setNetwork(java.lang.String network) { + /** Name of the firewall policy to update. */ + public PatchRule setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.network = network; + this.firewallPolicy = firewallPolicy; return this; } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + /** The priority of the rule to patch. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to patch. + */ + public java.lang.Integer getPriority() { + return priority; } - } - /** - * Returns the effective firewalls on a given network. - * - * Create a request for the method "networks.getEffectiveFirewalls". - * + + /** The priority of the rule to patch. */ + public PatchRule setPriority(java.lang.Integer priority) { + this.priority = priority; + 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 PatchRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public PatchRule set(String parameterName, Object value) { + return (PatchRule) super.set(parameterName, value); + } + } + /** + * Removes an association for the specified firewall policy. + * + * Create a request for the method "networkFirewallPolicies.removeAssociation". + * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetEffectiveFirewalls#execute()} method to invoke the remote - * operation. + * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param network Name of the network for this request. + * @param firewallPolicy Name of the firewall policy to update. * @return the request */ - public GetEffectiveFirewalls getEffectiveFirewalls(java.lang.String project, java.lang.String network) throws java.io.IOException { - GetEffectiveFirewalls result = new GetEffectiveFirewalls(project, network); + public RemoveAssociation removeAssociation(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + RemoveAssociation result = new RemoveAssociation(project, firewallPolicy); initialize(result); return result; } - public class GetEffectiveFirewalls extends ComputeRequest { + public class RemoveAssociation extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/getEffectiveFirewalls"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern NETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns the effective firewalls on a given network. + * Removes an association for the specified firewall policy. * - * Create a request for the method "networks.getEffectiveFirewalls". + * Create a request for the method "networkFirewallPolicies.removeAssociation". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetEffectiveFirewalls#execute()} method to invoke the remote - * operation.

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

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

* * @param project Project ID for this request. - * @param network Name of the network for this request. + * @param firewallPolicy Name of the firewall policy to update. * @since 1.13 */ - protected GetEffectiveFirewalls(java.lang.String project, java.lang.String network) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworksGetEffectiveFirewallsResponse.class); + protected RemoveAssociation(java.lang.String project, java.lang.String firewallPolicy) { + 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + this.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy 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 GetEffectiveFirewalls set$Xgafv(java.lang.String $Xgafv) { - return (GetEffectiveFirewalls) super.set$Xgafv($Xgafv); + public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { + return (RemoveAssociation) super.set$Xgafv($Xgafv); } @Override - public GetEffectiveFirewalls setAccessToken(java.lang.String accessToken) { - return (GetEffectiveFirewalls) super.setAccessToken(accessToken); + public RemoveAssociation setAccessToken(java.lang.String accessToken) { + return (RemoveAssociation) super.setAccessToken(accessToken); } @Override - public GetEffectiveFirewalls setAlt(java.lang.String alt) { - return (GetEffectiveFirewalls) super.setAlt(alt); + public RemoveAssociation setAlt(java.lang.String alt) { + return (RemoveAssociation) super.setAlt(alt); } @Override - public GetEffectiveFirewalls setCallback(java.lang.String callback) { - return (GetEffectiveFirewalls) super.setCallback(callback); + public RemoveAssociation setCallback(java.lang.String callback) { + return (RemoveAssociation) super.setCallback(callback); } @Override - public GetEffectiveFirewalls setFields(java.lang.String fields) { - return (GetEffectiveFirewalls) super.setFields(fields); + public RemoveAssociation setFields(java.lang.String fields) { + return (RemoveAssociation) super.setFields(fields); } @Override - public GetEffectiveFirewalls setKey(java.lang.String key) { - return (GetEffectiveFirewalls) super.setKey(key); + public RemoveAssociation setKey(java.lang.String key) { + return (RemoveAssociation) super.setKey(key); } @Override - public GetEffectiveFirewalls setOauthToken(java.lang.String oauthToken) { - return (GetEffectiveFirewalls) super.setOauthToken(oauthToken); + public RemoveAssociation setOauthToken(java.lang.String oauthToken) { + return (RemoveAssociation) super.setOauthToken(oauthToken); } @Override - public GetEffectiveFirewalls setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetEffectiveFirewalls) super.setPrettyPrint(prettyPrint); + public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveAssociation) super.setPrettyPrint(prettyPrint); } @Override - public GetEffectiveFirewalls setQuotaUser(java.lang.String quotaUser) { - return (GetEffectiveFirewalls) super.setQuotaUser(quotaUser); + public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { + return (RemoveAssociation) super.setQuotaUser(quotaUser); } @Override - public GetEffectiveFirewalls setUploadType(java.lang.String uploadType) { - return (GetEffectiveFirewalls) super.setUploadType(uploadType); + public RemoveAssociation setUploadType(java.lang.String uploadType) { + return (RemoveAssociation) super.setUploadType(uploadType); } @Override - public GetEffectiveFirewalls setUploadProtocol(java.lang.String uploadProtocol) { - return (GetEffectiveFirewalls) super.setUploadProtocol(uploadProtocol); + public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public GetEffectiveFirewalls setUserIp(java.lang.String userIp) { - return (GetEffectiveFirewalls) super.setUserIp(userIp); + public RemoveAssociation setUserIp(java.lang.String userIp) { + return (RemoveAssociation) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -122239,7 +121738,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetEffectiveFirewalls setProject(java.lang.String project) { + public RemoveAssociation setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -122249,139 +121748,215 @@ public GetEffectiveFirewalls setProject(java.lang.String project) { return this; } - /** Name of the network for this request. */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.String firewallPolicy; - /** Name of the network for this request. + /** Name of the firewall policy to update. */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** Name of the network for this request. */ - public GetEffectiveFirewalls setNetwork(java.lang.String network) { + /** Name of the firewall policy to update. */ + public RemoveAssociation setFirewallPolicy(java.lang.String firewallPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.network = network; + this.firewallPolicy = firewallPolicy; + return this; + } + + /** Name for the attachment that will be removed. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Name for the attachment that will be removed. + */ + public java.lang.String getName() { + return name; + } + + /** Name for the attachment that will be removed. */ + public RemoveAssociation setName(java.lang.String name) { + this.name = name; + 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 RemoveAssociation setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetEffectiveFirewalls set(String parameterName, Object value) { - return (GetEffectiveFirewalls) super.set(parameterName, value); + public RemoveAssociation set(String parameterName, Object value) { + return (RemoveAssociation) super.set(parameterName, value); } } /** - * Creates a network in the specified project using the data included in the request. + * Deletes a packet mirroring rule of the specified priority. * - * Create a request for the method "networks.insert". + * Create a request for the method "networkFirewallPolicies.removePacketMirroringRule". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link RemovePacketMirroringRule#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.Network} + * @param firewallPolicy Name of the firewall policy to update. * @return the request */ - public Insert insert(java.lang.String project, com.google.api.services.compute.model.Network content) throws java.io.IOException { - Insert result = new Insert(project, content); + public RemovePacketMirroringRule removePacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + RemovePacketMirroringRule result = new RemovePacketMirroringRule(project, firewallPolicy); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class RemovePacketMirroringRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removePacketMirroringRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Creates a network in the specified project using the data included in the request. + * Deletes a packet mirroring rule of the specified priority. * - * Create a request for the method "networks.insert". + * Create a request for the method "networkFirewallPolicies.removePacketMirroringRule". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.Network} + * @param firewallPolicy Name of the firewall policy to update. * @since 1.13 */ - protected Insert(java.lang.String project, com.google.api.services.compute.model.Network content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected RemovePacketMirroringRule(java.lang.String project, java.lang.String firewallPolicy) { + 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.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public RemovePacketMirroringRule set$Xgafv(java.lang.String $Xgafv) { + return (RemovePacketMirroringRule) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public RemovePacketMirroringRule setAccessToken(java.lang.String accessToken) { + return (RemovePacketMirroringRule) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public RemovePacketMirroringRule setAlt(java.lang.String alt) { + return (RemovePacketMirroringRule) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public RemovePacketMirroringRule setCallback(java.lang.String callback) { + return (RemovePacketMirroringRule) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public RemovePacketMirroringRule setFields(java.lang.String fields) { + return (RemovePacketMirroringRule) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public RemovePacketMirroringRule setKey(java.lang.String key) { + return (RemovePacketMirroringRule) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public RemovePacketMirroringRule setOauthToken(java.lang.String oauthToken) { + return (RemovePacketMirroringRule) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public RemovePacketMirroringRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemovePacketMirroringRule) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public RemovePacketMirroringRule setQuotaUser(java.lang.String quotaUser) { + return (RemovePacketMirroringRule) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public RemovePacketMirroringRule setUploadType(java.lang.String uploadType) { + return (RemovePacketMirroringRule) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public RemovePacketMirroringRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemovePacketMirroringRule) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public RemovePacketMirroringRule setUserIp(java.lang.String userIp) { + return (RemovePacketMirroringRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -122395,7 +121970,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public RemovePacketMirroringRule setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -122405,6 +121980,43 @@ public Insert setProject(java.lang.String project) { return this; } + /** Name of the firewall policy to update. */ + @com.google.api.client.util.Key + private java.lang.String firewallPolicy; + + /** Name of the firewall policy to update. + */ + public java.lang.String getFirewallPolicy() { + return firewallPolicy; + } + + /** Name of the firewall policy to update. */ + public RemovePacketMirroringRule setFirewallPolicy(java.lang.String firewallPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.firewallPolicy = firewallPolicy; + return this; + } + + /** The priority of the rule to remove from the firewall policy. */ + @com.google.api.client.util.Key + private java.lang.Integer priority; + + /** The priority of the rule to remove from the firewall policy. + */ + public java.lang.Integer getPriority() { + return priority; + } + + /** The priority of the rule to remove from the firewall policy. */ + public RemovePacketMirroringRule setPriority(java.lang.Integer priority) { + this.priority = priority; + 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 @@ -122449,131 +122061,133 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Insert setRequestId(java.lang.String requestId) { + public RemovePacketMirroringRule setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public RemovePacketMirroringRule set(String parameterName, Object value) { + return (RemovePacketMirroringRule) super.set(parameterName, value); } } /** - * Retrieves the list of networks available to the specified project. + * Deletes a rule of the specified priority. * - * Create a request for the method "networks.list". + * Create a request for the method "networkFirewallPolicies.removeRule". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param firewallPolicy Name of the firewall policy to update. * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + public RemoveRule removeRule(java.lang.String project, java.lang.String firewallPolicy) throws java.io.IOException { + RemoveRule result = new RemoveRule(project, firewallPolicy); initialize(result); return result; } - public class List extends ComputeRequest { + public class RemoveRule extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{firewallPolicy}/removeRule"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern FIREWALL_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Retrieves the list of networks available to the specified project. + * Deletes a rule of the specified priority. * - * Create a request for the method "networks.list". + * Create a request for the method "networkFirewallPolicies.removeRule". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

+ * {@link + * RemoveRule#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 firewallPolicy Name of the firewall policy to update. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkList.class); + protected RemoveRule(java.lang.String project, java.lang.String firewallPolicy) { + 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.firewallPolicy = com.google.api.client.util.Preconditions.checkNotNull(firewallPolicy, "Required parameter firewallPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public RemoveRule set$Xgafv(java.lang.String $Xgafv) { + return (RemoveRule) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public RemoveRule setAccessToken(java.lang.String accessToken) { + return (RemoveRule) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public RemoveRule setAlt(java.lang.String alt) { + return (RemoveRule) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public RemoveRule setCallback(java.lang.String callback) { + return (RemoveRule) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public RemoveRule setFields(java.lang.String fields) { + return (RemoveRule) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public RemoveRule setKey(java.lang.String key) { + return (RemoveRule) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public RemoveRule setOauthToken(java.lang.String oauthToken) { + return (RemoveRule) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveRule) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public RemoveRule setQuotaUser(java.lang.String quotaUser) { + return (RemoveRule) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public RemoveRule setUploadType(java.lang.String uploadType) { + return (RemoveRule) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveRule) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public RemoveRule setUserIp(java.lang.String userIp) { + return (RemoveRule) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -122587,7 +122201,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public RemoveRule setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -122597,402 +122211,384 @@ public List setProject(java.lang.String project) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ + /** Name of the firewall policy to update. */ @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. - - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + private java.lang.String firewallPolicy; - You cannot combine constraints on multiple fields using regular expressions. + /** Name of the firewall policy to update. */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getFirewallPolicy() { + return firewallPolicy; } - /** - * 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; + /** Name of the firewall policy to update. */ + public RemoveRule setFirewallPolicy(java.lang.String firewallPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(FIREWALL_POLICY_PATTERN.matcher(firewallPolicy).matches(), + "Parameter firewallPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.firewallPolicy = firewallPolicy; 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`) - */ + /** The priority of the rule to remove from the firewall policy. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.Integer priority; - /** 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] + /** The priority of the rule to remove from the firewall policy. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.Integer getPriority() { + return priority; } - /** - * 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; + /** The priority of the rule to remove from the firewall policy. */ + public RemoveRule setPriority(java.lang.Integer priority) { + this.priority = priority; return this; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; + private java.lang.String requestId; - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getRequestId() { + return requestId; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; + public RemoveRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } + @Override + public RemoveRule set(String parameterName, Object value) { + return (RemoveRule) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "networkFirewallPolicies.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{resource}/setIamPolicy"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "networkFirewallPolicies.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetPolicyRequest} + * @since 1.13 */ + protected SetIamPolicy(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } + + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } + + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } + + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } + + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); + } + + /** Project ID for this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String project; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Project ID for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getProject() { + return project; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** Project ID for this request. */ + public SetIamPolicy setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; return this; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String resource; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Name or id of the resource for this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getResource() { + return resource; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } } /** - * Lists the internal IP addresses in the specified network. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "networks.listIpAddresses". + * Create a request for the method "networkFirewallPolicies.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListIpAddresses#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param network Name of the network for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public ListIpAddresses listIpAddresses(java.lang.String project, java.lang.String network) throws java.io.IOException { - ListIpAddresses result = new ListIpAddresses(project, network); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); initialize(result); return result; } - public class ListIpAddresses extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/listIpAddresses"; + private static final String REST_PATH = "projects/{project}/global/firewallPolicies/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern NETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Lists the internal IP addresses in the specified network. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "networks.listIpAddresses". + * Create a request for the method "networkFirewallPolicies.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListIpAddresses#execute()} method to invoke the remote operation. - *

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

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

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

* * @param project Project ID for this request. - * @param network Name of the network for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected ListIpAddresses(java.lang.String project, java.lang.String network) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.IpAddressesList.class); + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public ListIpAddresses set$Xgafv(java.lang.String $Xgafv) { - return (ListIpAddresses) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public ListIpAddresses setAccessToken(java.lang.String accessToken) { - return (ListIpAddresses) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public ListIpAddresses setAlt(java.lang.String alt) { - return (ListIpAddresses) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public ListIpAddresses setCallback(java.lang.String callback) { - return (ListIpAddresses) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public ListIpAddresses setFields(java.lang.String fields) { - return (ListIpAddresses) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public ListIpAddresses setKey(java.lang.String key) { - return (ListIpAddresses) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public ListIpAddresses setOauthToken(java.lang.String oauthToken) { - return (ListIpAddresses) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public ListIpAddresses setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListIpAddresses) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public ListIpAddresses setQuotaUser(java.lang.String quotaUser) { - return (ListIpAddresses) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public ListIpAddresses setUploadType(java.lang.String uploadType) { - return (ListIpAddresses) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public ListIpAddresses setUploadProtocol(java.lang.String uploadProtocol) { - return (ListIpAddresses) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public ListIpAddresses setUserIp(java.lang.String userIp) { - return (ListIpAddresses) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -123006,7 +122602,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListIpAddresses setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -123016,24 +122612,365 @@ public ListIpAddresses setProject(java.lang.String project) { return this; } - /** Name of the network for this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String network; + private java.lang.String resource; - /** Name of the network for this request. + /** Name or id of the resource for this request. */ - public java.lang.String getNetwork() { - return network; + public java.lang.String getResource() { + return resource; } - /** Name of the network for this request. */ - public ListIpAddresses setNetwork(java.lang.String network) { + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the NetworkProfiles collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.NetworkProfiles.List request = compute.networkProfiles().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public NetworkProfiles networkProfiles() { + return new NetworkProfiles(); + } + + /** + * The "networkProfiles" collection of methods. + */ + public class NetworkProfiles { + + /** + * Returns the specified network profile. + * + * Create a request for the method "networkProfiles.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 networkProfile Name of the network profile to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String networkProfile) throws java.io.IOException { + Get result = new Get(project, networkProfile); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networkProfiles/{networkProfile}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern NETWORK_PROFILE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the specified network profile. + * + * Create a request for the method "networkProfiles.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param networkProfile Name of the network profile to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String networkProfile) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkProfile.class); + this.project = com.google.api.client.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.networkProfile = com.google.api.client.util.Preconditions.checkNotNull(networkProfile, "Required parameter networkProfile must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PROFILE_PATTERN.matcher(networkProfile).matches(), + "Parameter networkProfile must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.network = network; + } + + @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 network profile to return. */ + @com.google.api.client.util.Key + private java.lang.String networkProfile; + + /** Name of the network profile to return. + */ + public java.lang.String getNetworkProfile() { + return networkProfile; + } + + /** Name of the network profile to return. */ + public Get setNetworkProfile(java.lang.String networkProfile) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PROFILE_PATTERN.matcher(networkProfile).matches(), + "Parameter networkProfile must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.networkProfile = networkProfile; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves a list of network profiles available to the specified project. + * + * Create a request for the method "networkProfiles.list". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networkProfiles"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + /** + * Retrieves a list of network profiles available to the specified project. + * + * Create a request for the method "networkProfiles.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkProfilesListResponse.class); + this.project = com.google.api.client.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; } @@ -123168,7 +123105,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public ListIpAddresses setFilter(java.lang.String filter) { + public List setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -123197,7 +123134,7 @@ public java.lang.Long getMaxResults() { * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public ListIpAddresses setMaxResults(java.lang.Long maxResults) { + public List setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -123241,7 +123178,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public ListIpAddresses setOrderBy(java.lang.String orderBy) { + public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -123264,7 +123201,7 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public ListIpAddresses setPageToken(java.lang.String pageToken) { + public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -123296,62 +123233,61 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public ListIpAddresses setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } - /** - * (Optional) types filter separate by comma, valid values are: SUBNETWORK, RESERVED, - * PEER_USED, PEER_RESERVED, REMOTE_USED, REMOTE_RESERVED. - */ - @com.google.api.client.util.Key - private java.lang.String types; + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } - /**( Optional) types filter separate by comma, valid values are: SUBNETWORK, RESERVED, PEER_USED, - ( PEER_RESERVED, REMOTE_USED, REMOTE_RESERVED. - ( + } - */ - public java.lang.String getTypes() { - return types; - } + /** + * An accessor for creating requests from the Networks collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.Networks.List request = compute.networks().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Networks networks() { + return new Networks(); + } - /** - * (Optional) types filter separate by comma, valid values are: SUBNETWORK, RESERVED, - * PEER_USED, PEER_RESERVED, REMOTE_USED, REMOTE_RESERVED. - */ - public ListIpAddresses setTypes(java.lang.String types) { - this.types = types; - return this; - } + /** + * The "networks" collection of methods. + */ + public class Networks { - @Override - public ListIpAddresses set(String parameterName, Object value) { - return (ListIpAddresses) super.set(parameterName, value); - } - } /** - * Lists the internal IP owners in the specified network. + * Adds a peering to the specified network. * - * Create a request for the method "networks.listIpOwners". + * Create a request for the method "networks.addPeering". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListIpOwners#execute()} method to invoke the remote operation. + * parameters, call the {@link AddPeering#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param network Name of the network to return. + * @param network Name of the network resource to add peering to. + * @param content the {@link com.google.api.services.compute.model.NetworksAddPeeringRequest} * @return the request */ - public ListIpOwners listIpOwners(java.lang.String project, java.lang.String network) throws java.io.IOException { - ListIpOwners result = new ListIpOwners(project, network); + public AddPeering addPeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksAddPeeringRequest content) throws java.io.IOException { + AddPeering result = new AddPeering(project, network, content); initialize(result); return result; } - public class ListIpOwners extends ComputeRequest { + public class AddPeering extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/listIpOwners"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/addPeering"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -123359,29 +123295,24 @@ public class ListIpOwners extends ComputeRequest + * parameters, call the {@link AddPeering#execute()} method to invoke the remote operation.

* {@link - * ListIpOwners#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * AddPeering#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 network Name of the network to return. + * @param network Name of the network resource to add peering to. + * @param content the {@link com.google.api.services.compute.model.NetworksAddPeeringRequest} * @since 1.13 */ - protected ListIpOwners(java.lang.String project, java.lang.String network) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.IpOwnerList.class); + protected AddPeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksAddPeeringRequest 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(), @@ -123397,78 +123328,68 @@ protected ListIpOwners(java.lang.String project, java.lang.String network) { } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public AddPeering set$Xgafv(java.lang.String $Xgafv) { + return (AddPeering) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public AddPeering setAccessToken(java.lang.String accessToken) { + return (AddPeering) super.setAccessToken(accessToken); } @Override - public ListIpOwners set$Xgafv(java.lang.String $Xgafv) { - return (ListIpOwners) super.set$Xgafv($Xgafv); + public AddPeering setAlt(java.lang.String alt) { + return (AddPeering) super.setAlt(alt); } @Override - public ListIpOwners setAccessToken(java.lang.String accessToken) { - return (ListIpOwners) super.setAccessToken(accessToken); + public AddPeering setCallback(java.lang.String callback) { + return (AddPeering) super.setCallback(callback); } @Override - public ListIpOwners setAlt(java.lang.String alt) { - return (ListIpOwners) super.setAlt(alt); + public AddPeering setFields(java.lang.String fields) { + return (AddPeering) super.setFields(fields); } @Override - public ListIpOwners setCallback(java.lang.String callback) { - return (ListIpOwners) super.setCallback(callback); + public AddPeering setKey(java.lang.String key) { + return (AddPeering) super.setKey(key); } @Override - public ListIpOwners setFields(java.lang.String fields) { - return (ListIpOwners) super.setFields(fields); + public AddPeering setOauthToken(java.lang.String oauthToken) { + return (AddPeering) super.setOauthToken(oauthToken); } @Override - public ListIpOwners setKey(java.lang.String key) { - return (ListIpOwners) super.setKey(key); + public AddPeering setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddPeering) super.setPrettyPrint(prettyPrint); } @Override - public ListIpOwners setOauthToken(java.lang.String oauthToken) { - return (ListIpOwners) super.setOauthToken(oauthToken); + public AddPeering setQuotaUser(java.lang.String quotaUser) { + return (AddPeering) super.setQuotaUser(quotaUser); } @Override - public ListIpOwners setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListIpOwners) super.setPrettyPrint(prettyPrint); + public AddPeering setUploadType(java.lang.String uploadType) { + return (AddPeering) super.setUploadType(uploadType); } @Override - public ListIpOwners setQuotaUser(java.lang.String quotaUser) { - return (ListIpOwners) super.setQuotaUser(quotaUser); + public AddPeering setUploadProtocol(java.lang.String uploadProtocol) { + return (AddPeering) super.setUploadProtocol(uploadProtocol); } @Override - public ListIpOwners setUploadType(java.lang.String uploadType) { - return (ListIpOwners) super.setUploadType(uploadType); + public AddPeering setUserIp(java.lang.String userIp) { + return (AddPeering) super.setUserIp(userIp); } - @Override - public ListIpOwners setUploadProtocol(java.lang.String uploadProtocol) { - return (ListIpOwners) super.setUploadProtocol(uploadProtocol); - } - - @Override - public ListIpOwners setUserIp(java.lang.String userIp) { - return (ListIpOwners) super.setUserIp(userIp); - } - - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; /** Project ID for this request. */ @@ -123477,7 +123398,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListIpOwners setProject(java.lang.String project) { + public AddPeering setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -123487,18 +123408,18 @@ public ListIpOwners setProject(java.lang.String project) { return this; } - /** Name of the network to return. */ + /** Name of the network resource to add peering to. */ @com.google.api.client.util.Key private java.lang.String network; - /** Name of the network to return. + /** Name of the network resource to add peering to. */ public java.lang.String getNetwork() { return network; } - /** Name of the network to return. */ - public ListIpOwners setNetwork(java.lang.String network) { + /** Name of the network resource to add peering to. */ + public AddPeering setNetwork(java.lang.String network) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), "Parameter network must conform to the pattern " + @@ -123509,419 +123430,111 @@ public ListIpOwners setNetwork(java.lang.String network) { } /** - * 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 ListIpOwners setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** (Optional) IP CIDR range filter, example: "10.128.10.0/30". */ - @com.google.api.client.util.Key - private java.lang.String ipCidrRange; - - /**( Optional) IP CIDR range filter, example: "10.128.10.0/30". - ( - - */ - public java.lang.String getIpCidrRange() { - return ipCidrRange; - } - - /** (Optional) IP CIDR range filter, example: "10.128.10.0/30". */ - public ListIpOwners setIpCidrRange(java.lang.String ipCidrRange) { - this.ipCidrRange = ipCidrRange; - 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 ListIpOwners 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. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public ListIpOwners setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** (Optional) Project IDs filter, example: "project-1,project-2". */ - @com.google.api.client.util.Key - private java.lang.String ownerProjects; - - /**( Optional) Project IDs filter, example: "project-1,project-2". - ( - + * 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 getOwnerProjects() { - return ownerProjects; - } - - /** (Optional) Project IDs filter, example: "project-1,project-2". */ - public ListIpOwners setOwnerProjects(java.lang.String ownerProjects) { - this.ownerProjects = ownerProjects; - return this; - } - - /** (Optional) Owner types filter, example: "instance,forwardingRule". */ @com.google.api.client.util.Key - private java.lang.String ownerTypes; - - /**( Optional) Owner types filter, example: "instance,forwardingRule". - ( - - */ - public java.lang.String getOwnerTypes() { - return ownerTypes; - } - - /** (Optional) Owner types filter, example: "instance,forwardingRule". */ - public ListIpOwners setOwnerTypes(java.lang.String ownerTypes) { - this.ownerTypes = ownerTypes; - return this; - } + private java.lang.String requestId; - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. - */ - public java.lang.String getPageToken() { - return pageToken; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public ListIpOwners setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public ListIpOwners setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - /** (Optional) Subnetwork name filter. */ - @com.google.api.client.util.Key - private java.lang.String subnetName; - - /**( Optional) Subnetwork name filter. - ( - - */ - public java.lang.String getSubnetName() { - return subnetName; - } - - /** (Optional) Subnetwork name filter. */ - public ListIpOwners setSubnetName(java.lang.String subnetName) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SUBNET_NAME_PATTERN.matcher(subnetName).matches(), - "Parameter subnetName must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.subnetName = subnetName; - return this; - } - - /** (Optional) Subnetwork region filter. */ - @com.google.api.client.util.Key - private java.lang.String subnetRegion; - - /**( Optional) Subnetwork region filter. - ( - + * 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 getSubnetRegion() { - return subnetRegion; - } - - /** (Optional) Subnetwork region filter. */ - public ListIpOwners setSubnetRegion(java.lang.String subnetRegion) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SUBNET_REGION_PATTERN.matcher(subnetRegion).matches(), - "Parameter subnetRegion must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.subnetRegion = subnetRegion; + public AddPeering setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public ListIpOwners set(String parameterName, Object value) { - return (ListIpOwners) super.set(parameterName, value); + public AddPeering set(String parameterName, Object value) { + return (AddPeering) super.set(parameterName, value); } } /** - * Lists the peering routes exchanged over peering connection. + * Cancel requests to remove a peering from the specified network. Applicable only for + * PeeringConnection with update_strategy=CONSENSUS. Cancels a request to remove a peering from the + * specified network. * - * Create a request for the method "networks.listPeeringRoutes". + * Create a request for the method "networks.cancelRequestRemovePeering". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListPeeringRoutes#execute()} method to invoke the remote operation. + * parameters, call the {@link CancelRequestRemovePeering#execute()} method to invoke the remote + * operation. * * @param project Project ID for this request. - * @param network Name of the network for this request. + * @param network Name of the network resource to remove peering from. + * @param content the {@link com.google.api.services.compute.model.NetworksCancelRequestRemovePeeringRequest} * @return the request */ - public ListPeeringRoutes listPeeringRoutes(java.lang.String project, java.lang.String network) throws java.io.IOException { - ListPeeringRoutes result = new ListPeeringRoutes(project, network); + public CancelRequestRemovePeering cancelRequestRemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksCancelRequestRemovePeeringRequest content) throws java.io.IOException { + CancelRequestRemovePeering result = new CancelRequestRemovePeering(project, network, content); initialize(result); return result; } - public class ListPeeringRoutes extends ComputeRequest { + public class CancelRequestRemovePeering extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/listPeeringRoutes"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/cancelRequestRemovePeering"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); private final java.util.regex.Pattern NETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Lists the peering routes exchanged over peering connection. + * Cancel requests to remove a peering from the specified network. Applicable only for + * PeeringConnection with update_strategy=CONSENSUS. Cancels a request to remove a peering from + * the specified network. * - * Create a request for the method "networks.listPeeringRoutes". + * Create a request for the method "networks.cancelRequestRemovePeering". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListPeeringRoutes#execute()} method to invoke the remote operation. - *

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

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

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

* * @param project Project ID for this request. - * @param network Name of the network for this request. + * @param network Name of the network resource to remove peering from. + * @param content the {@link com.google.api.services.compute.model.NetworksCancelRequestRemovePeeringRequest} * @since 1.13 */ - protected ListPeeringRoutes(java.lang.String project, java.lang.String network) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ExchangedPeeringRoutesList.class); + protected CancelRequestRemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksCancelRequestRemovePeeringRequest 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(), @@ -123932,78 +123545,68 @@ protected ListPeeringRoutes(java.lang.String project, java.lang.String network) if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + "[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 ListPeeringRoutes set$Xgafv(java.lang.String $Xgafv) { - return (ListPeeringRoutes) super.set$Xgafv($Xgafv); + public CancelRequestRemovePeering set$Xgafv(java.lang.String $Xgafv) { + return (CancelRequestRemovePeering) super.set$Xgafv($Xgafv); } @Override - public ListPeeringRoutes setAccessToken(java.lang.String accessToken) { - return (ListPeeringRoutes) super.setAccessToken(accessToken); + public CancelRequestRemovePeering setAccessToken(java.lang.String accessToken) { + return (CancelRequestRemovePeering) super.setAccessToken(accessToken); } @Override - public ListPeeringRoutes setAlt(java.lang.String alt) { - return (ListPeeringRoutes) super.setAlt(alt); + public CancelRequestRemovePeering setAlt(java.lang.String alt) { + return (CancelRequestRemovePeering) super.setAlt(alt); } @Override - public ListPeeringRoutes setCallback(java.lang.String callback) { - return (ListPeeringRoutes) super.setCallback(callback); + public CancelRequestRemovePeering setCallback(java.lang.String callback) { + return (CancelRequestRemovePeering) super.setCallback(callback); } @Override - public ListPeeringRoutes setFields(java.lang.String fields) { - return (ListPeeringRoutes) super.setFields(fields); + public CancelRequestRemovePeering setFields(java.lang.String fields) { + return (CancelRequestRemovePeering) super.setFields(fields); } @Override - public ListPeeringRoutes setKey(java.lang.String key) { - return (ListPeeringRoutes) super.setKey(key); + public CancelRequestRemovePeering setKey(java.lang.String key) { + return (CancelRequestRemovePeering) super.setKey(key); } @Override - public ListPeeringRoutes setOauthToken(java.lang.String oauthToken) { - return (ListPeeringRoutes) super.setOauthToken(oauthToken); + public CancelRequestRemovePeering setOauthToken(java.lang.String oauthToken) { + return (CancelRequestRemovePeering) super.setOauthToken(oauthToken); } @Override - public ListPeeringRoutes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListPeeringRoutes) super.setPrettyPrint(prettyPrint); + public CancelRequestRemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CancelRequestRemovePeering) super.setPrettyPrint(prettyPrint); } @Override - public ListPeeringRoutes setQuotaUser(java.lang.String quotaUser) { - return (ListPeeringRoutes) super.setQuotaUser(quotaUser); + public CancelRequestRemovePeering setQuotaUser(java.lang.String quotaUser) { + return (CancelRequestRemovePeering) super.setQuotaUser(quotaUser); } @Override - public ListPeeringRoutes setUploadType(java.lang.String uploadType) { - return (ListPeeringRoutes) super.setUploadType(uploadType); + public CancelRequestRemovePeering setUploadType(java.lang.String uploadType) { + return (CancelRequestRemovePeering) super.setUploadType(uploadType); } @Override - public ListPeeringRoutes setUploadProtocol(java.lang.String uploadProtocol) { - return (ListPeeringRoutes) super.setUploadProtocol(uploadProtocol); + public CancelRequestRemovePeering setUploadProtocol(java.lang.String uploadProtocol) { + return (CancelRequestRemovePeering) super.setUploadProtocol(uploadProtocol); } @Override - public ListPeeringRoutes setUserIp(java.lang.String userIp) { - return (ListPeeringRoutes) super.setUserIp(userIp); + public CancelRequestRemovePeering setUserIp(java.lang.String userIp) { + return (CancelRequestRemovePeering) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -124017,7 +123620,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListPeeringRoutes setProject(java.lang.String project) { + public CancelRequestRemovePeering setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -124027,372 +123630,100 @@ public ListPeeringRoutes setProject(java.lang.String project) { return this; } - /** Name of the network for this request. */ + /** Name of the network resource to remove peering from. */ @com.google.api.client.util.Key private java.lang.String network; - /** Name of the network for this request. + /** Name of the network resource to remove peering from. */ public java.lang.String getNetwork() { return network; } - /** Name of the network for this request. */ - public ListPeeringRoutes setNetwork(java.lang.String network) { - if (!getSuppressPatternChecks()) { + /** Name of the network resource to remove peering from. */ + public CancelRequestRemovePeering setNetwork(java.lang.String network) { + if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } this.network = network; return this; } - /** The direction of the exchanged routes. */ - @com.google.api.client.util.Key - private java.lang.String direction; - - /** The direction of the exchanged routes. - */ - public java.lang.String getDirection() { - return direction; - } - - /** The direction of the exchanged routes. */ - public ListPeeringRoutes setDirection(java.lang.String direction) { - this.direction = direction; - 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 ListPeeringRoutes 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 ListPeeringRoutes 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. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public ListPeeringRoutes 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. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public ListPeeringRoutes setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** The response will show routes exchanged over the given peering connection. */ @com.google.api.client.util.Key - private java.lang.String peeringName; - - /** The response will show routes exchanged over the given peering connection. - */ - public java.lang.String getPeeringName() { - return peeringName; - } - - /** The response will show routes exchanged over the given peering connection. */ - public ListPeeringRoutes setPeeringName(java.lang.String peeringName) { - this.peeringName = peeringName; - return this; - } + private java.lang.String requestId; - /** - * The region of the request. The response will include all subnet routes, static routes and - * dynamic routes in the region. - */ - @com.google.api.client.util.Key - private java.lang.String region; + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - /** The region of the request. The response will include all subnet routes, static routes and dynamic - routes in the region. - */ - public java.lang.String getRegion() { - return region; - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * The region of the request. The response will include all subnet routes, static routes and - * dynamic routes in the region. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public ListPeeringRoutes setRegion(java.lang.String region) { - this.region = region; - return this; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. - - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public ListPeeringRoutes setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public CancelRequestRemovePeering setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public ListPeeringRoutes set(String parameterName, Object value) { - return (ListPeeringRoutes) super.set(parameterName, value); + public CancelRequestRemovePeering set(String parameterName, Object value) { + return (CancelRequestRemovePeering) super.set(parameterName, value); } } /** - * Patches the specified network with the data included in the request. Only routingConfig can be - * modified. + * Deletes the specified network. * - * Create a request for the method "networks.patch". + * Create a request for the method "networks.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param network Name of the network to update. - * @param content the {@link com.google.api.services.compute.model.Network} + * @param network Name of the network to delete. * @return the request */ - public Patch patch(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.Network content) throws java.io.IOException { - Patch result = new Patch(project, network, content); + public Delete delete(java.lang.String project, java.lang.String network) throws java.io.IOException { + Delete result = new Delete(project, network); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class Delete extends ComputeRequest { private static final String REST_PATH = "projects/{project}/global/networks/{network}"; @@ -124403,23 +123734,21 @@ public class Patch extends ComputeRequest {@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

* * @param project Project ID for this request. - * @param network Name of the network to update. - * @param content the {@link com.google.api.services.compute.model.Network} + * @param network Name of the network to delete. * @since 1.13 */ - protected Patch(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.Network content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Delete(java.lang.String project, java.lang.String network) { + 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(), @@ -124435,63 +123764,63 @@ protected Patch(java.lang.String project, java.lang.String network, com.google.a } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -124505,7 +123834,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -124515,18 +123844,18 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the network to update. */ + /** Name of the network to delete. */ @com.google.api.client.util.Key private java.lang.String network; - /** Name of the network to update. + /** Name of the network to delete. */ public java.lang.String getNetwork() { return network; } - /** Name of the network to update. */ - public Patch setNetwork(java.lang.String network) { + /** Name of the network to delete. */ + public Delete setNetwork(java.lang.String network) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), "Parameter network must conform to the pattern " + @@ -124580,38 +123909,37 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Patch setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Removes a peering from the specified network. + * Returns the specified network. * - * Create a request for the method "networks.removePeering". + * Create a request for the method "networks.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemovePeering#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 network Name of the network resource to remove peering from. - * @param content the {@link com.google.api.services.compute.model.NetworksRemovePeeringRequest} + * @param network Name of the network to return. * @return the request */ - public RemovePeering removePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksRemovePeeringRequest content) throws java.io.IOException { - RemovePeering result = new RemovePeering(project, network, content); + public Get get(java.lang.String project, java.lang.String network) throws java.io.IOException { + Get result = new Get(project, network); initialize(result); return result; } - public class RemovePeering extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/removePeering"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -124620,23 +123948,21 @@ public class RemovePeering extends ComputeRequest - * {@link RemovePeering#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR - * equest)} must be called to initialize this instance immediately after invoking the constructor. - *

+ * parameters, call the {@link 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 network Name of the network resource to remove peering from. - * @param content the {@link com.google.api.services.compute.model.NetworksRemovePeeringRequest} + * @param network Name of the network to return. * @since 1.13 */ - protected RemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksRemovePeeringRequest 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 network) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Network.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -124652,63 +123978,73 @@ protected RemovePeering(java.lang.String project, java.lang.String network, com. } @Override - public RemovePeering set$Xgafv(java.lang.String $Xgafv) { - return (RemovePeering) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RemovePeering setAccessToken(java.lang.String accessToken) { - return (RemovePeering) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public RemovePeering setAlt(java.lang.String alt) { - return (RemovePeering) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public RemovePeering setCallback(java.lang.String callback) { - return (RemovePeering) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public RemovePeering setFields(java.lang.String fields) { - return (RemovePeering) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public RemovePeering setKey(java.lang.String key) { - return (RemovePeering) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public RemovePeering setOauthToken(java.lang.String oauthToken) { - return (RemovePeering) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public RemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemovePeering) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public RemovePeering setQuotaUser(java.lang.String quotaUser) { - return (RemovePeering) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public RemovePeering setUploadType(java.lang.String uploadType) { - return (RemovePeering) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public RemovePeering setUploadProtocol(java.lang.String uploadProtocol) { - return (RemovePeering) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public RemovePeering setUserIp(java.lang.String userIp) { - return (RemovePeering) 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. */ @@ -124722,7 +124058,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RemovePeering 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 " + @@ -124732,18 +124068,18 @@ public RemovePeering setProject(java.lang.String project) { return this; } - /** Name of the network resource to remove peering from. */ + /** Name of the network to return. */ @com.google.api.client.util.Key private java.lang.String network; - /** Name of the network resource to remove peering from. + /** Name of the network to return. */ public java.lang.String getNetwork() { return network; } - /** Name of the network resource to remove peering from. */ - public RemovePeering setNetwork(java.lang.String network) { + /** Name of the network to return. */ + public Get setNetwork(java.lang.String network) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), "Parameter network must conform to the pattern " + @@ -124753,110 +124089,57 @@ public RemovePeering setNetwork(java.lang.String network) { 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 RemovePeering setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - @Override - public RemovePeering set(String parameterName, Object value) { - return (RemovePeering) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Requests to remove a peering from the specified network. Applicable only for PeeringConnection - * with update_strategy=CONSENSUS. + * Returns the effective firewalls on a given network. * - * Create a request for the method "networks.requestRemovePeering". + * Create a request for the method "networks.getEffectiveFirewalls". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RequestRemovePeering#execute()} method to invoke the remote + * parameters, call the {@link GetEffectiveFirewalls#execute()} method to invoke the remote * operation. * * @param project Project ID for this request. - * @param network Name of the network resource to remove peering from. - * @param content the {@link com.google.api.services.compute.model.NetworksRequestRemovePeeringRequest} + * @param network Name of the network for this request. * @return the request */ - public RequestRemovePeering requestRemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksRequestRemovePeeringRequest content) throws java.io.IOException { - RequestRemovePeering result = new RequestRemovePeering(project, network, content); + public GetEffectiveFirewalls getEffectiveFirewalls(java.lang.String project, java.lang.String network) throws java.io.IOException { + GetEffectiveFirewalls result = new GetEffectiveFirewalls(project, network); initialize(result); return result; } - public class RequestRemovePeering extends ComputeRequest { + public class GetEffectiveFirewalls extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/requestRemovePeering"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/getEffectiveFirewalls"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); private final java.util.regex.Pattern NETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Requests to remove a peering from the specified network. Applicable only for PeeringConnection - * with update_strategy=CONSENSUS. + * Returns the effective firewalls on a given network. * - * Create a request for the method "networks.requestRemovePeering". + * Create a request for the method "networks.getEffectiveFirewalls". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RequestRemovePeering#execute()} method to invoke the remote - * operation.

{@link RequestRemovePeering#initialize(com.google.api.client.googleapis.services - * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * parameters, call the {@link GetEffectiveFirewalls#execute()} method to invoke the remote + * operation.

{@link GetEffectiveFirewalls#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 network Name of the network resource to remove peering from. - * @param content the {@link com.google.api.services.compute.model.NetworksRequestRemovePeeringRequest} + * @param network Name of the network for this request. * @since 1.13 */ - protected RequestRemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksRequestRemovePeeringRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected GetEffectiveFirewalls(java.lang.String project, java.lang.String network) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworksGetEffectiveFirewallsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -124867,68 +124150,78 @@ protected RequestRemovePeering(java.lang.String project, java.lang.String networ if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @Override - public RequestRemovePeering set$Xgafv(java.lang.String $Xgafv) { - return (RequestRemovePeering) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RequestRemovePeering setAccessToken(java.lang.String accessToken) { - return (RequestRemovePeering) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public RequestRemovePeering setAlt(java.lang.String alt) { - return (RequestRemovePeering) super.setAlt(alt); + public GetEffectiveFirewalls set$Xgafv(java.lang.String $Xgafv) { + return (GetEffectiveFirewalls) super.set$Xgafv($Xgafv); } @Override - public RequestRemovePeering setCallback(java.lang.String callback) { - return (RequestRemovePeering) super.setCallback(callback); + public GetEffectiveFirewalls setAccessToken(java.lang.String accessToken) { + return (GetEffectiveFirewalls) super.setAccessToken(accessToken); } @Override - public RequestRemovePeering setFields(java.lang.String fields) { - return (RequestRemovePeering) super.setFields(fields); + public GetEffectiveFirewalls setAlt(java.lang.String alt) { + return (GetEffectiveFirewalls) super.setAlt(alt); } @Override - public RequestRemovePeering setKey(java.lang.String key) { - return (RequestRemovePeering) super.setKey(key); + public GetEffectiveFirewalls setCallback(java.lang.String callback) { + return (GetEffectiveFirewalls) super.setCallback(callback); } @Override - public RequestRemovePeering setOauthToken(java.lang.String oauthToken) { - return (RequestRemovePeering) super.setOauthToken(oauthToken); + public GetEffectiveFirewalls setFields(java.lang.String fields) { + return (GetEffectiveFirewalls) super.setFields(fields); } @Override - public RequestRemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RequestRemovePeering) super.setPrettyPrint(prettyPrint); + public GetEffectiveFirewalls setKey(java.lang.String key) { + return (GetEffectiveFirewalls) super.setKey(key); } @Override - public RequestRemovePeering setQuotaUser(java.lang.String quotaUser) { - return (RequestRemovePeering) super.setQuotaUser(quotaUser); + public GetEffectiveFirewalls setOauthToken(java.lang.String oauthToken) { + return (GetEffectiveFirewalls) super.setOauthToken(oauthToken); } @Override - public RequestRemovePeering setUploadType(java.lang.String uploadType) { - return (RequestRemovePeering) super.setUploadType(uploadType); + public GetEffectiveFirewalls setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetEffectiveFirewalls) super.setPrettyPrint(prettyPrint); } @Override - public RequestRemovePeering setUploadProtocol(java.lang.String uploadProtocol) { - return (RequestRemovePeering) super.setUploadProtocol(uploadProtocol); + public GetEffectiveFirewalls setQuotaUser(java.lang.String quotaUser) { + return (GetEffectiveFirewalls) super.setQuotaUser(quotaUser); } @Override - public RequestRemovePeering setUserIp(java.lang.String userIp) { - return (RequestRemovePeering) super.setUserIp(userIp); + public GetEffectiveFirewalls setUploadType(java.lang.String uploadType) { + return (GetEffectiveFirewalls) super.setUploadType(uploadType); + } + + @Override + public GetEffectiveFirewalls setUploadProtocol(java.lang.String uploadProtocol) { + return (GetEffectiveFirewalls) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetEffectiveFirewalls setUserIp(java.lang.String userIp) { + return (GetEffectiveFirewalls) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -124942,7 +124235,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public RequestRemovePeering setProject(java.lang.String project) { + public GetEffectiveFirewalls setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -124952,198 +124245,139 @@ public RequestRemovePeering setProject(java.lang.String project) { return this; } - /** Name of the network resource to remove peering from. */ + /** Name of the network for this request. */ @com.google.api.client.util.Key private java.lang.String network; - /** Name of the network resource to remove peering from. + /** Name of the network for this request. */ public java.lang.String getNetwork() { return network; } - /** Name of the network resource to remove peering from. */ - public RequestRemovePeering setNetwork(java.lang.String network) { + /** Name of the network for this request. */ + public GetEffectiveFirewalls setNetwork(java.lang.String network) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } this.network = network; 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 RequestRemovePeering setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - @Override - public RequestRemovePeering set(String parameterName, Object value) { - return (RequestRemovePeering) super.set(parameterName, value); + public GetEffectiveFirewalls set(String parameterName, Object value) { + return (GetEffectiveFirewalls) super.set(parameterName, value); } } /** - * Switches the network mode from auto subnet mode to custom subnet mode. + * Creates a network in the specified project using the data included in the request. * - * Create a request for the method "networks.switchToCustomMode". + * Create a request for the method "networks.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SwitchToCustomMode#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param network Name of the network to be updated. + * @param content the {@link com.google.api.services.compute.model.Network} * @return the request */ - public SwitchToCustomMode switchToCustomMode(java.lang.String project, java.lang.String network) throws java.io.IOException { - SwitchToCustomMode result = new SwitchToCustomMode(project, network); + public Insert insert(java.lang.String project, com.google.api.services.compute.model.Network content) throws java.io.IOException { + Insert result = new Insert(project, content); initialize(result); return result; } - public class SwitchToCustomMode extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{network}/switchToCustomMode"; + private static final String REST_PATH = "projects/{project}/global/networks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern NETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Switches the network mode from auto subnet mode to custom subnet mode. + * Creates a network in the specified project using the data included in the request. * - * Create a request for the method "networks.switchToCustomMode". + * Create a request for the method "networks.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SwitchToCustomMode#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param network Name of the network to be updated. + * @param content the {@link com.google.api.services.compute.model.Network} * @since 1.13 */ - protected SwitchToCustomMode(java.lang.String project, java.lang.String network) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Insert(java.lang.String project, com.google.api.services.compute.model.Network 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public SwitchToCustomMode set$Xgafv(java.lang.String $Xgafv) { - return (SwitchToCustomMode) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public SwitchToCustomMode setAccessToken(java.lang.String accessToken) { - return (SwitchToCustomMode) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public SwitchToCustomMode setAlt(java.lang.String alt) { - return (SwitchToCustomMode) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public SwitchToCustomMode setCallback(java.lang.String callback) { - return (SwitchToCustomMode) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public SwitchToCustomMode setFields(java.lang.String fields) { - return (SwitchToCustomMode) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public SwitchToCustomMode setKey(java.lang.String key) { - return (SwitchToCustomMode) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public SwitchToCustomMode setOauthToken(java.lang.String oauthToken) { - return (SwitchToCustomMode) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public SwitchToCustomMode setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SwitchToCustomMode) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public SwitchToCustomMode setQuotaUser(java.lang.String quotaUser) { - return (SwitchToCustomMode) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public SwitchToCustomMode setUploadType(java.lang.String uploadType) { - return (SwitchToCustomMode) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public SwitchToCustomMode setUploadProtocol(java.lang.String uploadProtocol) { - return (SwitchToCustomMode) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public SwitchToCustomMode setUserIp(java.lang.String userIp) { - return (SwitchToCustomMode) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -125157,7 +124391,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SwitchToCustomMode setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -125167,27 +124401,6 @@ public SwitchToCustomMode setProject(java.lang.String project) { return this; } - /** Name of the network to be updated. */ - @com.google.api.client.util.Key - private java.lang.String network; - - /** Name of the network to be updated. - */ - public java.lang.String getNetwork() { - return network; - } - - /** Name of the network to be updated. */ - public SwitchToCustomMode setNetwork(java.lang.String network) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.network = network; - 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 @@ -125232,135 +124445,131 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public SwitchToCustomMode setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SwitchToCustomMode set(String parameterName, Object value) { - return (SwitchToCustomMode) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Retrieves the list of networks available to the specified project. * - * Create a request for the method "networks.testIamPermissions". + * Create a request for the method "networks.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, resource, content); + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networks/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/global/networks"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Returns permissions that a caller has on the specified resource. + * Retrieves the list of networks available to the specified project. * - * Create a request for the method "networks.testIamPermissions". + * Create a request for the method "networks.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

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

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

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NetworkList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -125374,7 +124583,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + public List setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -125384,405 +124593,402 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String filter; - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return resource; - } - - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - /** - * Updates the specified network peering with the data included in the request. You can only modify - * the NetworkPeering.export_custom_routes field and the NetworkPeering.import_custom_routes field. - * - * Create a request for the method "networks.updatePeering". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link UpdatePeering#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param network Name of the network resource which the updated peering is belonging to. - * @param content the {@link com.google.api.services.compute.model.NetworksUpdatePeeringRequest} - * @return the request - */ - public UpdatePeering updatePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksUpdatePeeringRequest content) throws java.io.IOException { - UpdatePeering result = new UpdatePeering(project, network, content); - initialize(result); - return result; - } - - public class UpdatePeering extends ComputeRequest { + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - private static final String REST_PATH = "projects/{project}/global/networks/{network}/updatePeering"; + 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 `:`. - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - private final java.util.regex.Pattern NETWORK_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + 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:* ``` - /** - * Updates the specified network peering with the data included in the request. You can only - * modify the NetworkPeering.export_custom_routes field and the - * NetworkPeering.import_custom_routes field. - * - * Create a request for the method "networks.updatePeering". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link UpdatePeering#execute()} method to invoke the remote operation.

- * {@link UpdatePeering#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 network Name of the network resource which the updated peering is belonging to. - * @param content the {@link com.google.api.services.compute.model.NetworksUpdatePeeringRequest} - * @since 1.13 - */ - protected UpdatePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksUpdatePeeringRequest 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } + 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. - @Override - public UpdatePeering set$Xgafv(java.lang.String $Xgafv) { - return (UpdatePeering) super.set$Xgafv($Xgafv); - } + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` - @Override - public UpdatePeering setAccessToken(java.lang.String accessToken) { - return (UpdatePeering) super.setAccessToken(accessToken); - } + 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: - @Override - public UpdatePeering setAlt(java.lang.String alt) { - return (UpdatePeering) super.setAlt(alt); - } + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - @Override - public UpdatePeering setCallback(java.lang.String callback) { - return (UpdatePeering) super.setCallback(callback); - } + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. - @Override - public UpdatePeering setFields(java.lang.String fields) { - return (UpdatePeering) super.setFields(fields); - } + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. - @Override - public UpdatePeering setKey(java.lang.String key) { - return (UpdatePeering) super.setKey(key); + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; } - @Override - public UpdatePeering setOauthToken(java.lang.String oauthToken) { - return (UpdatePeering) super.setOauthToken(oauthToken); + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - @Override - public UpdatePeering setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdatePeering) super.setPrettyPrint(prettyPrint); - } + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; - @Override - public UpdatePeering setQuotaUser(java.lang.String quotaUser) { - return (UpdatePeering) super.setQuotaUser(quotaUser); + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; } - @Override - public UpdatePeering setUploadType(java.lang.String uploadType) { - return (UpdatePeering) super.setUploadType(uploadType); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; } - @Override - public UpdatePeering setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdatePeering) super.setUploadProtocol(uploadProtocol); - } + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public UpdatePeering setUserIp(java.lang.String userIp) { - return (UpdatePeering) super.setUserIp(userIp); - } + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - /** Project ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String project; + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - /** Project ID for this request. + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getProject() { - return project; + public java.lang.String getOrderBy() { + return orderBy; } - /** Project ID for this request. */ - public UpdatePeering setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; return this; } - /** Name of the network resource which the updated peering is belonging to. */ + /** + * 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 network; + private java.lang.String pageToken; - /** Name of the network resource which the updated peering is belonging to. + /** 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 getNetwork() { - return network; + public java.lang.String getPageToken() { + return pageToken; } - /** Name of the network resource which the updated peering is belonging to. */ - public UpdatePeering setNetwork(java.lang.String network) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), - "Parameter network must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.network = network; + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public UpdatePeering setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public UpdatePeering set(String parameterName, Object value) { - return (UpdatePeering) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the NodeGroups collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NodeGroups.List request = compute.nodeGroups().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public NodeGroups nodeGroups() { - return new NodeGroups(); - } - - /** - * The "nodeGroups" collection of methods. - */ - public class NodeGroups { - /** - * Adds specified number of nodes to the node group. + * Lists the internal IP addresses in the specified network. * - * Create a request for the method "nodeGroups.addNodes". + * Create a request for the method "networks.listIpAddresses". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddNodes#execute()} method to invoke the remote operation. + * parameters, call the {@link ListIpAddresses#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 nodeGroup Name of the NodeGroup resource. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsAddNodesRequest} + * @param network Name of the network for this request. * @return the request */ - public AddNodes addNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsAddNodesRequest content) throws java.io.IOException { - AddNodes result = new AddNodes(project, zone, nodeGroup, content); + public ListIpAddresses listIpAddresses(java.lang.String project, java.lang.String network) throws java.io.IOException { + ListIpAddresses result = new ListIpAddresses(project, network); initialize(result); return result; } - public class AddNodes extends ComputeRequest { + public class ListIpAddresses extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/listIpAddresses"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern NODE_GROUP_PATTERN = + private final java.util.regex.Pattern NETWORK_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Adds specified number of nodes to the node group. + * Lists the internal IP addresses in the specified network. * - * Create a request for the method "nodeGroups.addNodes". + * Create a request for the method "networks.listIpAddresses". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddNodes#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsAddNodesRequest} + * @param network Name of the network for this request. * @since 1.13 */ - protected AddNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsAddNodesRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected ListIpAddresses(java.lang.String project, java.lang.String network) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.IpAddressesList.class); this.project = com.google.api.client.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.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public AddNodes set$Xgafv(java.lang.String $Xgafv) { - return (AddNodes) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public AddNodes setAccessToken(java.lang.String accessToken) { - return (AddNodes) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public AddNodes setAlt(java.lang.String alt) { - return (AddNodes) super.setAlt(alt); + public ListIpAddresses set$Xgafv(java.lang.String $Xgafv) { + return (ListIpAddresses) super.set$Xgafv($Xgafv); } @Override - public AddNodes setCallback(java.lang.String callback) { - return (AddNodes) super.setCallback(callback); + public ListIpAddresses setAccessToken(java.lang.String accessToken) { + return (ListIpAddresses) super.setAccessToken(accessToken); } @Override - public AddNodes setFields(java.lang.String fields) { - return (AddNodes) super.setFields(fields); + public ListIpAddresses setAlt(java.lang.String alt) { + return (ListIpAddresses) super.setAlt(alt); } @Override - public AddNodes setKey(java.lang.String key) { - return (AddNodes) super.setKey(key); + public ListIpAddresses setCallback(java.lang.String callback) { + return (ListIpAddresses) super.setCallback(callback); } @Override - public AddNodes setOauthToken(java.lang.String oauthToken) { - return (AddNodes) super.setOauthToken(oauthToken); + public ListIpAddresses setFields(java.lang.String fields) { + return (ListIpAddresses) super.setFields(fields); } @Override - public AddNodes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddNodes) super.setPrettyPrint(prettyPrint); + public ListIpAddresses setKey(java.lang.String key) { + return (ListIpAddresses) super.setKey(key); } @Override - public AddNodes setQuotaUser(java.lang.String quotaUser) { - return (AddNodes) super.setQuotaUser(quotaUser); + public ListIpAddresses setOauthToken(java.lang.String oauthToken) { + return (ListIpAddresses) super.setOauthToken(oauthToken); } @Override - public AddNodes setUploadType(java.lang.String uploadType) { - return (AddNodes) super.setUploadType(uploadType); + public ListIpAddresses setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListIpAddresses) super.setPrettyPrint(prettyPrint); } @Override - public AddNodes setUploadProtocol(java.lang.String uploadProtocol) { - return (AddNodes) super.setUploadProtocol(uploadProtocol); + public ListIpAddresses setQuotaUser(java.lang.String quotaUser) { + return (ListIpAddresses) super.setQuotaUser(quotaUser); } @Override - public AddNodes setUserIp(java.lang.String userIp) { - return (AddNodes) super.setUserIp(userIp); + public ListIpAddresses setUploadType(java.lang.String uploadType) { + return (ListIpAddresses) super.setUploadType(uploadType); + } + + @Override + public ListIpAddresses setUploadProtocol(java.lang.String uploadProtocol) { + return (ListIpAddresses) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListIpAddresses setUserIp(java.lang.String userIp) { + return (ListIpAddresses) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -125796,7 +125002,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AddNodes setProject(java.lang.String project) { + public ListIpAddresses setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -125806,246 +125012,24 @@ public AddNodes setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the network for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String network; - /** The name of the zone for this request. + /** Name of the network for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getNetwork() { + return network; } - /** The name of the zone for this request. */ - public AddNodes setZone(java.lang.String zone) { + /** Name of the network for this request. */ + public ListIpAddresses setNetwork(java.lang.String network) { 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 NodeGroup resource. */ - @com.google.api.client.util.Key - private java.lang.String nodeGroup; - - /** Name of the NodeGroup resource. - */ - public java.lang.String getNodeGroup() { - return nodeGroup; - } - - /** Name of the NodeGroup resource. */ - public AddNodes setNodeGroup(java.lang.String nodeGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.nodeGroup = nodeGroup; - 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 AddNodes setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public AddNodes set(String parameterName, Object value) { - return (AddNodes) super.set(parameterName, value); - } - } - /** - * Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details - * about each group. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "nodeGroups.aggregatedList". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @return the request - */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); - initialize(result); - return result; - } - - public class AggregatedList extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/aggregated/nodeGroups"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - /** - * Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details - * about each group. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "nodeGroups.aggregatedList". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

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

- * - * @param project Project ID for this request. - * @since 1.13 - */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeGroupAggregatedList.class); - this.project = com.google.api.client.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; + this.network = network; return this; } @@ -126180,45 +125164,11 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public AggregatedList setFilter(java.lang.String filter) { + public ListIpAddresses 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 @@ -126243,7 +125193,7 @@ public java.lang.Long getMaxResults() { * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public AggregatedList setMaxResults(java.lang.Long maxResults) { + public ListIpAddresses setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -126287,7 +125237,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public AggregatedList setOrderBy(java.lang.String orderBy) { + public ListIpAddresses setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -126310,7 +125260,7 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public AggregatedList setPageToken(java.lang.String pageToken) { + public ListIpAddresses setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -126342,166 +125292,174 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public ListIpAddresses 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. + * (Optional) types filter separate by comma, valid values are: SUBNETWORK, RESERVED, + * PEER_USED, PEER_RESERVED, REMOTE_USED, REMOTE_RESERVED. */ @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; + private java.lang.String types; + + /**( Optional) types filter separate by comma, valid values are: SUBNETWORK, RESERVED, PEER_USED, + ( PEER_RESERVED, REMOTE_USED, REMOTE_RESERVED. + ( - /** 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; + public java.lang.String getTypes() { + return types; } /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. + * (Optional) types filter separate by comma, valid values are: SUBNETWORK, RESERVED, + * PEER_USED, PEER_RESERVED, REMOTE_USED, REMOTE_RESERVED. */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; + public ListIpAddresses setTypes(java.lang.String types) { + this.types = types; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public ListIpAddresses set(String parameterName, Object value) { + return (ListIpAddresses) super.set(parameterName, value); } } /** - * Deletes the specified NodeGroup resource. + * Lists the internal IP owners in the specified network. * - * Create a request for the method "nodeGroups.delete". + * Create a request for the method "networks.listIpOwners". * * 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 ListIpOwners#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 nodeGroup Name of the NodeGroup resource to delete. + * @param network Name of the network to return. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) throws java.io.IOException { - Delete result = new Delete(project, zone, nodeGroup); + public ListIpOwners listIpOwners(java.lang.String project, java.lang.String network) throws java.io.IOException { + ListIpOwners result = new ListIpOwners(project, network); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class ListIpOwners extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/listIpOwners"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.Pattern NETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + private final java.util.regex.Pattern SUBNET_NAME_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern NODE_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern SUBNET_REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Deletes the specified NodeGroup resource. + * Lists the internal IP owners in the specified network. * - * Create a request for the method "nodeGroups.delete". + * Create a request for the method "networks.listIpOwners". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

+ * {@link + * ListIpOwners#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 nodeGroup Name of the NodeGroup resource to delete. + * @param network Name of the network to return. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected ListIpOwners(java.lang.String project, java.lang.String network) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.IpOwnerList.class); this.project = com.google.api.client.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.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public 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 ListIpOwners set$Xgafv(java.lang.String $Xgafv) { + return (ListIpOwners) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public ListIpOwners setAccessToken(java.lang.String accessToken) { + return (ListIpOwners) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public ListIpOwners setAlt(java.lang.String alt) { + return (ListIpOwners) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public ListIpOwners setCallback(java.lang.String callback) { + return (ListIpOwners) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public ListIpOwners setFields(java.lang.String fields) { + return (ListIpOwners) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public ListIpOwners setKey(java.lang.String key) { + return (ListIpOwners) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public ListIpOwners setOauthToken(java.lang.String oauthToken) { + return (ListIpOwners) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public ListIpOwners setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListIpOwners) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public ListIpOwners setQuotaUser(java.lang.String quotaUser) { + return (ListIpOwners) super.setQuotaUser(quotaUser); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public ListIpOwners setUploadType(java.lang.String uploadType) { + return (ListIpOwners) super.setUploadType(uploadType); + } + + @Override + public ListIpOwners setUploadProtocol(java.lang.String uploadProtocol) { + return (ListIpOwners) super.setUploadProtocol(uploadProtocol); + } + + @Override + public ListIpOwners setUserIp(java.lang.String userIp) { + return (ListIpOwners) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -126515,7 +125473,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public ListIpOwners setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -126525,420 +125483,453 @@ public Delete setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public 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 NodeGroup resource to delete. */ + /** Name of the network to return. */ @com.google.api.client.util.Key - private java.lang.String nodeGroup; + private java.lang.String network; - /** Name of the NodeGroup resource to delete. + /** Name of the network to return. */ - public java.lang.String getNodeGroup() { - return nodeGroup; + public java.lang.String getNetwork() { + return network; } - /** Name of the NodeGroup resource to delete. */ - public Delete setNodeGroup(java.lang.String nodeGroup) { + /** Name of the network to return. */ + public ListIpOwners setNetwork(java.lang.String network) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.nodeGroup = nodeGroup; + this.network = network; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String filter; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public ListIpOwners setFilter(java.lang.String filter) { + this.filter = filter; return this; } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Deletes specified nodes from the node group. - * - * Create a request for the method "nodeGroups.deleteNodes". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link DeleteNodes#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 nodeGroup Name of the NodeGroup resource whose nodes will be deleted. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest} - * @return the request - */ - public DeleteNodes deleteNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest content) throws java.io.IOException { - DeleteNodes result = new DeleteNodes(project, zone, nodeGroup, content); - initialize(result); - return result; - } + /** (Optional) IP CIDR range filter, example: "10.128.10.0/30". */ + @com.google.api.client.util.Key + private java.lang.String ipCidrRange; - public class DeleteNodes extends ComputeRequest { + /**( Optional) IP CIDR range filter, example: "10.128.10.0/30". + ( - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes"; + */ + public java.lang.String getIpCidrRange() { + return ipCidrRange; + } - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + /** (Optional) IP CIDR range filter, example: "10.128.10.0/30". */ + public ListIpOwners setIpCidrRange(java.lang.String ipCidrRange) { + this.ipCidrRange = ipCidrRange; + return this; + } - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; - private final java.util.regex.Pattern NODE_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** 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; + } /** - * Deletes specified nodes from the node group. - * - * Create a request for the method "nodeGroups.deleteNodes". + * 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 ListIpOwners 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. * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link DeleteNodes#execute()} method to invoke the remote operation.

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

+ * 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. * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource whose nodes will be deleted. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest} - * @since 1.13 + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - protected DeleteNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest 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.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup 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.Key + private java.lang.String orderBy; - @Override - public DeleteNodes set$Xgafv(java.lang.String $Xgafv) { - return (DeleteNodes) super.set$Xgafv($Xgafv); - } + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - @Override - public DeleteNodes setAccessToken(java.lang.String accessToken) { - return (DeleteNodes) super.setAccessToken(accessToken); - } + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - @Override - public DeleteNodes setAlt(java.lang.String alt) { - return (DeleteNodes) super.setAlt(alt); + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; } - @Override - public DeleteNodes setCallback(java.lang.String callback) { - return (DeleteNodes) super.setCallback(callback); + /** + * 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 ListIpOwners setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; } - @Override - public DeleteNodes setFields(java.lang.String fields) { - return (DeleteNodes) super.setFields(fields); - } + /** (Optional) Project IDs filter, example: "project-1,project-2". */ + @com.google.api.client.util.Key + private java.lang.String ownerProjects; - @Override - public DeleteNodes setKey(java.lang.String key) { - return (DeleteNodes) super.setKey(key); - } + /**( Optional) Project IDs filter, example: "project-1,project-2". + ( - @Override - public DeleteNodes setOauthToken(java.lang.String oauthToken) { - return (DeleteNodes) super.setOauthToken(oauthToken); + */ + public java.lang.String getOwnerProjects() { + return ownerProjects; } - @Override - public DeleteNodes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DeleteNodes) super.setPrettyPrint(prettyPrint); + /** (Optional) Project IDs filter, example: "project-1,project-2". */ + public ListIpOwners setOwnerProjects(java.lang.String ownerProjects) { + this.ownerProjects = ownerProjects; + return this; } - @Override - public DeleteNodes setQuotaUser(java.lang.String quotaUser) { - return (DeleteNodes) super.setQuotaUser(quotaUser); - } + /** (Optional) Owner types filter, example: "instance,forwardingRule". */ + @com.google.api.client.util.Key + private java.lang.String ownerTypes; - @Override - public DeleteNodes setUploadType(java.lang.String uploadType) { - return (DeleteNodes) super.setUploadType(uploadType); - } + /**( Optional) Owner types filter, example: "instance,forwardingRule". + ( - @Override - public DeleteNodes setUploadProtocol(java.lang.String uploadProtocol) { - return (DeleteNodes) super.setUploadProtocol(uploadProtocol); + */ + public java.lang.String getOwnerTypes() { + return ownerTypes; } - @Override - public DeleteNodes setUserIp(java.lang.String userIp) { - return (DeleteNodes) super.setUserIp(userIp); + /** (Optional) Owner types filter, example: "instance,forwardingRule". */ + public ListIpOwners setOwnerTypes(java.lang.String ownerTypes) { + this.ownerTypes = ownerTypes; + return this; } - /** Project ID for this request. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String pageToken; - /** Project ID for this request. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getProject() { - return project; + public java.lang.String getPageToken() { + return pageToken; } - /** Project ID for this request. */ - public DeleteNodes setProject(java.lang.String project) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.project = project; + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public ListIpOwners setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } - /** The name of the zone for this request. */ + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.Boolean returnPartialSuccess; - /** The name of the zone for this request. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getZone() { - return zone; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** The name of the zone for this request. */ - public DeleteNodes 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; + /** + * 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 ListIpOwners setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } - /** Name of the NodeGroup resource whose nodes will be deleted. */ + /** (Optional) Subnetwork name filter. */ @com.google.api.client.util.Key - private java.lang.String nodeGroup; + private java.lang.String subnetName; + + /**( Optional) Subnetwork name filter. + ( - /** Name of the NodeGroup resource whose nodes will be deleted. */ - public java.lang.String getNodeGroup() { - return nodeGroup; + public java.lang.String getSubnetName() { + return subnetName; } - /** Name of the NodeGroup resource whose nodes will be deleted. */ - public DeleteNodes setNodeGroup(java.lang.String nodeGroup) { + /** (Optional) Subnetwork name filter. */ + public ListIpOwners setSubnetName(java.lang.String subnetName) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup 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(SUBNET_NAME_PATTERN.matcher(subnetName).matches(), + "Parameter subnetName must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.nodeGroup = nodeGroup; + this.subnetName = subnetName; 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). - */ + /** (Optional) Subnetwork region filter. */ @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.String subnetRegion; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /**( Optional) Subnetwork region filter. + ( - 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; + public java.lang.String getSubnetRegion() { + return subnetRegion; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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 DeleteNodes setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** (Optional) Subnetwork region filter. */ + public ListIpOwners setSubnetRegion(java.lang.String subnetRegion) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SUBNET_REGION_PATTERN.matcher(subnetRegion).matches(), + "Parameter subnetRegion must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.subnetRegion = subnetRegion; return this; } @Override - public DeleteNodes set(String parameterName, Object value) { - return (DeleteNodes) super.set(parameterName, value); + public ListIpOwners set(String parameterName, Object value) { + return (ListIpOwners) super.set(parameterName, value); } } /** - * Returns the specified NodeGroup. Get a list of available NodeGroups by making a list() request. - * Note: the "nodes" field should not be used. Use nodeGroups.listNodes instead. + * Lists the peering routes exchanged over peering connection. * - * Create a request for the method "nodeGroups.get". + * Create a request for the method "networks.listPeeringRoutes". * * 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 ListPeeringRoutes#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 nodeGroup Name of the node group to return. + * @param network Name of the network for this request. * @return the request */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) throws java.io.IOException { - Get result = new Get(project, zone, nodeGroup); + public ListPeeringRoutes listPeeringRoutes(java.lang.String project, java.lang.String network) throws java.io.IOException { + ListPeeringRoutes result = new ListPeeringRoutes(project, network); initialize(result); return result; } - public class Get extends ComputeRequest { + public class ListPeeringRoutes extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/listPeeringRoutes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = + private final java.util.regex.Pattern NETWORK_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern NODE_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Returns the specified NodeGroup. Get a list of available NodeGroups by making a list() request. - * Note: the "nodes" field should not be used. Use nodeGroups.listNodes instead. + * Lists the peering routes exchanged over peering connection. * - * Create a request for the method "nodeGroups.get". + * Create a request for the method "networks.listPeeringRoutes". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the node group to return. + * @param network Name of the network for this request. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeGroup.class); + protected ListPeeringRoutes(java.lang.String project, java.lang.String network) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ExchangedPeeringRoutesList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override @@ -126952,63 +125943,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public ListPeeringRoutes set$Xgafv(java.lang.String $Xgafv) { + return (ListPeeringRoutes) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public ListPeeringRoutes setAccessToken(java.lang.String accessToken) { + return (ListPeeringRoutes) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public ListPeeringRoutes setAlt(java.lang.String alt) { + return (ListPeeringRoutes) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + public ListPeeringRoutes setCallback(java.lang.String callback) { + return (ListPeeringRoutes) super.setCallback(callback); + } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public ListPeeringRoutes setFields(java.lang.String fields) { + return (ListPeeringRoutes) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public ListPeeringRoutes setKey(java.lang.String key) { + return (ListPeeringRoutes) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public ListPeeringRoutes setOauthToken(java.lang.String oauthToken) { + return (ListPeeringRoutes) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public ListPeeringRoutes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListPeeringRoutes) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public ListPeeringRoutes setQuotaUser(java.lang.String quotaUser) { + return (ListPeeringRoutes) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public ListPeeringRoutes setUploadType(java.lang.String uploadType) { + return (ListPeeringRoutes) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public ListPeeringRoutes setUploadProtocol(java.lang.String uploadProtocol) { + return (ListPeeringRoutes) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public ListPeeringRoutes setUserIp(java.lang.String userIp) { + return (ListPeeringRoutes) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -127022,7 +126013,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public ListPeeringRoutes setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -127032,192 +126023,471 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the network for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String network; - /** The name of the zone for this request. + /** Name of the network for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getNetwork() { + return network; } - /** The name of the zone for this request. */ - public Get setZone(java.lang.String zone) { + /** Name of the network for this request. */ + public ListPeeringRoutes setNetwork(java.lang.String network) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.zone = zone; + this.network = network; return this; } - /** Name of the node group to return. */ + /** The direction of the exchanged routes. */ @com.google.api.client.util.Key - private java.lang.String nodeGroup; + private java.lang.String direction; - /** Name of the node group to return. + /** The direction of the exchanged routes. */ - public java.lang.String getNodeGroup() { - return nodeGroup; + public java.lang.String getDirection() { + return direction; } - /** Name of the node group to return. */ - public Get setNodeGroup(java.lang.String nodeGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.nodeGroup = nodeGroup; + /** The direction of the exchanged routes. */ + public ListPeeringRoutes setDirection(java.lang.String direction) { + this.direction = direction; + 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 ListPeeringRoutes 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 ListPeeringRoutes 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 ListPeeringRoutes 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 ListPeeringRoutes setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** The response will show routes exchanged over the given peering connection. */ + @com.google.api.client.util.Key + private java.lang.String peeringName; + + /** The response will show routes exchanged over the given peering connection. + */ + public java.lang.String getPeeringName() { + return peeringName; + } + + /** The response will show routes exchanged over the given peering connection. */ + public ListPeeringRoutes setPeeringName(java.lang.String peeringName) { + this.peeringName = peeringName; + return this; + } + + /** + * The region of the request. The response will include all subnet routes, static routes and + * dynamic routes in the region. + */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The region of the request. The response will include all subnet routes, static routes and dynamic + routes in the region. + */ + public java.lang.String getRegion() { + return region; + } + + /** + * The region of the request. The response will include all subnet routes, static routes and + * dynamic routes in the region. + */ + public ListPeeringRoutes setRegion(java.lang.String region) { + this.region = region; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @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 ListPeeringRoutes setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public ListPeeringRoutes set(String parameterName, Object value) { + return (ListPeeringRoutes) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * Patches the specified network with the data included in the request. Only routingConfig can be + * modified. * - * Create a request for the method "nodeGroups.getIamPolicy". + * Create a request for the method "networks.patch". * * 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 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 resource Name or id of the resource for this request. + * @param network Name of the network to update. + * @param content the {@link com.google.api.services.compute.model.Network} * @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 Patch patch(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.Network content) throws java.io.IOException { + Patch result = new Patch(project, network, content); initialize(result); return result; } - public class GetIamPolicy extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = + private final java.util.regex.Pattern NETWORK_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. + * Patches the specified network with the data included in the request. Only routingConfig can be + * modified. * - * Create a request for the method "nodeGroups.getIamPolicy". + * Create a request for the method "networks.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. + * @param network Name of the network to update. + * @param content the {@link com.google.api.services.compute.model.Network} * @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 Patch(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.Network content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); - 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."); + this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network 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 Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -127231,7 +126501,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public GetIamPolicy 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 " + @@ -127241,116 +126511,127 @@ public GetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the network to update. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String network; - /** The name of the zone for this request. + /** Name of the network to update. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getNetwork() { + return network; } - /** The name of the zone for this request. */ - public GetIamPolicy setZone(java.lang.String zone) { + /** Name of the network to update. */ + public Patch setNetwork(java.lang.String network) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.zone = zone; + this.network = network; 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() { - return optionsRequestedPolicyVersion; + public java.lang.String getRequestId() { + return requestId; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Creates a NodeGroup resource in the specified project using the data included in the request. + * Removes a peering from the specified network. * - * Create a request for the method "nodeGroups.insert". + * Create a request for the method "networks.removePeering". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link RemovePeering#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 initialNodeCount Initial count of nodes in the node group. - * @param content the {@link com.google.api.services.compute.model.NodeGroup} + * @param network Name of the network resource to remove peering from. + * @param content the {@link com.google.api.services.compute.model.NetworksRemovePeeringRequest} * @return the request */ - public Insert insert(java.lang.String project, java.lang.String zone, java.lang.Integer initialNodeCount, com.google.api.services.compute.model.NodeGroup content) throws java.io.IOException { - Insert result = new Insert(project, zone, initialNodeCount, content); + public RemovePeering removePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksRemovePeeringRequest content) throws java.io.IOException { + RemovePeering result = new RemovePeering(project, network, content); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class RemovePeering extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/removePeering"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private final java.util.regex.Pattern NETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Creates a NodeGroup resource in the specified project using the data included in the request. + * Removes a peering from the specified network. * - * Create a request for the method "nodeGroups.insert". + * Create a request for the method "networks.removePeering". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

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

+ * {@link RemovePeering#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 initialNodeCount Initial count of nodes in the node group. - * @param content the {@link com.google.api.services.compute.model.NodeGroup} + * @param network Name of the network resource to remove peering from. + * @param content the {@link com.google.api.services.compute.model.NetworksRemovePeeringRequest} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String zone, java.lang.Integer initialNodeCount, com.google.api.services.compute.model.NodeGroup content) { + protected RemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksRemovePeeringRequest 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()) { @@ -127358,73 +126639,72 @@ protected Insert(java.lang.String project, java.lang.String zone, java.lang.Inte "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.initialNodeCount = com.google.api.client.util.Preconditions.checkNotNull(initialNodeCount, "Required parameter initialNodeCount must be specified."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public RemovePeering set$Xgafv(java.lang.String $Xgafv) { + return (RemovePeering) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public RemovePeering setAccessToken(java.lang.String accessToken) { + return (RemovePeering) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public RemovePeering setAlt(java.lang.String alt) { + return (RemovePeering) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public RemovePeering setCallback(java.lang.String callback) { + return (RemovePeering) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public RemovePeering setFields(java.lang.String fields) { + return (RemovePeering) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public RemovePeering setKey(java.lang.String key) { + return (RemovePeering) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public RemovePeering setOauthToken(java.lang.String oauthToken) { + return (RemovePeering) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public RemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemovePeering) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public RemovePeering setQuotaUser(java.lang.String quotaUser) { + return (RemovePeering) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public RemovePeering setUploadType(java.lang.String uploadType) { + return (RemovePeering) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public RemovePeering setUploadProtocol(java.lang.String uploadProtocol) { + return (RemovePeering) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public RemovePeering setUserIp(java.lang.String userIp) { + return (RemovePeering) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -127438,7 +126718,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public RemovePeering setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -127448,40 +126728,24 @@ public Insert setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the network resource to remove peering from. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String network; - /** The name of the zone for this request. + /** Name of the network resource to remove peering from. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getNetwork() { + return network; } - /** The name of the zone for this request. */ - public Insert setZone(java.lang.String zone) { + /** Name of the network resource to remove peering from. */ + public RemovePeering setNetwork(java.lang.String network) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.zone = zone; - return this; - } - - /** Initial count of nodes in the node group. */ - @com.google.api.client.util.Key - private java.lang.Integer initialNodeCount; - - /** Initial count of nodes in the node group. - */ - public java.lang.Integer getInitialNodeCount() { - return initialNodeCount; - } - - /** Initial count of nodes in the node group. */ - public Insert setInitialNodeCount(java.lang.Integer initialNodeCount) { - this.initialNodeCount = initialNodeCount; + this.network = network; return this; } @@ -127529,144 +126793,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 Insert setRequestId(java.lang.String requestId) { + public RemovePeering setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public RemovePeering set(String parameterName, Object value) { + return (RemovePeering) super.set(parameterName, value); } } /** - * Retrieves a list of node groups available to the specified project. Note: use - * nodeGroups.listNodes for more details about each group. + * Requests to remove a peering from the specified network. Applicable only for PeeringConnection + * with update_strategy=CONSENSUS. * - * Create a request for the method "nodeGroups.list". + * Create a request for the method "networks.requestRemovePeering". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link RequestRemovePeering#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 network Name of the network resource to remove peering from. + * @param content the {@link com.google.api.services.compute.model.NetworksRequestRemovePeeringRequest} * @return the request */ - public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { - List result = new List(project, zone); + public RequestRemovePeering requestRemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksRequestRemovePeeringRequest content) throws java.io.IOException { + RequestRemovePeering result = new RequestRemovePeering(project, network, content); initialize(result); return result; } - public class List extends ComputeRequest { + public class RequestRemovePeering extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups"; + private static final String REST_PATH = "projects/{project}/global/networks/{network}/requestRemovePeering"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private final java.util.regex.Pattern NETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Retrieves a list of node groups available to the specified project. Note: use - * nodeGroups.listNodes for more details about each group. + * Requests to remove a peering from the specified network. Applicable only for PeeringConnection + * with update_strategy=CONSENSUS. * - * Create a request for the method "nodeGroups.list". + * Create a request for the method "networks.requestRemovePeering". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

{@link RequestRemovePeering#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 network Name of the network resource to remove peering from. + * @param content the {@link com.google.api.services.compute.model.NetworksRequestRemovePeeringRequest} * @since 1.13 */ - protected List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeGroupList.class); + protected RequestRemovePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksRequestRemovePeeringRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public RequestRemovePeering set$Xgafv(java.lang.String $Xgafv) { + return (RequestRemovePeering) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public RequestRemovePeering setAccessToken(java.lang.String accessToken) { + return (RequestRemovePeering) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public RequestRemovePeering setAlt(java.lang.String alt) { + return (RequestRemovePeering) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public RequestRemovePeering setCallback(java.lang.String callback) { + return (RequestRemovePeering) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public RequestRemovePeering setFields(java.lang.String fields) { + return (RequestRemovePeering) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public RequestRemovePeering setKey(java.lang.String key) { + return (RequestRemovePeering) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public RequestRemovePeering setOauthToken(java.lang.String oauthToken) { + return (RequestRemovePeering) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public RequestRemovePeering setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RequestRemovePeering) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public RequestRemovePeering setQuotaUser(java.lang.String quotaUser) { + return (RequestRemovePeering) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public RequestRemovePeering setUploadType(java.lang.String uploadType) { + return (RequestRemovePeering) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public RequestRemovePeering setUploadProtocol(java.lang.String uploadProtocol) { + return (RequestRemovePeering) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public RequestRemovePeering setUserIp(java.lang.String userIp) { + return (RequestRemovePeering) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -127680,7 +126938,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public RequestRemovePeering setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -127690,424 +126948,415 @@ public List setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name of the network resource to remove peering from. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String network; - /** The name of the zone for this request. + /** Name of the network resource to remove peering from. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getNetwork() { + return network; } - /** The name of the zone for this request. */ - public List setZone(java.lang.String zone) { + /** Name of the network resource to remove peering from. */ + public RequestRemovePeering setNetwork(java.lang.String network) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.zone = zone; + this.network = network; return this; } /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * You cannot combine constraints on multiple fields using regular expressions. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. - - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. - - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` - - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. - - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` - - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: - - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + private java.lang.String requestId; - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - You cannot combine constraints on multiple fields using regular expressions. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getRequestId() { + return requestId; } /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * You cannot combine constraints on multiple fields using regular expressions. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setFilter(java.lang.String filter) { - this.filter = filter; + public RequestRemovePeering setRequestId(java.lang.String requestId) { + this.requestId = requestId; 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; + @Override + public RequestRemovePeering set(String parameterName, Object value) { + return (RequestRemovePeering) super.set(parameterName, value); } + } + /** + * Switches the network mode from auto subnet mode to custom subnet mode. + * + * Create a request for the method "networks.switchToCustomMode". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SwitchToCustomMode#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param network Name of the network to be updated. + * @return the request + */ + public SwitchToCustomMode switchToCustomMode(java.lang.String project, java.lang.String network) throws java.io.IOException { + SwitchToCustomMode result = new SwitchToCustomMode(project, network); + initialize(result); + return result; + } - /** - * 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; - } + public class SwitchToCustomMode extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networks/{network}/switchToCustomMode"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern NETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * Switches the network mode from auto subnet mode to custom subnet mode. * - * 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. + * Create a request for the method "networks.switchToCustomMode". * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SwitchToCustomMode#execute()} method to invoke the remote + * operation.

{@link SwitchToCustomMode#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 network Name of the network to be updated. + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + protected SwitchToCustomMode(java.lang.String project, java.lang.String network) { + 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.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + @Override + public SwitchToCustomMode set$Xgafv(java.lang.String $Xgafv) { + return (SwitchToCustomMode) super.set$Xgafv($Xgafv); + } - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + @Override + public SwitchToCustomMode setAccessToken(java.lang.String accessToken) { + return (SwitchToCustomMode) super.setAccessToken(accessToken); + } - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public SwitchToCustomMode setAlt(java.lang.String alt) { + return (SwitchToCustomMode) super.setAlt(alt); } - /** - * 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. + @Override + public SwitchToCustomMode setCallback(java.lang.String callback) { + return (SwitchToCustomMode) super.setCallback(callback); + } + + @Override + public SwitchToCustomMode setFields(java.lang.String fields) { + return (SwitchToCustomMode) super.setFields(fields); + } + + @Override + public SwitchToCustomMode setKey(java.lang.String key) { + return (SwitchToCustomMode) super.setKey(key); + } + + @Override + public SwitchToCustomMode setOauthToken(java.lang.String oauthToken) { + return (SwitchToCustomMode) super.setOauthToken(oauthToken); + } + + @Override + public SwitchToCustomMode setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SwitchToCustomMode) super.setPrettyPrint(prettyPrint); + } + + @Override + public SwitchToCustomMode setQuotaUser(java.lang.String quotaUser) { + return (SwitchToCustomMode) super.setQuotaUser(quotaUser); + } + + @Override + public SwitchToCustomMode setUploadType(java.lang.String uploadType) { + return (SwitchToCustomMode) super.setUploadType(uploadType); + } + + @Override + public SwitchToCustomMode setUploadProtocol(java.lang.String uploadProtocol) { + return (SwitchToCustomMode) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SwitchToCustomMode setUserIp(java.lang.String userIp) { + return (SwitchToCustomMode) 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 List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public SwitchToCustomMode setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; return this; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** Name of the network to be updated. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String network; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Name of the network to be updated. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getNetwork() { + return network; } - /** - * 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; + /** Name of the network to be updated. */ + public SwitchToCustomMode setNetwork(java.lang.String network) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.network = network; return this; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating 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.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public SwitchToCustomMode setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public SwitchToCustomMode set(String parameterName, Object value) { + return (SwitchToCustomMode) super.set(parameterName, value); } } /** - * Lists nodes in the node group. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "nodeGroups.listNodes". + * Create a request for the method "networks.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListNodes#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource whose nodes you want to list. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public ListNodes listNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) throws java.io.IOException { - ListNodes result = new ListNodes(project, zone, nodeGroup); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, resource, content); initialize(result); return result; } - public class ListNodes extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes"; + private static final String REST_PATH = "projects/{project}/global/networks/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern NODE_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Lists nodes in the node group. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "nodeGroups.listNodes". + * Create a request for the method "networks.testIamPermissions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListNodes#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource whose nodes you want to list. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected ListNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.NodeGroupsListNodes.class); + protected TestIamPermissions(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.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.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public ListNodes set$Xgafv(java.lang.String $Xgafv) { - return (ListNodes) super.set$Xgafv($Xgafv); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public ListNodes setAccessToken(java.lang.String accessToken) { - return (ListNodes) super.setAccessToken(accessToken); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public ListNodes setAlt(java.lang.String alt) { - return (ListNodes) super.setAlt(alt); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public ListNodes setCallback(java.lang.String callback) { - return (ListNodes) super.setCallback(callback); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public ListNodes setFields(java.lang.String fields) { - return (ListNodes) super.setFields(fields); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public ListNodes setKey(java.lang.String key) { - return (ListNodes) super.setKey(key); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @Override - public ListNodes setOauthToken(java.lang.String oauthToken) { - return (ListNodes) super.setOauthToken(oauthToken); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public ListNodes setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListNodes) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public ListNodes setQuotaUser(java.lang.String quotaUser) { - return (ListNodes) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public ListNodes setUploadType(java.lang.String uploadType) { - return (ListNodes) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public ListNodes setUploadProtocol(java.lang.String uploadProtocol) { - return (ListNodes) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public ListNodes setUserIp(java.lang.String userIp) { - return (ListNodes) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -128121,7 +127370,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListNodes setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -128131,367 +127380,81 @@ public ListNodes setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String resource; - /** The name of the zone for this request. + /** Name or id of the resource for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getResource() { + return resource; } - /** The name of the zone for this request. */ - public ListNodes setZone(java.lang.String zone) { + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(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.zone = zone; + this.resource = resource; return this; } - /** Name of the NodeGroup resource whose nodes you want to list. */ - @com.google.api.client.util.Key - private java.lang.String nodeGroup; - - /** Name of the NodeGroup resource whose nodes you want to list. - */ - public java.lang.String getNodeGroup() { - return nodeGroup; + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } + } + /** + * Updates the specified network peering with the data included in the request. You can only modify + * the NetworkPeering.export_custom_routes field and the NetworkPeering.import_custom_routes field. + * + * Create a request for the method "networks.updatePeering". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link UpdatePeering#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param network Name of the network resource which the updated peering is belonging to. + * @param content the {@link com.google.api.services.compute.model.NetworksUpdatePeeringRequest} + * @return the request + */ + public UpdatePeering updatePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksUpdatePeeringRequest content) throws java.io.IOException { + UpdatePeering result = new UpdatePeering(project, network, content); + initialize(result); + return result; + } - /** Name of the NodeGroup resource whose nodes you want to list. */ - public ListNodes setNodeGroup(java.lang.String nodeGroup) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.nodeGroup = nodeGroup; - return this; - } + public class UpdatePeering extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/networks/{network}/updatePeering"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern NETWORK_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * Updates the specified network peering with the data included in the request. You can only + * modify the NetworkPeering.export_custom_routes field and the + * NetworkPeering.import_custom_routes field. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "networks.updatePeering". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link UpdatePeering#execute()} method to invoke the remote operation.

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

* - * You cannot combine constraints on multiple fields using regular expressions. + * @param project Project ID for this request. + * @param network Name of the network resource which the updated peering is belonging to. + * @param content the {@link com.google.api.services.compute.model.NetworksUpdatePeeringRequest} + * @since 1.13 */ - @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 ListNodes 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 ListNodes 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 ListNodes 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 ListNodes 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 ListNodes setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public ListNodes set(String parameterName, Object value) { - return (ListNodes) super.set(parameterName, value); - } - } - /** - * Updates the specified node group. - * - * Create a request for the method "nodeGroups.patch". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource to update. - * @param content the {@link com.google.api.services.compute.model.NodeGroup} - * @return the request - */ - public Patch patch(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroup content) throws java.io.IOException { - Patch result = new Patch(project, zone, nodeGroup, content); - initialize(result); - return result; - } - - public class Patch extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern NODE_GROUP_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Updates the specified node group. - * - * Create a request for the method "nodeGroups.patch". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource to update. - * @param content the {@link com.google.api.services.compute.model.NodeGroup} - * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroup content) { + protected UpdatePeering(java.lang.String project, java.lang.String network, com.google.api.services.compute.model.NetworksUpdatePeeringRequest 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()) { @@ -128499,78 +127462,72 @@ protected Patch(java.lang.String project, java.lang.String zone, java.lang.Strin "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + this.network = com.google.api.client.util.Preconditions.checkNotNull(network, "Required parameter network must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public UpdatePeering set$Xgafv(java.lang.String $Xgafv) { + return (UpdatePeering) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public UpdatePeering setAccessToken(java.lang.String accessToken) { + return (UpdatePeering) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public UpdatePeering setAlt(java.lang.String alt) { + return (UpdatePeering) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public UpdatePeering setCallback(java.lang.String callback) { + return (UpdatePeering) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public UpdatePeering setFields(java.lang.String fields) { + return (UpdatePeering) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public UpdatePeering setKey(java.lang.String key) { + return (UpdatePeering) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public UpdatePeering setOauthToken(java.lang.String oauthToken) { + return (UpdatePeering) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public UpdatePeering setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdatePeering) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public UpdatePeering setQuotaUser(java.lang.String quotaUser) { + return (UpdatePeering) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public UpdatePeering setUploadType(java.lang.String uploadType) { + return (UpdatePeering) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public UpdatePeering setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdatePeering) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public UpdatePeering setUserIp(java.lang.String userIp) { + return (UpdatePeering) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -128584,7 +127541,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Patch setProject(java.lang.String project) { + public UpdatePeering setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -128594,45 +127551,24 @@ public Patch setProject(java.lang.String project) { return this; } - /** The name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** The name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** The name of the zone for this request. */ - public 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 " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.zone = zone; - return this; - } - - /** Name of the NodeGroup resource to update. */ + /** Name of the network resource which the updated peering is belonging to. */ @com.google.api.client.util.Key - private java.lang.String nodeGroup; + private java.lang.String network; - /** Name of the NodeGroup resource to update. + /** Name of the network resource which the updated peering is belonging to. */ - public java.lang.String getNodeGroup() { - return nodeGroup; + public java.lang.String getNetwork() { + return network; } - /** Name of the NodeGroup resource to update. */ - public Patch setNodeGroup(java.lang.String nodeGroup) { + /** Name of the network resource which the updated peering is belonging to. */ + public UpdatePeering setNetwork(java.lang.String network) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), - "Parameter nodeGroup must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NETWORK_PATTERN.matcher(network).matches(), + "Parameter network must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.nodeGroup = nodeGroup; + this.network = network; return this; } @@ -128680,39 +127616,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 Patch setRequestId(java.lang.String requestId) { + public UpdatePeering setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public UpdatePeering set(String parameterName, Object value) { + return (UpdatePeering) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the NodeGroups collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.NodeGroups.List request = compute.nodeGroups().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public NodeGroups nodeGroups() { + return new NodeGroups(); + } + + /** + * The "nodeGroups" collection of methods. + */ + public class NodeGroups { + /** - * Perform maintenance on a subset of nodes in the node group. + * Adds specified number of nodes to the node group. * - * Create a request for the method "nodeGroups.performMaintenance". + * Create a request for the method "nodeGroups.addNodes". * * 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 AddNodes#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 nodeGroup Name of the node group scoping this request. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest} + * @param nodeGroup Name of the NodeGroup resource. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsAddNodesRequest} * @return the request */ - public PerformMaintenance performMaintenance(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest content) throws java.io.IOException { - PerformMaintenance result = new PerformMaintenance(project, zone, nodeGroup, content); + public AddNodes addNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsAddNodesRequest content) throws java.io.IOException { + AddNodes result = new AddNodes(project, zone, nodeGroup, content); initialize(result); return result; } - public class PerformMaintenance extends ComputeRequest { + public class AddNodes extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/performMaintenance"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -128724,23 +127683,23 @@ public class PerformMaintenance extends ComputeRequest {@link PerformMaintenance#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

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

+ * {@link + * AddNodes#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 nodeGroup Name of the node group scoping this request. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest} + * @param nodeGroup Name of the NodeGroup resource. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsAddNodesRequest} * @since 1.13 */ - protected PerformMaintenance(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest content) { + protected AddNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsAddNodesRequest 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()) { @@ -128763,63 +127722,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 AddNodes set$Xgafv(java.lang.String $Xgafv) { + return (AddNodes) super.set$Xgafv($Xgafv); } @Override - public PerformMaintenance setAccessToken(java.lang.String accessToken) { - return (PerformMaintenance) super.setAccessToken(accessToken); + public AddNodes setAccessToken(java.lang.String accessToken) { + return (AddNodes) super.setAccessToken(accessToken); } @Override - public PerformMaintenance setAlt(java.lang.String alt) { - return (PerformMaintenance) super.setAlt(alt); + public AddNodes setAlt(java.lang.String alt) { + return (AddNodes) super.setAlt(alt); } @Override - public PerformMaintenance setCallback(java.lang.String callback) { - return (PerformMaintenance) super.setCallback(callback); + public AddNodes setCallback(java.lang.String callback) { + return (AddNodes) super.setCallback(callback); } @Override - public PerformMaintenance setFields(java.lang.String fields) { - return (PerformMaintenance) super.setFields(fields); + public AddNodes setFields(java.lang.String fields) { + return (AddNodes) super.setFields(fields); } @Override - public PerformMaintenance setKey(java.lang.String key) { - return (PerformMaintenance) super.setKey(key); + public AddNodes setKey(java.lang.String key) { + return (AddNodes) super.setKey(key); } @Override - public PerformMaintenance setOauthToken(java.lang.String oauthToken) { - return (PerformMaintenance) super.setOauthToken(oauthToken); + public AddNodes setOauthToken(java.lang.String oauthToken) { + return (AddNodes) super.setOauthToken(oauthToken); } @Override - public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PerformMaintenance) super.setPrettyPrint(prettyPrint); + public AddNodes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddNodes) super.setPrettyPrint(prettyPrint); } @Override - public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { - return (PerformMaintenance) super.setQuotaUser(quotaUser); + public AddNodes setQuotaUser(java.lang.String quotaUser) { + return (AddNodes) super.setQuotaUser(quotaUser); } @Override - public PerformMaintenance setUploadType(java.lang.String uploadType) { - return (PerformMaintenance) super.setUploadType(uploadType); + public AddNodes setUploadType(java.lang.String uploadType) { + return (AddNodes) super.setUploadType(uploadType); } @Override - public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { - return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); + public AddNodes setUploadProtocol(java.lang.String uploadProtocol) { + return (AddNodes) super.setUploadProtocol(uploadProtocol); } @Override - public PerformMaintenance setUserIp(java.lang.String userIp) { - return (PerformMaintenance) super.setUserIp(userIp); + public AddNodes setUserIp(java.lang.String userIp) { + return (AddNodes) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -128833,7 +127792,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public PerformMaintenance setProject(java.lang.String project) { + public AddNodes setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -128854,7 +127813,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public PerformMaintenance setZone(java.lang.String zone) { + public AddNodes 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 " + @@ -128864,18 +127823,18 @@ public PerformMaintenance setZone(java.lang.String zone) { return this; } - /** Name of the node group scoping this request. */ + /** Name of the NodeGroup resource. */ @com.google.api.client.util.Key private java.lang.String nodeGroup; - /** Name of the node group scoping this request. + /** Name of the NodeGroup resource. */ public java.lang.String getNodeGroup() { return nodeGroup; } - /** Name of the node group scoping this request. */ - public PerformMaintenance setNodeGroup(java.lang.String nodeGroup) { + /** Name of the NodeGroup resource. */ + public AddNodes setNodeGroup(java.lang.String nodeGroup) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), "Parameter nodeGroup must conform to the pattern " + @@ -128929,146 +127888,140 @@ 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 AddNodes 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 AddNodes set(String parameterName, Object value) { + return (AddNodes) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details + * about each group. * - * Create a request for the method "nodeGroups.setIamPolicy". + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "nodeGroups.aggregatedList". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class SetIamPolicy extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/aggregated/nodeGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details + * about each group. * - * Create a request for the method "nodeGroups.setIamPolicy". + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "nodeGroups.aggregatedList". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

+ * parameters, call the {@link 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeGroupAggregatedList.class); this.project = com.google.api.client.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 SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) 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. */ @@ -129082,7 +128035,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy 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 " + @@ -129092,76 +128045,354 @@ public SetIamPolicy 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 SetIamPolicy setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[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 or id of the resource for this request. */ + /** + * 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 resource; + private java.lang.Boolean includeAllScopes; - /** Name or id of the resource for this request. + /** 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 getResource() { - return resource; + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; + /** + * 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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Updates the node template of the node group. + * Deletes the specified NodeGroup resource. * - * Create a request for the method "nodeGroups.setNodeTemplate". + * Create a request for the method "nodeGroups.delete". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetNodeTemplate#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource to update. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest} + * @param nodeGroup Name of the NodeGroup resource to delete. * @return the request */ - public SetNodeTemplate setNodeTemplate(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest content) throws java.io.IOException { - SetNodeTemplate result = new SetNodeTemplate(project, zone, nodeGroup, content); + public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) throws java.io.IOException { + Delete result = new Delete(project, zone, nodeGroup); initialize(result); return result; } - public class SetNodeTemplate extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -129173,24 +128404,22 @@ public class SetNodeTemplate extends ComputeRequest {@link SetNodeTemplate#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} must be called to initialize this instance immediately after invoking the - * constructor.

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

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param nodeGroup Name of the NodeGroup resource to update. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest} + * @param nodeGroup Name of the NodeGroup resource to delete. * @since 1.13 */ - protected SetNodeTemplate(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) { + 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(), @@ -129212,63 +128441,63 @@ protected SetNodeTemplate(java.lang.String project, java.lang.String zone, java. } @Override - public SetNodeTemplate set$Xgafv(java.lang.String $Xgafv) { - return (SetNodeTemplate) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public SetNodeTemplate setAccessToken(java.lang.String accessToken) { - return (SetNodeTemplate) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public SetNodeTemplate setAlt(java.lang.String alt) { - return (SetNodeTemplate) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public SetNodeTemplate setCallback(java.lang.String callback) { - return (SetNodeTemplate) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public SetNodeTemplate setFields(java.lang.String fields) { - return (SetNodeTemplate) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public SetNodeTemplate setKey(java.lang.String key) { - return (SetNodeTemplate) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public SetNodeTemplate setOauthToken(java.lang.String oauthToken) { - return (SetNodeTemplate) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public SetNodeTemplate setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetNodeTemplate) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public SetNodeTemplate setQuotaUser(java.lang.String quotaUser) { - return (SetNodeTemplate) super.setQuotaUser(quotaUser); - } + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } @Override - public SetNodeTemplate setUploadType(java.lang.String uploadType) { - return (SetNodeTemplate) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public SetNodeTemplate setUploadProtocol(java.lang.String uploadProtocol) { - return (SetNodeTemplate) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public SetNodeTemplate setUserIp(java.lang.String userIp) { - return (SetNodeTemplate) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -129282,7 +128511,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetNodeTemplate setProject(java.lang.String project) { + public Delete setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -129303,7 +128532,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public SetNodeTemplate setZone(java.lang.String zone) { + 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 " + @@ -129313,18 +128542,18 @@ public SetNodeTemplate setZone(java.lang.String zone) { return this; } - /** Name of the NodeGroup resource to update. */ + /** Name of the NodeGroup resource to delete. */ @com.google.api.client.util.Key private java.lang.String nodeGroup; - /** Name of the NodeGroup resource to update. + /** Name of the NodeGroup resource to delete. */ public java.lang.String getNodeGroup() { return nodeGroup; } - /** Name of the NodeGroup resource to update. */ - public SetNodeTemplate setNodeGroup(java.lang.String nodeGroup) { + /** Name of the NodeGroup resource to delete. */ + public Delete setNodeGroup(java.lang.String nodeGroup) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), "Parameter nodeGroup must conform to the pattern " + @@ -129378,41 +128607,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 SetNodeTemplate setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SetNodeTemplate set(String parameterName, Object value) { - return (SetNodeTemplate) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Simulates maintenance event on specified nodes from the node group. + * Deletes specified nodes from the node group. * - * Create a request for the method "nodeGroups.simulateMaintenanceEvent". + * Create a request for the method "nodeGroups.deleteNodes". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SimulateMaintenanceEvent#execute()} method to invoke the remote - * operation. + * parameters, call the {@link DeleteNodes#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 nodeGroup Name of the NodeGroup resource whose nodes will go under maintenance - simulation. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsSimulateMaintenanceEventRequest} + * @param nodeGroup Name of the NodeGroup resource whose nodes will be deleted. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest} * @return the request */ - public SimulateMaintenanceEvent simulateMaintenanceEvent(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsSimulateMaintenanceEventRequest content) throws java.io.IOException { - SimulateMaintenanceEvent result = new SimulateMaintenanceEvent(project, zone, nodeGroup, content); + public DeleteNodes deleteNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest content) throws java.io.IOException { + DeleteNodes result = new DeleteNodes(project, zone, nodeGroup, content); initialize(result); return result; } - public class SimulateMaintenanceEvent extends ComputeRequest { + public class DeleteNodes extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -129424,24 +128651,23 @@ public class SimulateMaintenanceEvent extends ComputeRequest {@link SimulateMaintenanceEvent#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 DeleteNodes#execute()} method to invoke the remote operation.

+ * {@link + * DeleteNodes#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 nodeGroup Name of the NodeGroup resource whose nodes will go under maintenance - simulation. - * @param content the {@link com.google.api.services.compute.model.NodeGroupsSimulateMaintenanceEventRequest} + * @param nodeGroup Name of the NodeGroup resource whose nodes will be deleted. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest} * @since 1.13 */ - protected SimulateMaintenanceEvent(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsSimulateMaintenanceEventRequest content) { + protected DeleteNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsDeleteNodesRequest 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()) { @@ -129464,63 +128690,63 @@ protected SimulateMaintenanceEvent(java.lang.String project, java.lang.String zo } @Override - public SimulateMaintenanceEvent set$Xgafv(java.lang.String $Xgafv) { - return (SimulateMaintenanceEvent) super.set$Xgafv($Xgafv); + public DeleteNodes set$Xgafv(java.lang.String $Xgafv) { + return (DeleteNodes) super.set$Xgafv($Xgafv); } @Override - public SimulateMaintenanceEvent setAccessToken(java.lang.String accessToken) { - return (SimulateMaintenanceEvent) super.setAccessToken(accessToken); + public DeleteNodes setAccessToken(java.lang.String accessToken) { + return (DeleteNodes) super.setAccessToken(accessToken); } @Override - public SimulateMaintenanceEvent setAlt(java.lang.String alt) { - return (SimulateMaintenanceEvent) super.setAlt(alt); + public DeleteNodes setAlt(java.lang.String alt) { + return (DeleteNodes) super.setAlt(alt); } @Override - public SimulateMaintenanceEvent setCallback(java.lang.String callback) { - return (SimulateMaintenanceEvent) super.setCallback(callback); + public DeleteNodes setCallback(java.lang.String callback) { + return (DeleteNodes) super.setCallback(callback); } @Override - public SimulateMaintenanceEvent setFields(java.lang.String fields) { - return (SimulateMaintenanceEvent) super.setFields(fields); + public DeleteNodes setFields(java.lang.String fields) { + return (DeleteNodes) super.setFields(fields); } @Override - public SimulateMaintenanceEvent setKey(java.lang.String key) { - return (SimulateMaintenanceEvent) super.setKey(key); + public DeleteNodes setKey(java.lang.String key) { + return (DeleteNodes) super.setKey(key); } @Override - public SimulateMaintenanceEvent setOauthToken(java.lang.String oauthToken) { - return (SimulateMaintenanceEvent) super.setOauthToken(oauthToken); + public DeleteNodes setOauthToken(java.lang.String oauthToken) { + return (DeleteNodes) super.setOauthToken(oauthToken); } @Override - public SimulateMaintenanceEvent setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SimulateMaintenanceEvent) super.setPrettyPrint(prettyPrint); + public DeleteNodes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DeleteNodes) super.setPrettyPrint(prettyPrint); } @Override - public SimulateMaintenanceEvent setQuotaUser(java.lang.String quotaUser) { - return (SimulateMaintenanceEvent) super.setQuotaUser(quotaUser); + public DeleteNodes setQuotaUser(java.lang.String quotaUser) { + return (DeleteNodes) super.setQuotaUser(quotaUser); } @Override - public SimulateMaintenanceEvent setUploadType(java.lang.String uploadType) { - return (SimulateMaintenanceEvent) super.setUploadType(uploadType); + public DeleteNodes setUploadType(java.lang.String uploadType) { + return (DeleteNodes) super.setUploadType(uploadType); } @Override - public SimulateMaintenanceEvent setUploadProtocol(java.lang.String uploadProtocol) { - return (SimulateMaintenanceEvent) super.setUploadProtocol(uploadProtocol); + public DeleteNodes setUploadProtocol(java.lang.String uploadProtocol) { + return (DeleteNodes) super.setUploadProtocol(uploadProtocol); } @Override - public SimulateMaintenanceEvent setUserIp(java.lang.String userIp) { - return (SimulateMaintenanceEvent) super.setUserIp(userIp); + public DeleteNodes setUserIp(java.lang.String userIp) { + return (DeleteNodes) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -129534,7 +128760,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SimulateMaintenanceEvent setProject(java.lang.String project) { + public DeleteNodes setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -129555,7 +128781,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public SimulateMaintenanceEvent setZone(java.lang.String zone) { + public DeleteNodes 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 " + @@ -129565,22 +128791,18 @@ public SimulateMaintenanceEvent setZone(java.lang.String zone) { return this; } - /** - * Name of the NodeGroup resource whose nodes will go under maintenance simulation. - */ + /** Name of the NodeGroup resource whose nodes will be deleted. */ @com.google.api.client.util.Key private java.lang.String nodeGroup; - /** Name of the NodeGroup resource whose nodes will go under maintenance simulation. + /** Name of the NodeGroup resource whose nodes will be deleted. */ public java.lang.String getNodeGroup() { return nodeGroup; } - /** - * Name of the NodeGroup resource whose nodes will go under maintenance simulation. - */ - public SimulateMaintenanceEvent setNodeGroup(java.lang.String nodeGroup) { + /** Name of the NodeGroup resource whose nodes will be deleted. */ + public DeleteNodes setNodeGroup(java.lang.String nodeGroup) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), "Parameter nodeGroup must conform to the pattern " + @@ -129634,39 +128856,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 SimulateMaintenanceEvent setRequestId(java.lang.String requestId) { + public DeleteNodes setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public SimulateMaintenanceEvent set(String parameterName, Object value) { - return (SimulateMaintenanceEvent) super.set(parameterName, value); + public DeleteNodes set(String parameterName, Object value) { + return (DeleteNodes) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Returns the specified NodeGroup. Get a list of available NodeGroups by making a list() request. + * Note: the "nodes" field should not be used. Use nodeGroups.listNodes instead. * - * Create a request for the method "nodeGroups.testIamPermissions". + * Create a request for the method "nodeGroups.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link 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 resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param nodeGroup Name of the node group to return. * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); + public Get get(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) throws java.io.IOException { + Get result = new Get(project, zone, nodeGroup); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -129674,28 +128896,27 @@ public class TestIamPermissions extends ComputeRequest {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

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

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param nodeGroup Name of the node group to return. * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected Get(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeGroup.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -129708,72 +128929,82 @@ protected TestIamPermissions(java.lang.String project, java.lang.String zone, ja "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."); + this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) 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. */ @@ -129787,7 +129018,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions 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 " + @@ -129808,7 +129039,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public TestIamPermissions 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 " + @@ -129818,107 +129049,101 @@ public TestIamPermissions setZone(java.lang.String zone) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the node group to return. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String nodeGroup; - /** Name or id of the resource for this request. + /** Name of the node group to return. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getNodeGroup() { + return nodeGroup; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Name of the node group to return. */ + public Get setNodeGroup(java.lang.String nodeGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.nodeGroup = nodeGroup; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the NodeTemplates collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NodeTemplates.List request = compute.nodeTemplates().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public NodeTemplates nodeTemplates() { - return new NodeTemplates(); - } - - /** - * The "nodeTemplates" collection of methods. - */ - public class NodeTemplates { - /** - * Retrieves an aggregated list of node templates. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. * - * Create a request for the method "nodeTemplates.aggregatedList". + * Create a request for the method "nodeGroups.getIamPolicy". * * 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 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 AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class GetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/nodeTemplates"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Retrieves an aggregated list of node templates. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. * - * Create a request for the method "nodeTemplates.aggregatedList". + * Create a request for the method "nodeGroups.getIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

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

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

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

* * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTemplateAggregatedList.class); + 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 @@ -129932,63 +129157,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public GetIamPolicy setUserIp(java.lang.String userIp) { + return (GetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -130002,7 +129227,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + public GetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -130012,459 +129237,190 @@ public AggregatedList setProject(java.lang.String project) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String filter; - - /** 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: + private java.lang.String zone; - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + /** 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; + } - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; - You cannot combine constraints on multiple fields using regular expressions. + /** Name or id of the resource for this request. */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getResource() { + return resource; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * 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; + /** Name or id of the resource for this request. */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ + /** Requested IAM Policy version. */ @com.google.api.client.util.Key - private java.lang.Long serviceProjectNumber; + private java.lang.Integer optionsRequestedPolicyVersion; - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. + /** Requested IAM Policy version. */ - public java.lang.Long getServiceProjectNumber() { - return serviceProjectNumber; + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; } - /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. - */ - public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * Deletes the specified NodeTemplate resource. + * Creates a NodeGroup resource in the specified project using the data included in the request. * - * Create a request for the method "nodeTemplates.delete". + * Create a request for the method "nodeGroups.insert". * * 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 Insert#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param nodeTemplate Name of the NodeTemplate resource to delete. + * @param zone The name of the zone for this request. + * @param initialNodeCount Initial count of nodes in the node group. + * @param content the {@link com.google.api.services.compute.model.NodeGroup} * @return the request */ - public Delete delete(java.lang.String project, java.lang.String region, java.lang.String nodeTemplate) throws java.io.IOException { - Delete result = new Delete(project, region, nodeTemplate); + public Insert insert(java.lang.String project, java.lang.String zone, java.lang.Integer initialNodeCount, com.google.api.services.compute.model.NodeGroup content) throws java.io.IOException { + Insert result = new Insert(project, zone, initialNodeCount, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern NODE_TEMPLATE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Deletes the specified NodeTemplate resource. + * Creates a NodeGroup resource in the specified project using the data included in the request. * - * Create a request for the method "nodeTemplates.delete". + * Create a request for the method "nodeGroups.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param nodeTemplate Name of the NodeTemplate resource to delete. + * @param zone The name of the zone for this request. + * @param initialNodeCount Initial count of nodes in the node group. + * @param content the {@link com.google.api.services.compute.model.NodeGroup} * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String region, java.lang.String nodeTemplate) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + protected Insert(java.lang.String project, java.lang.String zone, java.lang.Integer initialNodeCount, com.google.api.services.compute.model.NodeGroup content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.nodeTemplate = com.google.api.client.util.Preconditions.checkNotNull(nodeTemplate, "Required parameter nodeTemplate must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), - "Parameter nodeTemplate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } + this.initialNodeCount = com.google.api.client.util.Preconditions.checkNotNull(initialNodeCount, "Required parameter initialNodeCount must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -130478,7 +129434,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Delete setProject(java.lang.String project) { + public Insert setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -130488,45 +129444,40 @@ public Delete setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** The name of the region for this request. */ - public Delete setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public Insert setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } - /** Name of the NodeTemplate resource to delete. */ + /** Initial count of nodes in the node group. */ @com.google.api.client.util.Key - private java.lang.String nodeTemplate; + private java.lang.Integer initialNodeCount; - /** Name of the NodeTemplate resource to delete. + /** Initial count of nodes in the node group. */ - public java.lang.String getNodeTemplate() { - return nodeTemplate; + public java.lang.Integer getInitialNodeCount() { + return initialNodeCount; } - /** Name of the NodeTemplate resource to delete. */ - public Delete setNodeTemplate(java.lang.String nodeTemplate) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), - "Parameter nodeTemplate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.nodeTemplate = nodeTemplate; + /** Initial count of nodes in the node group. */ + public Insert setInitialNodeCount(java.lang.Integer initialNodeCount) { + this.initialNodeCount = initialNodeCount; return this; } @@ -130574,83 +129525,74 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Delete setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Returns the specified node template. + * Retrieves a list of node groups available to the specified project. Note: use + * nodeGroups.listNodes for more details about each group. * - * Create a request for the method "nodeTemplates.get". + * Create a request for the method "nodeGroups.list". * * 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 List#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param nodeTemplate Name of the node template to return. + * @param zone The name of the zone for this request. * @return the request */ - public Get get(java.lang.String project, java.lang.String region, java.lang.String nodeTemplate) throws java.io.IOException { - Get result = new Get(project, region, nodeTemplate); + 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 Get extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern NODE_TEMPLATE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Returns the specified node template. + * Retrieves a list of node groups available to the specified project. Note: use + * nodeGroups.listNodes for more details about each group. * - * Create a request for the method "nodeTemplates.get". + * Create a request for the method "nodeGroups.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

* * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param nodeTemplate Name of the node template to return. + * @param zone The name of the zone for this request. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String region, java.lang.String nodeTemplate) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTemplate.class); + protected List(java.lang.String project, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeGroupList.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.nodeTemplate = com.google.api.client.util.Preconditions.checkNotNull(nodeTemplate, "Required parameter nodeTemplate must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), - "Parameter nodeTemplate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override @@ -130664,63 +129606,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -130734,7 +129676,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get 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 " + @@ -130744,397 +129686,424 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** The name of the region for this request. */ - public Get setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public List setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } - /** Name of the node template to return. */ - @com.google.api.client.util.Key - private java.lang.String nodeTemplate; - - /** Name of the node template to return. - */ - public java.lang.String getNodeTemplate() { - return nodeTemplate; - } - - /** Name of the node template to return. */ - public Get setNodeTemplate(java.lang.String nodeTemplate) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), - "Parameter nodeTemplate must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.nodeTemplate = nodeTemplate; - 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 "nodeTemplates.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 region The name of the region 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 region, java.lang.String resource) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(project, region, resource); - initialize(result); - return result; - } - - public class GetIamPolicy extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Gets the access control policy for a resource. May be empty if no such policy or resource - * exists. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. * - * Create a request for the method "nodeTemplates.getIamPolicy". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

+ * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @since 1.13 + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. */ - protected GetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - } - - @Override - public 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(); - } + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } + /** 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. - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } + 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. - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } + 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: - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; } - @Override - public GetIamPolicy setUserIp(java.lang.String userIp) { - return (GetIamPolicy) super.setUserIp(userIp); + /** + * 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; } - /** Project ID 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 project; + private java.lang.Long maxResults; - /** Project ID 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 getProject() { - return project; + public java.lang.Long getMaxResults() { + return maxResults; } - /** 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; + /** + * 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; } - /** The name of the region for this request. */ + /** + * 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 region; + private java.lang.String orderBy; - /** The name of the region for this request. + /** 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 getRegion() { - return region; + public java.lang.String getOrderBy() { + return orderBy; } - /** The name of the region for this request. */ - public GetIamPolicy setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; return this; } - /** Name or id of the resource for this request. */ + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String pageToken; - /** Name or id of the resource for this request. + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * 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; } - /** Requested IAM Policy version. */ + /** + * 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.Integer optionsRequestedPolicyVersion; + private java.lang.Boolean returnPartialSuccess; - /** Requested IAM Policy version. + /** 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.Integer getOptionsRequestedPolicyVersion() { - return optionsRequestedPolicyVersion; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** Requested IAM Policy version. */ - public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { - this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Creates a NodeTemplate resource in the specified project using the data included in the request. + * Lists nodes in the node group. * - * Create a request for the method "nodeTemplates.insert". + * Create a request for the method "nodeGroups.listNodes". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link ListNodes#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.NodeTemplate} + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the NodeGroup resource whose nodes you want to list. * @return the request */ - public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NodeTemplate content) throws java.io.IOException { - Insert result = new Insert(project, region, content); + public ListNodes listNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) throws java.io.IOException { + ListNodes result = new ListNodes(project, zone, nodeGroup); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class ListNodes extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private final java.util.regex.Pattern NODE_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Creates a NodeTemplate resource in the specified project using the data included in the - * request. + * Lists nodes in the node group. * - * Create a request for the method "nodeTemplates.insert". + * Create a request for the method "nodeGroups.listNodes". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.NodeTemplate} + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the NodeGroup resource whose nodes you want to list. * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NodeTemplate content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected ListNodes(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.NodeGroupsListNodes.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } + this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public ListNodes set$Xgafv(java.lang.String $Xgafv) { + return (ListNodes) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public ListNodes setAccessToken(java.lang.String accessToken) { + return (ListNodes) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public ListNodes setAlt(java.lang.String alt) { + return (ListNodes) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public ListNodes setCallback(java.lang.String callback) { + return (ListNodes) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public ListNodes setFields(java.lang.String fields) { + return (ListNodes) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public ListNodes setKey(java.lang.String key) { + return (ListNodes) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public ListNodes setOauthToken(java.lang.String oauthToken) { + return (ListNodes) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public ListNodes setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListNodes) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public ListNodes setQuotaUser(java.lang.String quotaUser) { + return (ListNodes) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public ListNodes setUploadType(java.lang.String uploadType) { + return (ListNodes) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public ListNodes setUploadProtocol(java.lang.String uploadProtocol) { + return (ListNodes) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public ListNodes setUserIp(java.lang.String userIp) { + return (ListNodes) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -131148,7 +130117,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + public ListNodes setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -131158,248 +130127,45 @@ public Insert setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ - @com.google.api.client.util.Key - private java.lang.String region; - - /** The name of the region for this request. - */ - public java.lang.String getRegion() { - return region; - } - - /** The name of the region for this request. */ - public Insert setRegion(java.lang.String region) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.region = region; - return this; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. - - 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; - } + private 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. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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 name of the zone for this request. */ - 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); + public java.lang.String getZone() { + return zone; } - } - /** - * Retrieves a list of node templates available to the specified project. - * - * Create a request for the method "nodeTemplates.list". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @return the request - */ - public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { - List result = new List(project, region); - initialize(result); - return result; - } - - public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - /** - * Retrieves a list of node templates available to the specified project. - * - * Create a request for the method "nodeTemplates.list". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

- * - * @param project Project ID for this request. - * @param region The name of the region for this request. - * @since 1.13 - */ - protected List(java.lang.String project, java.lang.String region) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTemplateList.class); - this.project = com.google.api.client.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."); + /** The name of the zone for this request. */ + public ListNodes setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - } - - @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; + this.zone = zone; return this; } - /** The name of the region for this request. */ + /** Name of the NodeGroup resource whose nodes you want to list. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String nodeGroup; - /** The name of the region for this request. + /** Name of the NodeGroup resource whose nodes you want to list. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getNodeGroup() { + return nodeGroup; } - /** The name of the region for this request. */ - public List setRegion(java.lang.String region) { + /** Name of the NodeGroup resource whose nodes you want to list. */ + public ListNodes setNodeGroup(java.lang.String nodeGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.region = region; + this.nodeGroup = nodeGroup; return this; } @@ -131534,7 +130300,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public ListNodes setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -131563,7 +130329,7 @@ public java.lang.Long getMaxResults() { * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public List setMaxResults(java.lang.Long maxResults) { + public ListNodes setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -131607,7 +130373,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public ListNodes setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -131630,7 +130396,7 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public List setPageToken(java.lang.String pageToken) { + public ListNodes setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -131662,146 +130428,145 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public ListNodes setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public ListNodes set(String parameterName, Object value) { + return (ListNodes) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Updates the specified node group. * - * Create a request for the method "nodeTemplates.setIamPolicy". + * Create a request for the method "nodeGroups.patch". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the NodeGroup resource to update. + * @param content the {@link com.google.api.services.compute.model.NodeGroup} * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(project, region, resource, content); + public Patch patch(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroup content) throws java.io.IOException { + Patch result = new Patch(project, zone, nodeGroup, content); initialize(result); return result; } - public class SetIamPolicy extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern RESOURCE_PATTERN = + private final java.util.regex.Pattern NODE_GROUP_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Updates the specified node group. * - * Create a request for the method "nodeTemplates.setIamPolicy". + * Create a request for the method "nodeGroups.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the NodeGroup resource to update. + * @param content the {@link com.google.api.services.compute.model.NodeGroup} * @since 1.13 */ - protected SetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + protected Patch(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroup content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + 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(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -131815,7 +130580,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetIamPolicy 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 " + @@ -131825,183 +130590,232 @@ public SetIamPolicy setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** The name of the region for this request. */ - public SetIamPolicy setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public Patch setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } - /** Name or id of the resource for this request. */ + /** Name of the NodeGroup resource to update. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String nodeGroup; - /** Name or id of the resource for this request. + /** Name of the NodeGroup resource to update. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getNodeGroup() { + return nodeGroup; } - /** Name or id of the resource for this request. */ - public SetIamPolicy setResource(java.lang.String resource) { + /** Name of the NodeGroup resource to update. */ + public Patch setNodeGroup(java.lang.String nodeGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.nodeGroup = nodeGroup; + 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 SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Perform maintenance on a subset of nodes in the node group. * - * Create a request for the method "nodeTemplates.testIamPermissions". + * Create a request for the method "nodeGroups.performMaintenance". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the node group scoping this request. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(project, region, resource, content); + public PerformMaintenance performMaintenance(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest content) throws java.io.IOException { + PerformMaintenance result = new PerformMaintenance(project, zone, nodeGroup, content); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class PerformMaintenance extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/performMaintenance"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - private final java.util.regex.Pattern REGION_PATTERN = + private final java.util.regex.Pattern ZONE_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - private final java.util.regex.Pattern RESOURCE_PATTERN = + private final java.util.regex.Pattern NODE_GROUP_PATTERN = java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Returns permissions that a caller has on the specified resource. + * Perform maintenance on a subset of nodes in the node group. * - * Create a request for the method "nodeTemplates.testIamPermissions". + * Create a request for the method "nodeGroups.performMaintenance". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A + * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote + * operation.

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

* * @param project Project ID for this request. - * @param region The name of the region for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the node group scoping this request. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest} * @since 1.13 */ - protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + protected PerformMaintenance(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsPerformMaintenanceRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) { + return (PerformMaintenance) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public PerformMaintenance setAccessToken(java.lang.String accessToken) { + return (PerformMaintenance) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public PerformMaintenance setAlt(java.lang.String alt) { + return (PerformMaintenance) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public PerformMaintenance setCallback(java.lang.String callback) { + return (PerformMaintenance) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public PerformMaintenance setFields(java.lang.String fields) { + return (PerformMaintenance) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public PerformMaintenance setKey(java.lang.String key) { + return (PerformMaintenance) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public PerformMaintenance setOauthToken(java.lang.String oauthToken) { + return (PerformMaintenance) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PerformMaintenance) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public PerformMaintenance setQuotaUser(java.lang.String quotaUser) { + return (PerformMaintenance) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public PerformMaintenance setUploadType(java.lang.String uploadType) { + return (PerformMaintenance) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) { + return (PerformMaintenance) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public PerformMaintenance setUserIp(java.lang.String userIp) { + return (PerformMaintenance) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -132015,7 +130829,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public TestIamPermissions 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 " + @@ -132025,198 +130839,232 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String zone; - /** The name of the region for this request. + /** The name of the zone for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getZone() { + return zone; } - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { + /** The name of the zone for this request. */ + public PerformMaintenance setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), - "Parameter region must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.region = region; + this.zone = zone; return this; } - /** Name or id of the resource for this request. */ + /** Name of the node group scoping this request. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String nodeGroup; - /** Name or id of the resource for this request. + /** Name of the node group scoping this request. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getNodeGroup() { + return nodeGroup; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Name of the node group scoping this request. */ + public PerformMaintenance setNodeGroup(java.lang.String nodeGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.resource = resource; + this.nodeGroup = nodeGroup; return this; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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. - /** - * An accessor for creating requests from the NodeTypes collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.NodeTypes.List request = compute.nodeTypes().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public NodeTypes nodeTypes() { - return new NodeTypes(); - } + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - /** - * The "nodeTypes" collection of methods. - */ - public class NodeTypes { + 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 PerformMaintenance setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + @Override + public PerformMaintenance set(String parameterName, Object value) { + return (PerformMaintenance) super.set(parameterName, value); + } + } /** - * Retrieves an aggregated list of node types. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "nodeTypes.aggregatedList". + * Create a request for the method "nodeGroups.setIamPolicy". * * 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 SetIamPolicy#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, zone, resource, content); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class SetIamPolicy extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/nodeTypes"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + /** - * Retrieves an aggregated list of node types. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Sets the access control policy on the specified resource. Replaces any existing policy. * - * Create a request for the method "nodeTypes.aggregatedList". + * Create a request for the method "nodeGroups.setIamPolicy". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

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

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

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

* * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.ZoneSetPolicyRequest} * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTypeAggregatedList.class); + protected SetIamPolicy(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.ZoneSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -132230,7 +131078,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + public SetIamPolicy setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -132240,354 +131088,327 @@ public AggregatedList setProject(java.lang.String project) { return this; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. - * - * You cannot combine constraints on multiple fields using regular expressions. - */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String filter; + private java.lang.String zone; - /** A filter expression that filters resources listed in the response. Most Compute resources support - two types of filter expressions: expressions that support regular expressions and expressions that - follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in - one request. + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } - If you want to use AIP-160, your expression must specify the field name, an operator, and the value - that you want to use for filtering. The value must be a string, a number, or a boolean. The - operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + /** The name of the zone for this request. */ + public SetIamPolicy setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; - The `:*` comparison can be used to test whether a key has been defined. For example, to find all - objects with `owner` label use: ``` labels.owner:* ``` + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); + } + } + /** + * Updates the node template of the node group. + * + * Create a request for the method "nodeGroups.setNodeTemplate". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetNodeTemplate#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 nodeGroup Name of the NodeGroup resource to update. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest} + * @return the request + */ + public SetNodeTemplate setNodeTemplate(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest content) throws java.io.IOException { + SetNodeTemplate result = new SetNodeTemplate(project, zone, nodeGroup, content); + initialize(result); + return result; + } - If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against - a single un-parenthesized expression with or without quotes or against multiple parenthesized - expressions. Examples: + public class SetNodeTemplate extends ComputeRequest { - `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted - literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate"; - The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The - literal value must match the entire field. + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; - } + private final java.util.regex.Pattern NODE_GROUP_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * Updates the node template of the node group. * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. + * Create a request for the method "nodeGroups.setNodeTemplate". * - * For example, to filter for instances that do not end with name "instance", you would use - * `name ne .*instance`. + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetNodeTemplate#execute()} method to invoke the remote operation. + *

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

* - * You cannot combine constraints on multiple fields using regular expressions. + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the NodeGroup resource to update. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest} + * @since 1.13 */ - public AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; + protected SetNodeTemplate(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsSetNodeTemplateRequest 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.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - @com.google.api.client.util.Key - private java.lang.Boolean includeAllScopes; - - /** Indicates whether every visible scope for each scope type (zone, region, global) should be included - in the response. For new resource types added after this field, the flag has no effect as new - resource types will always include every visible scope for each scope type in response. For - resource types which predate this field, if this flag is omitted or false, only scopes of the scope - types where the resource type is expected to be found will be included. - */ - public java.lang.Boolean getIncludeAllScopes() { - return includeAllScopes; + @Override + public SetNodeTemplate set$Xgafv(java.lang.String $Xgafv) { + return (SetNodeTemplate) super.set$Xgafv($Xgafv); } - /** - * Indicates whether every visible scope for each scope type (zone, region, global) should be - * included in the response. For new resource types added after this field, the flag has no - * effect as new resource types will always include every visible scope for each scope type in - * response. For resource types which predate this field, if this flag is omitted or false, - * only scopes of the scope types where the resource type is expected to be found will be - * included. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - return this; + @Override + public SetNodeTemplate setAccessToken(java.lang.String accessToken) { + return (SetNodeTemplate) super.setAccessToken(accessToken); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; + @Override + public SetNodeTemplate setAlt(java.lang.String alt) { + return (SetNodeTemplate) super.setAlt(alt); + } - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the - next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. - (Default: `500`) [default: 500] [minimum: 0] - */ - public java.lang.Long getMaxResults() { - return maxResults; + @Override + public SetNodeTemplate setCallback(java.lang.String callback) { + return (SetNodeTemplate) super.setCallback(callback); } - /** - * The maximum number of results per page that should be returned. If the number of available - * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be - * used to get the next page of results in subsequent list requests. Acceptable values are `0` - * to `500`, inclusive. (Default: `500`) - */ - public AggregatedList setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; + @Override + public SetNodeTemplate setFields(java.lang.String fields) { + return (SetNodeTemplate) super.setFields(fields); } - /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. - * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. - * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public SetNodeTemplate setKey(java.lang.String key) { + return (SetNodeTemplate) super.setKey(key); + } - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + @Override + public SetNodeTemplate setOauthToken(java.lang.String oauthToken) { + return (SetNodeTemplate) super.setOauthToken(oauthToken); + } - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + @Override + public SetNodeTemplate setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetNodeTemplate) super.setPrettyPrint(prettyPrint); + } - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public SetNodeTemplate setQuotaUser(java.lang.String quotaUser) { + return (SetNodeTemplate) super.setQuotaUser(quotaUser); } - /** - * 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. + @Override + public SetNodeTemplate setUploadType(java.lang.String uploadType) { + return (SetNodeTemplate) super.setUploadType(uploadType); + } + + @Override + public SetNodeTemplate setUploadProtocol(java.lang.String uploadProtocol) { + return (SetNodeTemplate) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetNodeTemplate setUserIp(java.lang.String userIp) { + return (SetNodeTemplate) 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 AggregatedList setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public SetNodeTemplate setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; return this; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** The name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String zone; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** The name of the zone for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getZone() { + return zone; } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ - public AggregatedList setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** The name of the zone for this request. */ + public SetNodeTemplate setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; return this; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Name of the NodeGroup resource to update. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String nodeGroup; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Name of the NodeGroup resource to update. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getNodeGroup() { + return nodeGroup; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** Name of the NodeGroup resource to update. */ + public SetNodeTemplate setNodeGroup(java.lang.String nodeGroup) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.nodeGroup = nodeGroup; return this; } /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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.Long serviceProjectNumber; + private java.lang.String requestId; - /** The Shared VPC service project id or service project number for which aggregated list request is - invoked for subnetworks list-usable api. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating 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.Long getServiceProjectNumber() { - return serviceProjectNumber; + public java.lang.String getRequestId() { + return requestId; } /** - * The Shared VPC service project id or service project number for which aggregated list - * request is invoked for subnetworks list-usable api. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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 AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { - this.serviceProjectNumber = serviceProjectNumber; + public SetNodeTemplate setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public SetNodeTemplate set(String parameterName, Object value) { + return (SetNodeTemplate) super.set(parameterName, value); } } /** - * Returns the specified node type. + * Simulates maintenance event on specified nodes from the node group. * - * Create a request for the method "nodeTypes.get". + * Create a request for the method "nodeGroups.simulateMaintenanceEvent". * * 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 SimulateMaintenanceEvent#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 nodeType Name of the node type to return. + * @param nodeGroup Name of the NodeGroup resource whose nodes will go under maintenance + simulation. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsSimulateMaintenanceEventRequest} * @return the request */ - public Get get(java.lang.String project, java.lang.String zone, java.lang.String nodeType) throws java.io.IOException { - Get result = new Get(project, zone, nodeType); + public SimulateMaintenanceEvent simulateMaintenanceEvent(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsSimulateMaintenanceEventRequest content) throws java.io.IOException { + SimulateMaintenanceEvent result = new SimulateMaintenanceEvent(project, zone, nodeGroup, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class SimulateMaintenanceEvent extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeTypes/{nodeType}"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -132595,26 +131416,29 @@ public class Get extends ComputeRequest {@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

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

{@link SimulateMaintenanceEvent#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 zone The name of the zone for this request. - * @param nodeType Name of the node type to return. + * @param nodeGroup Name of the NodeGroup resource whose nodes will go under maintenance + simulation. + * @param content the {@link com.google.api.services.compute.model.NodeGroupsSimulateMaintenanceEventRequest} * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String zone, java.lang.String nodeType) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeType.class); + protected SimulateMaintenanceEvent(java.lang.String project, java.lang.String zone, java.lang.String nodeGroup, com.google.api.services.compute.model.NodeGroupsSimulateMaintenanceEventRequest 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(), @@ -132627,82 +131451,72 @@ protected Get(java.lang.String project, java.lang.String zone, java.lang.String "Parameter zone must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } - this.nodeType = com.google.api.client.util.Preconditions.checkNotNull(nodeType, "Required parameter nodeType must be specified."); + this.nodeGroup = com.google.api.client.util.Preconditions.checkNotNull(nodeGroup, "Required parameter nodeGroup must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_TYPE_PATTERN.matcher(nodeType).matches(), - "Parameter nodeType must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup 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 SimulateMaintenanceEvent set$Xgafv(java.lang.String $Xgafv) { + return (SimulateMaintenanceEvent) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public SimulateMaintenanceEvent setAccessToken(java.lang.String accessToken) { + return (SimulateMaintenanceEvent) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public SimulateMaintenanceEvent setAlt(java.lang.String alt) { + return (SimulateMaintenanceEvent) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public SimulateMaintenanceEvent setCallback(java.lang.String callback) { + return (SimulateMaintenanceEvent) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public SimulateMaintenanceEvent setFields(java.lang.String fields) { + return (SimulateMaintenanceEvent) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public SimulateMaintenanceEvent setKey(java.lang.String key) { + return (SimulateMaintenanceEvent) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public SimulateMaintenanceEvent setOauthToken(java.lang.String oauthToken) { + return (SimulateMaintenanceEvent) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public SimulateMaintenanceEvent setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SimulateMaintenanceEvent) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public SimulateMaintenanceEvent setQuotaUser(java.lang.String quotaUser) { + return (SimulateMaintenanceEvent) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public SimulateMaintenanceEvent setUploadType(java.lang.String uploadType) { + return (SimulateMaintenanceEvent) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public SimulateMaintenanceEvent setUploadProtocol(java.lang.String uploadProtocol) { + return (SimulateMaintenanceEvent) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public SimulateMaintenanceEvent setUserIp(java.lang.String userIp) { + return (SimulateMaintenanceEvent) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -132716,7 +131530,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get setProject(java.lang.String project) { + public SimulateMaintenanceEvent setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -132737,7 +131551,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public Get setZone(java.lang.String zone) { + public SimulateMaintenanceEvent 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 " + @@ -132747,53 +131561,108 @@ public Get setZone(java.lang.String zone) { return this; } - /** Name of the node type to return. */ + /** + * Name of the NodeGroup resource whose nodes will go under maintenance simulation. + */ @com.google.api.client.util.Key - private java.lang.String nodeType; + private java.lang.String nodeGroup; - /** Name of the node type to return. + /** Name of the NodeGroup resource whose nodes will go under maintenance simulation. */ - public java.lang.String getNodeType() { - return nodeType; + public java.lang.String getNodeGroup() { + return nodeGroup; } - /** Name of the node type to return. */ - public Get setNodeType(java.lang.String nodeType) { + /** + * Name of the NodeGroup resource whose nodes will go under maintenance simulation. + */ + public SimulateMaintenanceEvent setNodeGroup(java.lang.String nodeGroup) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NODE_TYPE_PATTERN.matcher(nodeType).matches(), - "Parameter nodeType must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(), + "Parameter nodeGroup must conform to the pattern " + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } - this.nodeType = nodeType; + this.nodeGroup = nodeGroup; + 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 SimulateMaintenanceEvent 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 SimulateMaintenanceEvent set(String parameterName, Object value) { + return (SimulateMaintenanceEvent) super.set(parameterName, value); } } /** - * Retrieves a list of node types available to the specified project. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "nodeTypes.list". + * Create a request for the method "nodeGroups.testIamPermissions". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. * * @param project Project ID for this request. * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @return the request */ - public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { - List result = new List(project, zone); + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, zone, resource, content); initialize(result); return result; } - public class List extends ComputeRequest { + public class TestIamPermissions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeTypes"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); @@ -132801,22 +131670,28 @@ public class List extends ComputeRequest {@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

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

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

* * @param project Project ID for this request. * @param zone The name of the zone for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @since 1.13 */ - protected List(java.lang.String project, java.lang.String zone) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTypeList.class); + protected TestIamPermissions(java.lang.String project, java.lang.String zone, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), @@ -132829,76 +131704,72 @@ protected List(java.lang.String project, java.lang.String zone) { "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(); + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); } @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); + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -132912,7 +131783,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public List setProject(java.lang.String project) { + public TestIamPermissions setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -132933,7 +131804,7 @@ public java.lang.String getZone() { } /** The name of the zone for this request. */ - public List setZone(java.lang.String zone) { + public TestIamPermissions setZone(java.lang.String zone) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), "Parameter zone must conform to the pattern " + @@ -132943,6 +131814,200 @@ public List 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. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the NodeTemplates collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.NodeTemplates.List request = compute.nodeTemplates().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public NodeTemplates nodeTemplates() { + return new NodeTemplates(); + } + + /** + * The "nodeTemplates" collection of methods. + */ + public class NodeTemplates { + + /** + * Retrieves an aggregated list of node templates. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "nodeTemplates.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/nodeTemplates"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + /** + * Retrieves an aggregated list of node templates. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "nodeTemplates.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTemplateAggregatedList.class); + this.project = com.google.api.client.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 @@ -133074,11 +132139,45 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public AggregatedList setFilter(java.lang.String filter) { this.filter = filter; return this; } + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + return this; + } + /** * The maximum number of results per page that should be returned. If the number of available * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be @@ -133103,7 +132202,7 @@ public java.lang.Long getMaxResults() { * used to get the next page of results in subsequent list requests. Acceptable values are `0` * to `500`, inclusive. (Default: `500`) */ - public List setMaxResults(java.lang.Long maxResults) { + public AggregatedList setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -133147,7 +132246,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public AggregatedList setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -133170,7 +132269,7 @@ public java.lang.String getPageToken() { * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a * previous list request to get the next page of results. */ - public List setPageToken(java.lang.String pageToken) { + public AggregatedList setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -133202,95 +132301,7140 @@ public java.lang.Boolean getReturnPartialSuccess() { * For example, when partial success behavior is enabled, aggregatedList for a single zone * scope either returns all resources in the zone or no resources, with an error code. */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { this.returnPartialSuccess = returnPartialSuccess; return this; } + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } + /** + * Deletes the specified NodeTemplate resource. + * + * Create a request for the method "nodeTemplates.delete". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param nodeTemplate Name of the NodeTemplate resource to delete. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String region, java.lang.String nodeTemplate) throws java.io.IOException { + Delete result = new Delete(project, region, nodeTemplate); + initialize(result); + return result; + } - } + public class Delete extends ComputeRequest { - /** - * An accessor for creating requests from the OrganizationSecurityPolicies collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.OrganizationSecurityPolicies.List request = compute.organizationSecurityPolicies().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public OrganizationSecurityPolicies organizationSecurityPolicies() { - return new OrganizationSecurityPolicies(); - } + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}"; - /** - * The "organizationSecurityPolicies" collection of methods. - */ - public class OrganizationSecurityPolicies { + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - /** - * Inserts an association for the specified security policy. - * - * This has billing implications. Projects in the hierarchy with effective hierarchical security - * policies will be automatically enrolled into Cloud Armor Enterprise if not already enrolled. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.addAssociation instead. + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern NODE_TEMPLATE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes the specified NodeTemplate resource. + * + * Create a request for the method "nodeTemplates.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param nodeTemplate Name of the NodeTemplate resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String region, java.lang.String nodeTemplate) { + 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.nodeTemplate = com.google.api.client.util.Preconditions.checkNotNull(nodeTemplate, "Required parameter nodeTemplate must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), + "Parameter nodeTemplate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Delete setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public 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 NodeTemplate resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String nodeTemplate; + + /** Name of the NodeTemplate resource to delete. + */ + public java.lang.String getNodeTemplate() { + return nodeTemplate; + } + + /** Name of the NodeTemplate resource to delete. */ + public Delete setNodeTemplate(java.lang.String nodeTemplate) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), + "Parameter nodeTemplate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.nodeTemplate = nodeTemplate; + 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 node template. + * + * Create a request for the method "nodeTemplates.get". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param nodeTemplate Name of the node template to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region, java.lang.String nodeTemplate) throws java.io.IOException { + Get result = new Get(project, region, nodeTemplate); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern NODE_TEMPLATE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the specified node template. + * + * Create a request for the method "nodeTemplates.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param nodeTemplate Name of the node template to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String nodeTemplate) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTemplate.class); + this.project = com.google.api.client.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.nodeTemplate = com.google.api.client.util.Preconditions.checkNotNull(nodeTemplate, "Required parameter nodeTemplate must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), + "Parameter nodeTemplate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Get setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public Get setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name of the node template to return. */ + @com.google.api.client.util.Key + private java.lang.String nodeTemplate; + + /** Name of the node template to return. + */ + public java.lang.String getNodeTemplate() { + return nodeTemplate; + } + + /** Name of the node template to return. */ + public Get setNodeTemplate(java.lang.String nodeTemplate) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_TEMPLATE_PATTERN.matcher(nodeTemplate).matches(), + "Parameter nodeTemplate must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.nodeTemplate = nodeTemplate; + 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 "nodeTemplates.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 region The name of the region 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 region, java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(project, region, resource); + initialize(result); + return result; + } + + public class GetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource + * exists. + * + * Create a request for the method "nodeTemplates.getIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region 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 region, java.lang.String resource) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public 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 region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public GetIamPolicy setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + /** Requested IAM Policy version. */ + @com.google.api.client.util.Key + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Requested IAM Policy version. + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** Requested IAM Policy version. */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Creates a NodeTemplate resource in the specified project using the data included in the request. + * + * Create a request for the method "nodeTemplates.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.NodeTemplate} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NodeTemplate content) throws java.io.IOException { + Insert result = new Insert(project, region, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Creates a NodeTemplate resource in the specified project using the data included in the + * request. + * + * Create a request for the method "nodeTemplates.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.NodeTemplate} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NodeTemplate content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Insert setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public Insert setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of node templates available to the specified project. + * + * Create a request for the method "nodeTemplates.list". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @return the request + */ + public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { + List result = new List(project, region); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Retrieves a list of node templates available to the specified project. + * + * Create a request for the method "nodeTemplates.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTemplateList.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public List setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public List setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "nodeTemplates.setIamPolicy". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(project, region, resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * Create a request for the method "nodeTemplates.setIamPolicy". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.RegionSetPolicyRequest} + * @since 1.13 + */ + protected SetIamPolicy(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.RegionSetPolicyRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Policy.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } + + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } + + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } + + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } + + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetIamPolicy setUserIp(java.lang.String userIp) { + return (SetIamPolicy) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public SetIamPolicy setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public SetIamPolicy setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "nodeTemplates.testIamPermissions". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(project, region, resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns permissions that a caller has on the specified resource. + * + * Create a request for the method "nodeTemplates.testIamPermissions". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param region The name of the region for this request. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + @Override + public TestIamPermissions setUserIp(java.lang.String userIp) { + return (TestIamPermissions) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public TestIamPermissions setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** The name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** The name of the region for this request. */ + public TestIamPermissions setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** Name or id of the resource for this request. */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** Name or id of the resource for this request. + */ + public java.lang.String getResource() { + return resource; + } + + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the NodeTypes collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.NodeTypes.List request = compute.nodeTypes().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public NodeTypes nodeTypes() { + return new NodeTypes(); + } + + /** + * The "nodeTypes" collection of methods. + */ + public class NodeTypes { + + /** + * Retrieves an aggregated list of node types. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "nodeTypes.aggregatedList". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/aggregated/nodeTypes"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + /** + * Retrieves an aggregated list of node types. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "nodeTypes.aggregatedList". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. + *

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTypeAggregatedList.class); + this.project = com.google.api.client.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); + } + } + /** + * Returns the specified node type. + * + * Create a request for the method "nodeTypes.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 nodeType Name of the node type to return. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String nodeType) throws java.io.IOException { + Get result = new Get(project, zone, nodeType); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeTypes/{nodeType}"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern NODE_TYPE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Returns the specified node type. + * + * Create a request for the method "nodeTypes.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param nodeType Name of the node type to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String nodeType) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeType.class); + this.project = com.google.api.client.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.nodeType = com.google.api.client.util.Preconditions.checkNotNull(nodeType, "Required parameter nodeType must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_TYPE_PATTERN.matcher(nodeType).matches(), + "Parameter nodeType 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 node type to return. */ + @com.google.api.client.util.Key + private java.lang.String nodeType; + + /** Name of the node type to return. + */ + public java.lang.String getNodeType() { + return nodeType; + } + + /** Name of the node type to return. */ + public Get setNodeType(java.lang.String nodeType) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NODE_TYPE_PATTERN.matcher(nodeType).matches(), + "Parameter nodeType must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.nodeType = nodeType; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves a list of node types available to the specified project. + * + * Create a request for the method "nodeTypes.list". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @return the request + */ + public List list(java.lang.String project, java.lang.String zone) throws java.io.IOException { + List result = new List(project, zone); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeTypes"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Retrieves a list of node types available to the specified project. + * + * Create a request for the method "nodeTypes.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTypeList.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + } + + @Override + public 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; + } + + /** The name of the zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request. */ + public List setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the OrgVmExtensionPolicies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.OrgVmExtensionPolicies.List request = compute.orgVmExtensionPolicies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public OrgVmExtensionPolicies orgVmExtensionPolicies() { + return new OrgVmExtensionPolicies(); + } + + /** + * The "orgVmExtensionPolicies" collection of methods. + */ + public class OrgVmExtensionPolicies { + + /** + * Deletes a specified zone VM extension policy within an organization. + * + * Create a request for the method "orgVmExtensionPolicies.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 organization Organization ID for this request. + * @param zone Name of the zone for this request. + * @param vmExtensionPolicy Name of the zone VM extension policy to delete. + * @return the request + */ + public Delete delete(java.lang.String organization, java.lang.String zone, java.lang.String vmExtensionPolicy) throws java.io.IOException { + Delete result = new Delete(organization, zone, vmExtensionPolicy); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); + + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Deletes a specified zone VM extension policy within an organization. + * + * Create a request for the method "orgVmExtensionPolicies.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param organization Organization ID for this request. + * @param zone Name of the zone for this request. + * @param vmExtensionPolicy Name of the zone VM extension policy to delete. + * @since 1.13 + */ + protected Delete(java.lang.String organization, java.lang.String zone, java.lang.String vmExtensionPolicy) { + super(Compute.this, "DELETE", REST_PATH, null, 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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); + } + 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.vmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(vmExtensionPolicy, "Required parameter vmExtensionPolicy must be specified."); + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); + } + + /** Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Organization ID for this request. */ + public Delete setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + 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.organization = organization; + 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 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 zone VM extension policy to delete. */ + @com.google.api.client.util.Key + private java.lang.String vmExtensionPolicy; + + /** Name of the zone VM extension policy to delete. + */ + public java.lang.String getVmExtensionPolicy() { + return vmExtensionPolicy; + } + + /** Name of the zone VM extension policy to delete. */ + public Delete setVmExtensionPolicy(java.lang.String vmExtensionPolicy) { + this.vmExtensionPolicy = vmExtensionPolicy; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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); + } + } + + } + + /** + * An accessor for creating requests from the OrganizationRolloutPlans collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.OrganizationRolloutPlans.List request = compute.organizationRolloutPlans().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public OrganizationRolloutPlans organizationRolloutPlans() { + return new OrganizationRolloutPlans(); + } + + /** + * The "organizationRolloutPlans" collection of methods. + */ + public class OrganizationRolloutPlans { + + /** + * Deletes an OrganizationRolloutPlan. + * + * Create a request for the method "organizationRolloutPlans.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 organization Organization ID for this request. + * @param rolloutPlan Name of the OrganizationRolloutPlan resource to delete. + * @return the request + */ + public Delete delete(java.lang.String organization, java.lang.String rolloutPlan) throws java.io.IOException { + Delete result = new Delete(organization, rolloutPlan); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/rolloutPlans/{rolloutPlan}"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); + + private final java.util.regex.Pattern ROLLOUT_PLAN_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes an OrganizationRolloutPlan. + * + * Create a request for the method "organizationRolloutPlans.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param organization Organization ID for this request. + * @param rolloutPlan Name of the OrganizationRolloutPlan resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String organization, java.lang.String rolloutPlan) { + super(Compute.this, "DELETE", REST_PATH, null, 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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); + } + this.rolloutPlan = com.google.api.client.util.Preconditions.checkNotNull(rolloutPlan, "Required parameter rolloutPlan must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PLAN_PATTERN.matcher(rolloutPlan).matches(), + "Parameter rolloutPlan 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); + } + + /** Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Organization ID for this request. */ + public Delete setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + 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.organization = organization; + return this; + } + + /** Name of the OrganizationRolloutPlan resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String rolloutPlan; + + /** Name of the OrganizationRolloutPlan resource to delete. + */ + public java.lang.String getRolloutPlan() { + return rolloutPlan; + } + + /** Name of the OrganizationRolloutPlan resource to delete. */ + public Delete setRolloutPlan(java.lang.String rolloutPlan) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PLAN_PATTERN.matcher(rolloutPlan).matches(), + "Parameter rolloutPlan must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rolloutPlan = rolloutPlan; + 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); + } + } + /** + * Gets details of a single organization-scoped RolloutPlan. + * + * Create a request for the method "organizationRolloutPlans.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 organization Organization ID for this request. + * @param rolloutPlan Name of the persistent rollout plan to return. + * @return the request + */ + public Get get(java.lang.String organization, java.lang.String rolloutPlan) throws java.io.IOException { + Get result = new Get(organization, rolloutPlan); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/rolloutPlans/{rolloutPlan}"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); + + private final java.util.regex.Pattern ROLLOUT_PLAN_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets details of a single organization-scoped RolloutPlan. + * + * Create a request for the method "organizationRolloutPlans.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param organization Organization ID for this request. + * @param rolloutPlan Name of the persistent rollout plan to return. + * @since 1.13 + */ + protected Get(java.lang.String organization, java.lang.String rolloutPlan) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RolloutPlan.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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); + } + this.rolloutPlan = com.google.api.client.util.Preconditions.checkNotNull(rolloutPlan, "Required parameter rolloutPlan must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PLAN_PATTERN.matcher(rolloutPlan).matches(), + "Parameter rolloutPlan 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); + } + + /** Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Organization ID for this request. */ + public Get setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + 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.organization = organization; + return this; + } + + /** Name of the persistent rollout plan to return. */ + @com.google.api.client.util.Key + private java.lang.String rolloutPlan; + + /** Name of the persistent rollout plan to return. + */ + public java.lang.String getRolloutPlan() { + return rolloutPlan; + } + + /** Name of the persistent rollout plan to return. */ + public Get setRolloutPlan(java.lang.String rolloutPlan) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PLAN_PATTERN.matcher(rolloutPlan).matches(), + "Parameter rolloutPlan must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rolloutPlan = rolloutPlan; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a new RolloutPlan in a given organization and location. + * + * Create a request for the method "organizationRolloutPlans.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 organization Organization ID for this request. + * @param content the {@link com.google.api.services.compute.model.RolloutPlan} + * @return the request + */ + public Insert insert(java.lang.String organization, com.google.api.services.compute.model.RolloutPlan content) throws java.io.IOException { + Insert result = new Insert(organization, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/rolloutPlans"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); + + /** + * Creates a new RolloutPlan in a given organization and location. + * + * Create a request for the method "organizationRolloutPlans.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

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

+ * + * @param organization Organization ID for this request. + * @param content the {@link com.google.api.services.compute.model.RolloutPlan} + * @since 1.13 + */ + protected Insert(java.lang.String organization, com.google.api.services.compute.model.RolloutPlan content) { + super(Compute.this, "POST", 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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); + } + } + + @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); + } + + /** Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Organization ID for this request. */ + public Insert setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + 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.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 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 OrganizationRolloutPlans in a given organization and location. + * + * Create a request for the method "organizationRolloutPlans.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 organization Organization ID for this request. + * @return the request + */ + public List list(java.lang.String organization) throws java.io.IOException { + List result = new List(organization); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/rolloutPlans"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); + + /** + * Lists OrganizationRolloutPlans in a given organization and location. + * + * Create a request for the method "organizationRolloutPlans.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

+ * + * @param organization Organization ID for this request. + * @since 1.13 + */ + protected List(java.lang.String organization) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RolloutPlansListResponse.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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); + } + } + + @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); + } + + /** Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Organization ID for this request. */ + public List setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + 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.organization = organization; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the OrganizationRollouts collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.OrganizationRollouts.List request = compute.organizationRollouts().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public OrganizationRollouts organizationRollouts() { + return new OrganizationRollouts(); + } + + /** + * The "organizationRollouts" collection of methods. + */ + public class OrganizationRollouts { + + /** + * Advances a Rollout to the next wave, or completes it if no waves remain. + * + * Create a request for the method "organizationRollouts.advance". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Advance#execute()} method to invoke the remote operation. + * + * @param organization Required. Organization ID for this request. + * @param rollout Required. Name of the Rollout resource to advance. + * @return the request + */ + public Advance advance(java.lang.String organization, java.lang.String rollout) throws java.io.IOException { + Advance result = new Advance(organization, rollout); + initialize(result); + return result; + } + + public class Advance extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/rollouts/{rollout}/advance"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{1,19}"); + + private final java.util.regex.Pattern ROLLOUT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Advances a Rollout to the next wave, or completes it if no waves remain. + * + * Create a request for the method "organizationRollouts.advance". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Advance#execute()} method to invoke the remote operation.

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

+ * + * @param organization Required. Organization ID for this request. + * @param rollout Required. Name of the Rollout resource to advance. + * @since 1.13 + */ + protected Advance(java.lang.String organization, java.lang.String rollout) { + super(Compute.this, "POST", REST_PATH, null, 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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + this.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public Advance set$Xgafv(java.lang.String $Xgafv) { + return (Advance) super.set$Xgafv($Xgafv); + } + + @Override + public Advance setAccessToken(java.lang.String accessToken) { + return (Advance) super.setAccessToken(accessToken); + } + + @Override + public Advance setAlt(java.lang.String alt) { + return (Advance) super.setAlt(alt); + } + + @Override + public Advance setCallback(java.lang.String callback) { + return (Advance) super.setCallback(callback); + } + + @Override + public Advance setFields(java.lang.String fields) { + return (Advance) super.setFields(fields); + } + + @Override + public Advance setKey(java.lang.String key) { + return (Advance) super.setKey(key); + } + + @Override + public Advance setOauthToken(java.lang.String oauthToken) { + return (Advance) super.setOauthToken(oauthToken); + } + + @Override + public Advance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Advance) super.setPrettyPrint(prettyPrint); + } + + @Override + public Advance setQuotaUser(java.lang.String quotaUser) { + return (Advance) super.setQuotaUser(quotaUser); + } + + @Override + public Advance setUploadType(java.lang.String uploadType) { + return (Advance) super.setUploadType(uploadType); + } + + @Override + public Advance setUploadProtocol(java.lang.String uploadProtocol) { + return (Advance) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Advance setUserIp(java.lang.String userIp) { + return (Advance) super.setUserIp(userIp); + } + + /** Required. Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Required. Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Required. Organization ID for this request. */ + public Advance setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + this.organization = organization; + return this; + } + + /** Required. Name of the Rollout resource to advance. */ + @com.google.api.client.util.Key + private java.lang.String rollout; + + /** Required. Name of the Rollout resource to advance. + */ + public java.lang.String getRollout() { + return rollout; + } + + /** Required. Name of the Rollout resource to advance. */ + public Advance setRollout(java.lang.String rollout) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rollout = rollout; + return this; + } + + /** Required. Wave number of the current wave. */ + @com.google.api.client.util.Key + private java.lang.Long currentWaveNumber; + + /** Required. Wave number of the current wave. + */ + public java.lang.Long getCurrentWaveNumber() { + return currentWaveNumber; + } + + /** Required. Wave number of the current wave. */ + public Advance setCurrentWaveNumber(java.lang.Long currentWaveNumber) { + this.currentWaveNumber = currentWaveNumber; + 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 Advance setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Advance set(String parameterName, Object value) { + return (Advance) super.set(parameterName, value); + } + } + /** + * Cancels a Rollout. + * + * Create a request for the method "organizationRollouts.cancel". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * + * @param organization Required. Organization ID for this request. + * @param rollout Name of the Rollout resource to cancel. + * @return the request + */ + public Cancel cancel(java.lang.String organization, java.lang.String rollout) throws java.io.IOException { + Cancel result = new Cancel(organization, rollout); + initialize(result); + return result; + } + + public class Cancel extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/rollouts/{rollout}"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{1,19}"); + + private final java.util.regex.Pattern ROLLOUT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Cancels a Rollout. + * + * Create a request for the method "organizationRollouts.cancel". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.

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

+ * + * @param organization Required. Organization ID for this request. + * @param rollout Name of the Rollout resource to cancel. + * @since 1.13 + */ + protected Cancel(java.lang.String organization, java.lang.String rollout) { + super(Compute.this, "PATCH", REST_PATH, null, 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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + this.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Cancel setUserIp(java.lang.String userIp) { + return (Cancel) super.setUserIp(userIp); + } + + /** Required. Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Required. Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Required. Organization ID for this request. */ + public Cancel setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + this.organization = organization; + return this; + } + + /** Name of the Rollout resource to cancel. */ + @com.google.api.client.util.Key + private java.lang.String rollout; + + /** Name of the Rollout resource to cancel. + */ + public java.lang.String getRollout() { + return rollout; + } + + /** Name of the Rollout resource to cancel. */ + public Cancel setRollout(java.lang.String rollout) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rollout = rollout; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public Cancel setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Optional. If true, then the ongoing rollout must be rolled back. Else, just cancel the + * rollout without taking any further actions. Note that products must support at least one of + * these options, however, it does not need to support both. + */ + @com.google.api.client.util.Key + private java.lang.Boolean rollback; + + /** Optional. If true, then the ongoing rollout must be rolled back. Else, just cancel the rollout + without taking any further actions. Note that products must support at least one of these options, + however, it does not need to support both. + */ + public java.lang.Boolean getRollback() { + return rollback; + } + + /** + * Optional. If true, then the ongoing rollout must be rolled back. Else, just cancel the + * rollout without taking any further actions. Note that products must support at least one of + * these options, however, it does not need to support both. + */ + public Cancel setRollback(java.lang.Boolean rollback) { + this.rollback = rollback; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a Rollout. + * + * Create a request for the method "organizationRollouts.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 organization Required. Organization ID for this request. + * @param rollout Name of the Rollout resource to delete. + * @return the request + */ + public Delete delete(java.lang.String organization, java.lang.String rollout) throws java.io.IOException { + Delete result = new Delete(organization, rollout); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/rollouts/{rollout}"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{1,19}"); + + private final java.util.regex.Pattern ROLLOUT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes a Rollout. + * + * Create a request for the method "organizationRollouts.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param organization Required. Organization ID for this request. + * @param rollout Name of the Rollout resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String organization, java.lang.String rollout) { + super(Compute.this, "DELETE", REST_PATH, null, 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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + this.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout 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); + } + + /** Required. Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Required. Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Required. Organization ID for this request. */ + public Delete setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + this.organization = organization; + return this; + } + + /** Name of the Rollout resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String rollout; + + /** Name of the Rollout resource to delete. + */ + public java.lang.String getRollout() { + return rollout; + } + + /** Name of the Rollout resource to delete. */ + public Delete setRollout(java.lang.String rollout) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rollout = rollout; + 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); + } + } + /** + * Gets details of a single organization-scoped Rollout. + * + * Create a request for the method "organizationRollouts.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 organization Organization ID for this request. + * @param rollout Name of the persistent rollout to return. + * @return the request + */ + public Get get(java.lang.String organization, java.lang.String rollout) throws java.io.IOException { + Get result = new Get(organization, rollout); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/rollouts/{rollout}"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); + + private final java.util.regex.Pattern ROLLOUT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets details of a single organization-scoped Rollout. + * + * Create a request for the method "organizationRollouts.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param organization Organization ID for this request. + * @param rollout Name of the persistent rollout to return. + * @since 1.13 + */ + protected Get(java.lang.String organization, java.lang.String rollout) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Rollout.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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); + } + this.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout 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); + } + + /** Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Organization ID for this request. */ + public Get setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + 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.organization = organization; + return this; + } + + /** Name of the persistent rollout to return. */ + @com.google.api.client.util.Key + private java.lang.String rollout; + + /** Name of the persistent rollout to return. + */ + public java.lang.String getRollout() { + return rollout; + } + + /** Name of the persistent rollout to return. */ + public Get setRollout(java.lang.String rollout) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rollout = rollout; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists Rollouts in a given organization and location. + * + * Create a request for the method "organizationRollouts.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 organization Required. Organization ID for this request. + * @return the request + */ + public List list(java.lang.String organization) throws java.io.IOException { + List result = new List(organization); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/rollouts"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{1,19}"); + + /** + * Lists Rollouts in a given organization and location. + * + * Create a request for the method "organizationRollouts.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

+ * + * @param organization Required. Organization ID for this request. + * @since 1.13 + */ + protected List(java.lang.String organization) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OrganizationRolloutsListResponse.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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); + } + + /** Required. Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Required. Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Required. Organization ID for this request. */ + public List setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + this.organization = organization; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Pauses a Rollout. + * + * Create a request for the method "organizationRollouts.pause". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Pause#execute()} method to invoke the remote operation. + * + * @param organization Required. Organization ID for this request. + * @param rollout Required. Name of the Rollout resource to pause. + * @return the request + */ + public Pause pause(java.lang.String organization, java.lang.String rollout) throws java.io.IOException { + Pause result = new Pause(organization, rollout); + initialize(result); + return result; + } + + public class Pause extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/rollouts/{rollout}/pause"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{1,19}"); + + private final java.util.regex.Pattern ROLLOUT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Pauses a Rollout. + * + * Create a request for the method "organizationRollouts.pause". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Pause#execute()} method to invoke the remote operation.

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

+ * + * @param organization Required. Organization ID for this request. + * @param rollout Required. Name of the Rollout resource to pause. + * @since 1.13 + */ + protected Pause(java.lang.String organization, java.lang.String rollout) { + super(Compute.this, "POST", REST_PATH, null, 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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + this.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public Pause set$Xgafv(java.lang.String $Xgafv) { + return (Pause) super.set$Xgafv($Xgafv); + } + + @Override + public Pause setAccessToken(java.lang.String accessToken) { + return (Pause) super.setAccessToken(accessToken); + } + + @Override + public Pause setAlt(java.lang.String alt) { + return (Pause) super.setAlt(alt); + } + + @Override + public Pause setCallback(java.lang.String callback) { + return (Pause) super.setCallback(callback); + } + + @Override + public Pause setFields(java.lang.String fields) { + return (Pause) super.setFields(fields); + } + + @Override + public Pause setKey(java.lang.String key) { + return (Pause) super.setKey(key); + } + + @Override + public Pause setOauthToken(java.lang.String oauthToken) { + return (Pause) super.setOauthToken(oauthToken); + } + + @Override + public Pause setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Pause) super.setPrettyPrint(prettyPrint); + } + + @Override + public Pause setQuotaUser(java.lang.String quotaUser) { + return (Pause) super.setQuotaUser(quotaUser); + } + + @Override + public Pause setUploadType(java.lang.String uploadType) { + return (Pause) super.setUploadType(uploadType); + } + + @Override + public Pause setUploadProtocol(java.lang.String uploadProtocol) { + return (Pause) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Pause setUserIp(java.lang.String userIp) { + return (Pause) super.setUserIp(userIp); + } + + /** Required. Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Required. Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Required. Organization ID for this request. */ + public Pause setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + this.organization = organization; + return this; + } + + /** Required. Name of the Rollout resource to pause. */ + @com.google.api.client.util.Key + private java.lang.String rollout; + + /** Required. Name of the Rollout resource to pause. + */ + public java.lang.String getRollout() { + return rollout; + } + + /** Required. Name of the Rollout resource to pause. */ + public Pause setRollout(java.lang.String rollout) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rollout = rollout; + return this; + } + + /** + * The etag of the Rollout. If this is provided, the request will only succeed if the etag + * matches the current etag of the Rollout. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** The etag of the Rollout. If this is provided, the request will only succeed if the etag matches the + current etag of the Rollout. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * The etag of the Rollout. If this is provided, the request will only succeed if the etag + * matches the current etag of the Rollout. + */ + public Pause setEtag(java.lang.String etag) { + this.etag = etag; + 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 Pause setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Pause set(String parameterName, Object value) { + return (Pause) super.set(parameterName, value); + } + } + /** + * Resumes a Rollout. + * + * Create a request for the method "organizationRollouts.resume". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Resume#execute()} method to invoke the remote operation. + * + * @param organization Required. Organization ID for this request. + * @param rollout Required. Name of the Rollout resource to resume. + * @return the request + */ + public Resume resume(java.lang.String organization, java.lang.String rollout) throws java.io.IOException { + Resume result = new Resume(organization, rollout); + initialize(result); + return result; + } + + public class Resume extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/rollouts/{rollout}/resume"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{1,19}"); + + private final java.util.regex.Pattern ROLLOUT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Resumes a Rollout. + * + * Create a request for the method "organizationRollouts.resume". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Resume#execute()} method to invoke the remote operation.

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

+ * + * @param organization Required. Organization ID for this request. + * @param rollout Required. Name of the Rollout resource to resume. + * @since 1.13 + */ + protected Resume(java.lang.String organization, java.lang.String rollout) { + super(Compute.this, "POST", REST_PATH, null, 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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + this.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public Resume set$Xgafv(java.lang.String $Xgafv) { + return (Resume) super.set$Xgafv($Xgafv); + } + + @Override + public Resume setAccessToken(java.lang.String accessToken) { + return (Resume) super.setAccessToken(accessToken); + } + + @Override + public Resume setAlt(java.lang.String alt) { + return (Resume) super.setAlt(alt); + } + + @Override + public Resume setCallback(java.lang.String callback) { + return (Resume) super.setCallback(callback); + } + + @Override + public Resume setFields(java.lang.String fields) { + return (Resume) super.setFields(fields); + } + + @Override + public Resume setKey(java.lang.String key) { + return (Resume) super.setKey(key); + } + + @Override + public Resume setOauthToken(java.lang.String oauthToken) { + return (Resume) super.setOauthToken(oauthToken); + } + + @Override + public Resume setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Resume) super.setPrettyPrint(prettyPrint); + } + + @Override + public Resume setQuotaUser(java.lang.String quotaUser) { + return (Resume) super.setQuotaUser(quotaUser); + } + + @Override + public Resume setUploadType(java.lang.String uploadType) { + return (Resume) super.setUploadType(uploadType); + } + + @Override + public Resume setUploadProtocol(java.lang.String uploadProtocol) { + return (Resume) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Resume setUserIp(java.lang.String userIp) { + return (Resume) super.setUserIp(userIp); + } + + /** Required. Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Required. Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Required. Organization ID for this request. */ + public Resume setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + this.organization = organization; + return this; + } + + /** Required. Name of the Rollout resource to resume. */ + @com.google.api.client.util.Key + private java.lang.String rollout; + + /** Required. Name of the Rollout resource to resume. + */ + public java.lang.String getRollout() { + return rollout; + } + + /** Required. Name of the Rollout resource to resume. */ + public Resume setRollout(java.lang.String rollout) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rollout = rollout; + return this; + } + + /** + * The etag of the Rollout. If this is provided, the request will only succeed if the etag + * matches the current etag of the Rollout. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** The etag of the Rollout. If this is provided, the request will only succeed if the etag matches the + current etag of the Rollout. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * The etag of the Rollout. If this is provided, the request will only succeed if the etag + * matches the current etag of the Rollout. + */ + public Resume setEtag(java.lang.String etag) { + this.etag = etag; + 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 Resume setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Resume set(String parameterName, Object value) { + return (Resume) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the OrganizationSecurityPolicies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.OrganizationSecurityPolicies.List request = compute.organizationSecurityPolicies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public OrganizationSecurityPolicies organizationSecurityPolicies() { + return new OrganizationSecurityPolicies(); + } + + /** + * The "organizationSecurityPolicies" collection of methods. + */ + public class OrganizationSecurityPolicies { + + /** + * Inserts an association for the specified security policy. + * + * This has billing implications. Projects in the hierarchy with effective hierarchical security + * policies will be automatically enrolled into Cloud Armor Enterprise if not already enrolled. + * + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.addAssociation instead. + * + * Create a request for the method "organizationSecurityPolicies.addAssociation". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. + * + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyAssociation} + * @return the request + */ + public AddAssociation addAssociation(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyAssociation content) throws java.io.IOException { + AddAssociation result = new AddAssociation(securityPolicy, content); + initialize(result); + return result; + } + + public class AddAssociation extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/addAssociation"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * Inserts an association for the specified security policy. + * + * This has billing implications. Projects in the hierarchy with effective hierarchical security + * policies will be automatically enrolled into Cloud Armor Enterprise if not already enrolled. + * + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API + * were used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.addAssociation instead. + * + * Create a request for the method "organizationSecurityPolicies.addAssociation". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. + *

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

+ * + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyAssociation} + * @since 1.13 + */ + protected AddAssociation(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyAssociation content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + } + + @Override + public AddAssociation set$Xgafv(java.lang.String $Xgafv) { + return (AddAssociation) super.set$Xgafv($Xgafv); + } + + @Override + public AddAssociation setAccessToken(java.lang.String accessToken) { + return (AddAssociation) super.setAccessToken(accessToken); + } + + @Override + public AddAssociation setAlt(java.lang.String alt) { + return (AddAssociation) super.setAlt(alt); + } + + @Override + public AddAssociation setCallback(java.lang.String callback) { + return (AddAssociation) super.setCallback(callback); + } + + @Override + public AddAssociation setFields(java.lang.String fields) { + return (AddAssociation) super.setFields(fields); + } + + @Override + public AddAssociation setKey(java.lang.String key) { + return (AddAssociation) super.setKey(key); + } + + @Override + public AddAssociation setOauthToken(java.lang.String oauthToken) { + return (AddAssociation) super.setOauthToken(oauthToken); + } + + @Override + public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddAssociation) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddAssociation setQuotaUser(java.lang.String quotaUser) { + return (AddAssociation) super.setQuotaUser(quotaUser); + } + + @Override + public AddAssociation setUploadType(java.lang.String uploadType) { + return (AddAssociation) super.setUploadType(uploadType); + } + + @Override + public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (AddAssociation) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddAssociation setUserIp(java.lang.String userIp) { + return (AddAssociation) super.setUserIp(userIp); + } + + /** Name of the security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to update. */ + public AddAssociation setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** + * Indicates whether or not to replace it if an association of the attachment already exists. + * This is false by default, in which case an error will be returned if an association already + * exists. + */ + @com.google.api.client.util.Key + private java.lang.Boolean replaceExistingAssociation; + + /** Indicates whether or not to replace it if an association of the attachment already exists. This is + false by default, in which case an error will be returned if an association already exists. + */ + public java.lang.Boolean getReplaceExistingAssociation() { + return replaceExistingAssociation; + } + + /** + * Indicates whether or not to replace it if an association of the attachment already exists. + * This is false by default, in which case an error will be returned if an association already + * exists. + */ + public AddAssociation setReplaceExistingAssociation(java.lang.Boolean replaceExistingAssociation) { + this.replaceExistingAssociation = replaceExistingAssociation; + 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 AddAssociation setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddAssociation set(String parameterName, Object value) { + return (AddAssociation) super.set(parameterName, value); + } + } + /** + * Inserts a rule into a security policy. + * + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.addRule instead. + * + * Create a request for the method "organizationSecurityPolicies.addRule". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link AddRule#execute()} method to invoke the remote operation. + * + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @return the request + */ + public AddRule addRule(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) throws java.io.IOException { + AddRule result = new AddRule(securityPolicy, content); + initialize(result); + return result; + } + + public class AddRule extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/addRule"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * Inserts a rule into a security policy. + * + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API + * were used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.addRule instead. + * + * Create a request for the method "organizationSecurityPolicies.addRule". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link AddRule#execute()} method to invoke the remote operation.

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

+ * + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @since 1.13 + */ + protected AddRule(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + } + + @Override + public AddRule set$Xgafv(java.lang.String $Xgafv) { + return (AddRule) super.set$Xgafv($Xgafv); + } + + @Override + public AddRule setAccessToken(java.lang.String accessToken) { + return (AddRule) super.setAccessToken(accessToken); + } + + @Override + public AddRule setAlt(java.lang.String alt) { + return (AddRule) super.setAlt(alt); + } + + @Override + public AddRule setCallback(java.lang.String callback) { + return (AddRule) super.setCallback(callback); + } + + @Override + public AddRule setFields(java.lang.String fields) { + return (AddRule) super.setFields(fields); + } + + @Override + public AddRule setKey(java.lang.String key) { + return (AddRule) super.setKey(key); + } + + @Override + public AddRule setOauthToken(java.lang.String oauthToken) { + return (AddRule) super.setOauthToken(oauthToken); + } + + @Override + public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AddRule) super.setPrettyPrint(prettyPrint); + } + + @Override + public AddRule setQuotaUser(java.lang.String quotaUser) { + return (AddRule) super.setQuotaUser(quotaUser); + } + + @Override + public AddRule setUploadType(java.lang.String uploadType) { + return (AddRule) super.setUploadType(uploadType); + } + + @Override + public AddRule setUploadProtocol(java.lang.String uploadProtocol) { + return (AddRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public AddRule setUserIp(java.lang.String userIp) { + return (AddRule) super.setUserIp(userIp); + } + + /** Name of the security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to update. */ + public AddRule setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + 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 AddRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public AddRule set(String parameterName, Object value) { + return (AddRule) super.set(parameterName, value); + } + } + /** + * Copies rules to the specified security policy. + * + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.cloneRules instead. + * + * Create a request for the method "organizationSecurityPolicies.copyRules". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link CopyRules#execute()} method to invoke the remote operation. + * + * @param securityPolicy Name of the security policy to update. + * @return the request + */ + public CopyRules copyRules(java.lang.String securityPolicy) throws java.io.IOException { + CopyRules result = new CopyRules(securityPolicy); + initialize(result); + return result; + } + + public class CopyRules extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/copyRules"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * Copies rules to the specified security policy. + * + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API + * were used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.cloneRules instead. + * + * Create a request for the method "organizationSecurityPolicies.copyRules". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link CopyRules#execute()} method to invoke the remote operation.

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

+ * + * @param securityPolicy Name of the security policy to update. + * @since 1.13 + */ + protected CopyRules(java.lang.String securityPolicy) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + } + + @Override + public CopyRules set$Xgafv(java.lang.String $Xgafv) { + return (CopyRules) super.set$Xgafv($Xgafv); + } + + @Override + public CopyRules setAccessToken(java.lang.String accessToken) { + return (CopyRules) super.setAccessToken(accessToken); + } + + @Override + public CopyRules setAlt(java.lang.String alt) { + return (CopyRules) super.setAlt(alt); + } + + @Override + public CopyRules setCallback(java.lang.String callback) { + return (CopyRules) super.setCallback(callback); + } + + @Override + public CopyRules setFields(java.lang.String fields) { + return (CopyRules) super.setFields(fields); + } + + @Override + public CopyRules setKey(java.lang.String key) { + return (CopyRules) super.setKey(key); + } + + @Override + public CopyRules setOauthToken(java.lang.String oauthToken) { + return (CopyRules) super.setOauthToken(oauthToken); + } + + @Override + public CopyRules setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CopyRules) super.setPrettyPrint(prettyPrint); + } + + @Override + public CopyRules setQuotaUser(java.lang.String quotaUser) { + return (CopyRules) super.setQuotaUser(quotaUser); + } + + @Override + public CopyRules setUploadType(java.lang.String uploadType) { + return (CopyRules) super.setUploadType(uploadType); + } + + @Override + public CopyRules setUploadProtocol(java.lang.String uploadProtocol) { + return (CopyRules) super.setUploadProtocol(uploadProtocol); + } + + @Override + public CopyRules setUserIp(java.lang.String userIp) { + return (CopyRules) super.setUserIp(userIp); + } + + /** Name of the security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to update. */ + public CopyRules setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + 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 CopyRules setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** The security policy from which to copy rules. */ + @com.google.api.client.util.Key + private java.lang.String sourceSecurityPolicy; + + /** The security policy from which to copy rules. + */ + public java.lang.String getSourceSecurityPolicy() { + return sourceSecurityPolicy; + } + + /** The security policy from which to copy rules. */ + public CopyRules setSourceSecurityPolicy(java.lang.String sourceSecurityPolicy) { + this.sourceSecurityPolicy = sourceSecurityPolicy; + return this; + } + + @Override + public CopyRules set(String parameterName, Object value) { + return (CopyRules) super.set(parameterName, value); + } + } + /** + * Deletes the specified policy. + * + * Use this API to remove Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to remove firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.delete instead. + * + * Create a request for the method "organizationSecurityPolicies.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 securityPolicy Name of the security policy to delete. + * @return the request + */ + public Delete delete(java.lang.String securityPolicy) throws java.io.IOException { + Delete result = new Delete(securityPolicy); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * Deletes the specified policy. + * + * Use this API to remove Cloud Armor policies. Previously, alpha and beta versions of this API + * were used to remove firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.delete instead. + * + * Create a request for the method "organizationSecurityPolicies.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * + * @param securityPolicy Name of the security policy to delete. + * @since 1.13 + */ + protected Delete(java.lang.String securityPolicy) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + } + + @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); + } + + /** Name of the security policy to delete. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to delete. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to delete. */ + public Delete setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + 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); + } + } + /** + * List all of the ordered rules present in a single specified policy. + * + * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to read firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.get instead. + * + * Create a request for the method "organizationSecurityPolicies.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 securityPolicy Name of the security policy to get. + * @return the request + */ + public Get get(java.lang.String securityPolicy) throws java.io.IOException { + Get result = new Get(securityPolicy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * List all of the ordered rules present in a single specified policy. + * + * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to read firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.get instead. + * + * Create a request for the method "organizationSecurityPolicies.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param securityPolicy Name of the security policy to get. + * @since 1.13 + */ + protected Get(java.lang.String securityPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicy.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + } + + @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); + } + + /** Name of the security policy to get. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to get. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to get. */ + public Get setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets an association with the specified name. + * + * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to read firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.getAssociation instead. + * + * Create a request for the method "organizationSecurityPolicies.getAssociation". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. + * + * @param securityPolicy Name of the security policy to which the queried rule belongs. + * @return the request + */ + public GetAssociation getAssociation(java.lang.String securityPolicy) throws java.io.IOException { + GetAssociation result = new GetAssociation(securityPolicy); + initialize(result); + return result; + } + + public class GetAssociation extends ComputeRequest { + + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/getAssociation"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + + /** + * Gets an association with the specified name. + * + * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to read firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.getAssociation instead. + * + * Create a request for the method "organizationSecurityPolicies.getAssociation". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. + *

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

+ * + * @param securityPolicy Name of the security policy to which the queried rule belongs. + * @since 1.13 + */ + protected GetAssociation(java.lang.String securityPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicyAssociation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + } + + @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 GetAssociation set$Xgafv(java.lang.String $Xgafv) { + return (GetAssociation) super.set$Xgafv($Xgafv); + } + + @Override + public GetAssociation setAccessToken(java.lang.String accessToken) { + return (GetAssociation) super.setAccessToken(accessToken); + } + + @Override + public GetAssociation setAlt(java.lang.String alt) { + return (GetAssociation) super.setAlt(alt); + } + + @Override + public GetAssociation setCallback(java.lang.String callback) { + return (GetAssociation) super.setCallback(callback); + } + + @Override + public GetAssociation setFields(java.lang.String fields) { + return (GetAssociation) super.setFields(fields); + } + + @Override + public GetAssociation setKey(java.lang.String key) { + return (GetAssociation) super.setKey(key); + } + + @Override + public GetAssociation setOauthToken(java.lang.String oauthToken) { + return (GetAssociation) super.setOauthToken(oauthToken); + } + + @Override + public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetAssociation) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetAssociation setQuotaUser(java.lang.String quotaUser) { + return (GetAssociation) super.setQuotaUser(quotaUser); + } + + @Override + public GetAssociation setUploadType(java.lang.String uploadType) { + return (GetAssociation) super.setUploadType(uploadType); + } + + @Override + public GetAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (GetAssociation) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetAssociation setUserIp(java.lang.String userIp) { + return (GetAssociation) super.setUserIp(userIp); + } + + /** Name of the security policy to which the queried rule belongs. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to which the queried rule belongs. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to which the queried rule belongs. */ + public GetAssociation setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** The name of the association to get from the security policy. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the association to get from the security policy. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the association to get from the security policy. */ + public GetAssociation setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public GetAssociation set(String parameterName, Object value) { + return (GetAssociation) super.set(parameterName, value); + } + } + /** + * Gets a rule at the specified priority. + * + * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to read firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.getRule instead. * - * Create a request for the method "organizationSecurityPolicies.addAssociation". + * Create a request for the method "organizationSecurityPolicies.getRule". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. + * parameters, call the {@link GetRule#execute()} method to invoke the remote operation. * - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicyAssociation} + * @param securityPolicy Name of the security policy to which the queried rule belongs. * @return the request */ - public AddAssociation addAssociation(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyAssociation content) throws java.io.IOException { - AddAssociation result = new AddAssociation(securityPolicy, content); + public GetRule getRule(java.lang.String securityPolicy) throws java.io.IOException { + GetRule result = new GetRule(securityPolicy); initialize(result); return result; } - public class AddAssociation extends ComputeRequest { + public class GetRule extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/addAssociation"; + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/getRule"; private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); /** - * Inserts an association for the specified security policy. - * - * This has billing implications. Projects in the hierarchy with effective hierarchical security - * policies will be automatically enrolled into Cloud Armor Enterprise if not already enrolled. + * Gets a rule at the specified priority. * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API - * were used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.addAssociation instead. + * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to read firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.getRule instead. * - * Create a request for the method "organizationSecurityPolicies.addAssociation". + * Create a request for the method "organizationSecurityPolicies.getRule". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddAssociation#execute()} method to invoke the remote operation. - *

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

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

* - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicyAssociation} + * @param securityPolicy Name of the security policy to which the queried rule belongs. * @since 1.13 */ - protected AddAssociation(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyAssociation content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected GetRule(java.lang.String securityPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicyRule.class); this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), @@ -133300,77 +139444,87 @@ protected AddAssociation(java.lang.String securityPolicy, com.google.api.service } @Override - public AddAssociation set$Xgafv(java.lang.String $Xgafv) { - return (AddAssociation) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public AddAssociation setAccessToken(java.lang.String accessToken) { - return (AddAssociation) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public AddAssociation setAlt(java.lang.String alt) { - return (AddAssociation) super.setAlt(alt); + public GetRule set$Xgafv(java.lang.String $Xgafv) { + return (GetRule) super.set$Xgafv($Xgafv); } @Override - public AddAssociation setCallback(java.lang.String callback) { - return (AddAssociation) super.setCallback(callback); + public GetRule setAccessToken(java.lang.String accessToken) { + return (GetRule) super.setAccessToken(accessToken); } @Override - public AddAssociation setFields(java.lang.String fields) { - return (AddAssociation) super.setFields(fields); + public GetRule setAlt(java.lang.String alt) { + return (GetRule) super.setAlt(alt); } @Override - public AddAssociation setKey(java.lang.String key) { - return (AddAssociation) super.setKey(key); + public GetRule setCallback(java.lang.String callback) { + return (GetRule) super.setCallback(callback); } @Override - public AddAssociation setOauthToken(java.lang.String oauthToken) { - return (AddAssociation) super.setOauthToken(oauthToken); + public GetRule setFields(java.lang.String fields) { + return (GetRule) super.setFields(fields); } @Override - public AddAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddAssociation) super.setPrettyPrint(prettyPrint); + public GetRule setKey(java.lang.String key) { + return (GetRule) super.setKey(key); } @Override - public AddAssociation setQuotaUser(java.lang.String quotaUser) { - return (AddAssociation) super.setQuotaUser(quotaUser); + public GetRule setOauthToken(java.lang.String oauthToken) { + return (GetRule) super.setOauthToken(oauthToken); } @Override - public AddAssociation setUploadType(java.lang.String uploadType) { - return (AddAssociation) super.setUploadType(uploadType); + public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetRule) super.setPrettyPrint(prettyPrint); } @Override - public AddAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (AddAssociation) super.setUploadProtocol(uploadProtocol); + public GetRule setQuotaUser(java.lang.String quotaUser) { + return (GetRule) super.setQuotaUser(quotaUser); } @Override - public AddAssociation setUserIp(java.lang.String userIp) { - return (AddAssociation) super.setUserIp(userIp); + public GetRule setUploadType(java.lang.String uploadType) { + return (GetRule) super.setUploadType(uploadType); } - /** Name of the security policy to update. */ + @Override + public GetRule setUploadProtocol(java.lang.String uploadProtocol) { + return (GetRule) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetRule setUserIp(java.lang.String userIp) { + return (GetRule) super.setUserIp(userIp); + } + + /** Name of the security policy to which the queried rule belongs. */ @com.google.api.client.util.Key private java.lang.String securityPolicy; - /** Name of the security policy to update. + /** Name of the security policy to which the queried rule belongs. */ public java.lang.String getSecurityPolicy() { return securityPolicy; } - /** Name of the security policy to update. */ - public AddAssociation setSecurityPolicy(java.lang.String securityPolicy) { + /** Name of the security policy to which the queried rule belongs. */ + public GetRule setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), "Parameter securityPolicy must conform to the pattern " + @@ -133380,221 +139534,153 @@ public AddAssociation setSecurityPolicy(java.lang.String securityPolicy) { return this; } - /** - * Indicates whether or not to replace it if an association of the attachment already exists. - * This is false by default, in which case an error will be returned if an association already - * exists. - */ - @com.google.api.client.util.Key - private java.lang.Boolean replaceExistingAssociation; - - /** Indicates whether or not to replace it if an association of the attachment already exists. This is - false by default, in which case an error will be returned if an association already exists. - */ - public java.lang.Boolean getReplaceExistingAssociation() { - return replaceExistingAssociation; - } - - /** - * Indicates whether or not to replace it if an association of the attachment already exists. - * This is false by default, in which case an error will be returned if an association already - * exists. - */ - public AddAssociation setReplaceExistingAssociation(java.lang.Boolean replaceExistingAssociation) { - this.replaceExistingAssociation = replaceExistingAssociation; - 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). - */ + /** The priority of the rule to get from the security policy. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.Integer priority; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** The priority of the rule to get from the security policy. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Integer getPriority() { + return priority; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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 AddAssociation setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** The priority of the rule to get from the security policy. */ + public GetRule setPriority(java.lang.Integer priority) { + this.priority = priority; return this; } @Override - public AddAssociation set(String parameterName, Object value) { - return (AddAssociation) super.set(parameterName, value); + public GetRule set(String parameterName, Object value) { + return (GetRule) super.set(parameterName, value); } } /** - * Inserts a rule into a security policy. + * Creates a new policy in the specified organization using the data included in the request. * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.addRule instead. + * Use this API to add Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to add firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.insert instead. * - * Create a request for the method "organizationSecurityPolicies.addRule". + * Create a request for the method "organizationSecurityPolicies.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link AddRule#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} * @return the request */ - public AddRule addRule(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) throws java.io.IOException { - AddRule result = new AddRule(securityPolicy, content); + public Insert insert(com.google.api.services.compute.model.SecurityPolicy content) throws java.io.IOException { + Insert result = new Insert(content); initialize(result); return result; } - public class AddRule extends ComputeRequest { - - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/addRule"; + public class Insert extends ComputeRequest { - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private static final String REST_PATH = "locations/global/securityPolicies"; /** - * Inserts a rule into a security policy. + * Creates a new policy in the specified organization using the data included in the request. * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API - * were used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.addRule instead. + * Use this API to add Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to add firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.insert instead. * - * Create a request for the method "organizationSecurityPolicies.addRule". + * Create a request for the method "organizationSecurityPolicies.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AddRule#execute()} method to invoke the remote operation.

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

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

* - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} * @since 1.13 */ - protected AddRule(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) { + protected Insert(com.google.api.services.compute.model.SecurityPolicy content) { super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } } @Override - public AddRule set$Xgafv(java.lang.String $Xgafv) { - return (AddRule) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public AddRule setAccessToken(java.lang.String accessToken) { - return (AddRule) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public AddRule setAlt(java.lang.String alt) { - return (AddRule) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public AddRule setCallback(java.lang.String callback) { - return (AddRule) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public AddRule setFields(java.lang.String fields) { - return (AddRule) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public AddRule setKey(java.lang.String key) { - return (AddRule) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public AddRule setOauthToken(java.lang.String oauthToken) { - return (AddRule) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public AddRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AddRule) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public AddRule setQuotaUser(java.lang.String quotaUser) { - return (AddRule) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public AddRule setUploadType(java.lang.String uploadType) { - return (AddRule) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public AddRule setUploadProtocol(java.lang.String uploadProtocol) { - return (AddRule) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public AddRule setUserIp(java.lang.String userIp) { - return (AddRule) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } - /** Name of the security policy to update. */ + /** + * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is + * a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String parentId; - /** Name of the security policy to update. + /** Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder + or "organizations/[ORGANIZATION_ID]" if the parent is an organization. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getParentId() { + return parentId; } - /** Name of the security policy to update. */ - public AddRule setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - this.securityPolicy = securityPolicy; + /** + * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is + * a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + */ + public Insert setParentId(java.lang.String parentId) { + this.parentId = parentId; return this; } @@ -133642,466 +139728,458 @@ 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 AddRule setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public AddRule set(String parameterName, Object value) { - return (AddRule) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Copies rules to the specified security policy. + * List all the policies that have been configured for the specified organization. * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.cloneRules instead. + * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to read firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.list instead. * - * Create a request for the method "organizationSecurityPolicies.copyRules". + * Create a request for the method "organizationSecurityPolicies.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link CopyRules#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param securityPolicy Name of the security policy to update. * @return the request */ - public CopyRules copyRules(java.lang.String securityPolicy) throws java.io.IOException { - CopyRules result = new CopyRules(securityPolicy); + public List list() throws java.io.IOException { + List result = new List(); initialize(result); return result; } - public class CopyRules extends ComputeRequest { - - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/copyRules"; + public class List extends ComputeRequest { - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private static final String REST_PATH = "locations/global/securityPolicies"; /** - * Copies rules to the specified security policy. + * List all the policies that have been configured for the specified organization. * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API - * were used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.cloneRules instead. + * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to read firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.list instead. * - * Create a request for the method "organizationSecurityPolicies.copyRules". + * Create a request for the method "organizationSecurityPolicies.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link CopyRules#execute()} method to invoke the remote operation.

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

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

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

* - * @param securityPolicy Name of the security policy to update. * @since 1.13 */ - protected CopyRules(java.lang.String securityPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } + protected List() { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicyList.class); } @Override - public CopyRules set$Xgafv(java.lang.String $Xgafv) { - return (CopyRules) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public CopyRules setAccessToken(java.lang.String accessToken) { - return (CopyRules) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public CopyRules setAlt(java.lang.String alt) { - return (CopyRules) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public CopyRules setCallback(java.lang.String callback) { - return (CopyRules) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public CopyRules setFields(java.lang.String fields) { - return (CopyRules) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public CopyRules setKey(java.lang.String key) { - return (CopyRules) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public CopyRules setOauthToken(java.lang.String oauthToken) { - return (CopyRules) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public CopyRules setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CopyRules) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public CopyRules setQuotaUser(java.lang.String quotaUser) { - return (CopyRules) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public CopyRules setUploadType(java.lang.String uploadType) { - return (CopyRules) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public CopyRules setUploadProtocol(java.lang.String uploadProtocol) { - return (CopyRules) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public CopyRules setUserIp(java.lang.String userIp) { - return (CopyRules) super.setUserIp(userIp); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } - /** Name of the security policy to update. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to update. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } - /** Name of the security policy to update. */ - public CopyRules setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - this.securityPolicy = securityPolicy; - return this; + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); } /** - * An optional request ID to identify requests. Specify a unique 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; + + /** 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. - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + 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) ``` - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original 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 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 request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + `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 CopyRules setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setFilter(java.lang.String filter) { + this.filter = filter; return this; } - /** The security policy from which to copy rules. */ + /** + * 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 sourceSecurityPolicy; + private java.lang.Long maxResults; - /** The security policy from which to copy rules. + /** 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 getSourceSecurityPolicy() { - return sourceSecurityPolicy; + public java.lang.Long getMaxResults() { + return maxResults; } - /** The security policy from which to copy rules. */ - public CopyRules setSourceSecurityPolicy(java.lang.String sourceSecurityPolicy) { - this.sourceSecurityPolicy = sourceSecurityPolicy; + /** + * 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 CopyRules set(String parameterName, Object value) { - return (CopyRules) super.set(parameterName, value); - } - } - /** - * Deletes the specified policy. - * - * Use this API to remove Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to remove firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.delete instead. - * - * Create a request for the method "organizationSecurityPolicies.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 securityPolicy Name of the security policy to delete. - * @return the request - */ - public Delete delete(java.lang.String securityPolicy) throws java.io.IOException { - Delete result = new Delete(securityPolicy); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}"; - - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); - /** - * Deletes the specified policy. - * - * Use this API to remove Cloud Armor policies. Previously, alpha and beta versions of this API - * were used to remove firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.delete instead. - * - * Create a request for the method "organizationSecurityPolicies.delete". + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

+ * 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. * - * @param securityPolicy Name of the security policy to delete. - * @since 1.13 + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - protected Delete(java.lang.String securityPolicy) { - super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - } - - @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); - } + @com.google.api.client.util.Key + private java.lang.String orderBy; - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + /** + * 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; - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + /** 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; } - @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) super.setUserIp(userIp); + /** + * 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; } - /** Name of the security policy to delete. */ + /** Parent ID for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String parentId; - /** Name of the security policy to delete. + /** Parent ID for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getParentId() { + return parentId; } - /** Name of the security policy to delete. */ - public Delete setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - this.securityPolicy = securityPolicy; + /** Parent ID for this request. */ + public List setParentId(java.lang.String parentId) { + this.parentId = parentId; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + private java.lang.Boolean returnPartialSuccess; - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * List all of the ordered rules present in a single specified policy. + * Lists associations of a specified target, i.e., organization or folder. * * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were * used to read firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.get instead. + * firewallPolicies.listAssociations instead. * - * Create a request for the method "organizationSecurityPolicies.get". + * Create a request for the method "organizationSecurityPolicies.listAssociations". * * 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 ListAssociations#execute()} method to invoke the remote operation. * - * @param securityPolicy Name of the security policy to get. * @return the request */ - public Get get(java.lang.String securityPolicy) throws java.io.IOException { - Get result = new Get(securityPolicy); + public ListAssociations listAssociations() throws java.io.IOException { + ListAssociations result = new ListAssociations(); initialize(result); return result; } - public class Get extends ComputeRequest { - - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}"; + public class ListAssociations extends ComputeRequest { - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private static final String REST_PATH = "locations/global/securityPolicies/listAssociations"; /** - * List all of the ordered rules present in a single specified policy. + * Lists associations of a specified target, i.e., organization or folder. * * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were * used to read firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.get instead. + * firewallPolicies.listAssociations instead. * - * Create a request for the method "organizationSecurityPolicies.get". + * Create a request for the method "organizationSecurityPolicies.listAssociations". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

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

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

* - * @param securityPolicy Name of the security policy to get. * @since 1.13 */ - protected Get(java.lang.String securityPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicy.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } + protected ListAssociations() { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OrganizationSecurityPoliciesListAssociationsResponse.class); } @Override @@ -134115,145 +140193,126 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public ListAssociations set$Xgafv(java.lang.String $Xgafv) { + return (ListAssociations) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public ListAssociations setAccessToken(java.lang.String accessToken) { + return (ListAssociations) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public ListAssociations setAlt(java.lang.String alt) { + return (ListAssociations) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public ListAssociations setCallback(java.lang.String callback) { + return (ListAssociations) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public ListAssociations setFields(java.lang.String fields) { + return (ListAssociations) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public ListAssociations setKey(java.lang.String key) { + return (ListAssociations) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public ListAssociations setOauthToken(java.lang.String oauthToken) { + return (ListAssociations) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public ListAssociations setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListAssociations) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public ListAssociations setQuotaUser(java.lang.String quotaUser) { + return (ListAssociations) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public ListAssociations setUploadType(java.lang.String uploadType) { + return (ListAssociations) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public ListAssociations setUploadProtocol(java.lang.String uploadProtocol) { + return (ListAssociations) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public ListAssociations setUserIp(java.lang.String userIp) { + return (ListAssociations) super.setUserIp(userIp); } - /** Name of the security policy to get. */ + /** + * The target resource to list associations. It is an organization, or a folder. + */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String targetResource; - /** Name of the security policy to get. + /** The target resource to list associations. It is an organization, or a folder. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getTargetResource() { + return targetResource; } - /** Name of the security policy to get. */ - public Get setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - this.securityPolicy = securityPolicy; + /** + * The target resource to list associations. It is an organization, or a folder. + */ + public ListAssociations setTargetResource(java.lang.String targetResource) { + this.targetResource = targetResource; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public ListAssociations set(String parameterName, Object value) { + return (ListAssociations) super.set(parameterName, value); } } /** - * Gets an association with the specified name. - * - * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to read firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.getAssociation instead. + * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. * - * Create a request for the method "organizationSecurityPolicies.getAssociation". + * Create a request for the method "organizationSecurityPolicies.listPreconfiguredExpressionSets". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. + * parameters, call the {@link ListPreconfiguredExpressionSets#execute()} method to invoke the + * remote operation. * - * @param securityPolicy Name of the security policy to which the queried rule belongs. * @return the request */ - public GetAssociation getAssociation(java.lang.String securityPolicy) throws java.io.IOException { - GetAssociation result = new GetAssociation(securityPolicy); + public ListPreconfiguredExpressionSets listPreconfiguredExpressionSets() throws java.io.IOException { + ListPreconfiguredExpressionSets result = new ListPreconfiguredExpressionSets(); initialize(result); return result; } - public class GetAssociation extends ComputeRequest { - - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/getAssociation"; + public class ListPreconfiguredExpressionSets extends ComputeRequest { - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private static final String REST_PATH = "locations/global/securityPolicies/listPreconfiguredExpressionSets"; /** - * Gets an association with the specified name. - * - * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to read firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.getAssociation instead. + * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. * - * Create a request for the method "organizationSecurityPolicies.getAssociation". + * Create a request for the method "organizationSecurityPolicies.listPreconfiguredExpressionSets". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetAssociation#execute()} method to invoke the remote operation. - *

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

- * - * @param securityPolicy Name of the security policy to which the queried rule belongs. - * @since 1.13 - */ - protected GetAssociation(java.lang.String securityPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicyAssociation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } + * parameters, call the {@link ListPreconfiguredExpressionSets#execute()} method to invoke the + * remote operation.

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

+ * + * @since 1.13 + */ + protected ListPreconfiguredExpressionSets() { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPoliciesListPreconfiguredExpressionSetsResponse.class); } @Override @@ -134267,155 +140326,397 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public GetAssociation set$Xgafv(java.lang.String $Xgafv) { - return (GetAssociation) super.set$Xgafv($Xgafv); + public ListPreconfiguredExpressionSets set$Xgafv(java.lang.String $Xgafv) { + return (ListPreconfiguredExpressionSets) super.set$Xgafv($Xgafv); } @Override - public GetAssociation setAccessToken(java.lang.String accessToken) { - return (GetAssociation) super.setAccessToken(accessToken); + public ListPreconfiguredExpressionSets setAccessToken(java.lang.String accessToken) { + return (ListPreconfiguredExpressionSets) super.setAccessToken(accessToken); } @Override - public GetAssociation setAlt(java.lang.String alt) { - return (GetAssociation) super.setAlt(alt); + public ListPreconfiguredExpressionSets setAlt(java.lang.String alt) { + return (ListPreconfiguredExpressionSets) super.setAlt(alt); } @Override - public GetAssociation setCallback(java.lang.String callback) { - return (GetAssociation) super.setCallback(callback); + public ListPreconfiguredExpressionSets setCallback(java.lang.String callback) { + return (ListPreconfiguredExpressionSets) super.setCallback(callback); } @Override - public GetAssociation setFields(java.lang.String fields) { - return (GetAssociation) super.setFields(fields); + public ListPreconfiguredExpressionSets setFields(java.lang.String fields) { + return (ListPreconfiguredExpressionSets) super.setFields(fields); } @Override - public GetAssociation setKey(java.lang.String key) { - return (GetAssociation) super.setKey(key); + public ListPreconfiguredExpressionSets setKey(java.lang.String key) { + return (ListPreconfiguredExpressionSets) super.setKey(key); } @Override - public GetAssociation setOauthToken(java.lang.String oauthToken) { - return (GetAssociation) super.setOauthToken(oauthToken); + public ListPreconfiguredExpressionSets setOauthToken(java.lang.String oauthToken) { + return (ListPreconfiguredExpressionSets) super.setOauthToken(oauthToken); } @Override - public GetAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetAssociation) super.setPrettyPrint(prettyPrint); + public ListPreconfiguredExpressionSets setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListPreconfiguredExpressionSets) super.setPrettyPrint(prettyPrint); } @Override - public GetAssociation setQuotaUser(java.lang.String quotaUser) { - return (GetAssociation) super.setQuotaUser(quotaUser); + public ListPreconfiguredExpressionSets setQuotaUser(java.lang.String quotaUser) { + return (ListPreconfiguredExpressionSets) super.setQuotaUser(quotaUser); } @Override - public GetAssociation setUploadType(java.lang.String uploadType) { - return (GetAssociation) super.setUploadType(uploadType); + public ListPreconfiguredExpressionSets setUploadType(java.lang.String uploadType) { + return (ListPreconfiguredExpressionSets) super.setUploadType(uploadType); } @Override - public GetAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (GetAssociation) super.setUploadProtocol(uploadProtocol); + public ListPreconfiguredExpressionSets setUploadProtocol(java.lang.String uploadProtocol) { + return (ListPreconfiguredExpressionSets) super.setUploadProtocol(uploadProtocol); } @Override - public GetAssociation setUserIp(java.lang.String userIp) { - return (GetAssociation) super.setUserIp(userIp); + public ListPreconfiguredExpressionSets setUserIp(java.lang.String userIp) { + return (ListPreconfiguredExpressionSets) super.setUserIp(userIp); } - /** Name of the security policy to which the queried rule belongs. */ + /** + * 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 securityPolicy; + private java.lang.String filter; - /** Name of the security policy to which the queried rule belongs. + /** 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 getSecurityPolicy() { - return securityPolicy; + public java.lang.String getFilter() { + return filter; } - /** Name of the security policy to which the queried rule belongs. */ - public GetAssociation setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - this.securityPolicy = securityPolicy; + /** + * 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 ListPreconfiguredExpressionSets setFilter(java.lang.String filter) { + this.filter = filter; return this; } - /** The name of the association to get from the security policy. */ + /** + * 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 name; + private java.lang.Long maxResults; - /** The name of the association to get from the security policy. + /** 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 getName() { - return name; + public java.lang.Long getMaxResults() { + return maxResults; } - /** The name of the association to get from the security policy. */ - public GetAssociation setName(java.lang.String name) { - this.name = name; + /** + * 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 ListPreconfiguredExpressionSets 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 ListPreconfiguredExpressionSets 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 ListPreconfiguredExpressionSets setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** Parent ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String parentId; + + /** Parent ID for this request. + */ + public java.lang.String getParentId() { + return parentId; + } + + /** Parent ID for this request. */ + public ListPreconfiguredExpressionSets setParentId(java.lang.String parentId) { + this.parentId = parentId; + 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 ListPreconfiguredExpressionSets setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public GetAssociation set(String parameterName, Object value) { - return (GetAssociation) super.set(parameterName, value); + public ListPreconfiguredExpressionSets set(String parameterName, Object value) { + return (ListPreconfiguredExpressionSets) super.set(parameterName, value); } } /** - * Gets a rule at the specified priority. + * Moves the specified security policy. * - * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to read firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.getRule instead. + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.move instead. * - * Create a request for the method "organizationSecurityPolicies.getRule". + * Create a request for the method "organizationSecurityPolicies.move". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link GetRule#execute()} method to invoke the remote operation. + * parameters, call the {@link Move#execute()} method to invoke the remote operation. * - * @param securityPolicy Name of the security policy to which the queried rule belongs. + * @param securityPolicy Name of the security policy to update. * @return the request */ - public GetRule getRule(java.lang.String securityPolicy) throws java.io.IOException { - GetRule result = new GetRule(securityPolicy); + public Move move(java.lang.String securityPolicy) throws java.io.IOException { + Move result = new Move(securityPolicy); initialize(result); return result; } - public class GetRule extends ComputeRequest { + public class Move extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/getRule"; + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/move"; private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); /** - * Gets a rule at the specified priority. + * Moves the specified security policy. * - * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to read firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.getRule instead. + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API + * were used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.move instead. * - * Create a request for the method "organizationSecurityPolicies.getRule". + * Create a request for the method "organizationSecurityPolicies.move". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link GetRule#execute()} method to invoke the remote operation.

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

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

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

* - * @param securityPolicy Name of the security policy to which the queried rule belongs. + * @param securityPolicy Name of the security policy to update. * @since 1.13 */ - protected GetRule(java.lang.String securityPolicy) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicyRule.class); + protected Move(java.lang.String securityPolicy) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), @@ -134425,87 +140726,77 @@ protected GetRule(java.lang.String securityPolicy) { } @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 GetRule set$Xgafv(java.lang.String $Xgafv) { - return (GetRule) super.set$Xgafv($Xgafv); + public Move set$Xgafv(java.lang.String $Xgafv) { + return (Move) super.set$Xgafv($Xgafv); } @Override - public GetRule setAccessToken(java.lang.String accessToken) { - return (GetRule) super.setAccessToken(accessToken); + public Move setAccessToken(java.lang.String accessToken) { + return (Move) super.setAccessToken(accessToken); } @Override - public GetRule setAlt(java.lang.String alt) { - return (GetRule) super.setAlt(alt); + public Move setAlt(java.lang.String alt) { + return (Move) super.setAlt(alt); } @Override - public GetRule setCallback(java.lang.String callback) { - return (GetRule) super.setCallback(callback); + public Move setCallback(java.lang.String callback) { + return (Move) super.setCallback(callback); } @Override - public GetRule setFields(java.lang.String fields) { - return (GetRule) super.setFields(fields); + public Move setFields(java.lang.String fields) { + return (Move) super.setFields(fields); } @Override - public GetRule setKey(java.lang.String key) { - return (GetRule) super.setKey(key); + public Move setKey(java.lang.String key) { + return (Move) super.setKey(key); } @Override - public GetRule setOauthToken(java.lang.String oauthToken) { - return (GetRule) super.setOauthToken(oauthToken); + public Move setOauthToken(java.lang.String oauthToken) { + return (Move) super.setOauthToken(oauthToken); } @Override - public GetRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetRule) super.setPrettyPrint(prettyPrint); + public Move setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Move) super.setPrettyPrint(prettyPrint); } @Override - public GetRule setQuotaUser(java.lang.String quotaUser) { - return (GetRule) super.setQuotaUser(quotaUser); + public Move setQuotaUser(java.lang.String quotaUser) { + return (Move) super.setQuotaUser(quotaUser); } @Override - public GetRule setUploadType(java.lang.String uploadType) { - return (GetRule) super.setUploadType(uploadType); + public Move setUploadType(java.lang.String uploadType) { + return (Move) super.setUploadType(uploadType); } @Override - public GetRule setUploadProtocol(java.lang.String uploadProtocol) { - return (GetRule) super.setUploadProtocol(uploadProtocol); + public Move setUploadProtocol(java.lang.String uploadProtocol) { + return (Move) super.setUploadProtocol(uploadProtocol); } @Override - public GetRule setUserIp(java.lang.String userIp) { - return (GetRule) super.setUserIp(userIp); + public Move setUserIp(java.lang.String userIp) { + return (Move) super.setUserIp(userIp); } - /** Name of the security policy to which the queried rule belongs. */ + /** Name of the security policy to update. */ @com.google.api.client.util.Key private java.lang.String securityPolicy; - /** Name of the security policy to which the queried rule belongs. + /** Name of the security policy to update. */ public java.lang.String getSecurityPolicy() { return securityPolicy; } - /** Name of the security policy to which the queried rule belongs. */ - public GetRule setSecurityPolicy(java.lang.String securityPolicy) { + /** Name of the security policy to update. */ + public Move setSecurityPolicy(java.lang.String securityPolicy) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), "Parameter securityPolicy must conform to the pattern " + @@ -134515,153 +140806,211 @@ public GetRule setSecurityPolicy(java.lang.String securityPolicy) { return this; } - /** The priority of the rule to get from the security policy. */ + /** The new parent of the security policy. */ @com.google.api.client.util.Key - private java.lang.Integer priority; + private java.lang.String parentId; - /** The priority of the rule to get from the security policy. + /** The new parent of the security policy. + */ + public java.lang.String getParentId() { + return parentId; + } + + /** The new parent of the security policy. */ + public Move setParentId(java.lang.String parentId) { + this.parentId = parentId; + 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 java.lang.Integer getPriority() { - return priority; - } - - /** The priority of the rule to get from the security policy. */ - public GetRule setPriority(java.lang.Integer priority) { - this.priority = priority; + public Move setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public GetRule set(String parameterName, Object value) { - return (GetRule) super.set(parameterName, value); + public Move set(String parameterName, Object value) { + return (Move) super.set(parameterName, value); } } /** - * Creates a new policy in the specified organization using the data included in the request. + * Patches the specified policy with the data included in the request. * - * Use this API to add Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to add firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.insert instead. + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.patch instead. * - * Create a request for the method "organizationSecurityPolicies.insert". + * Create a request for the method "organizationSecurityPolicies.patch". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * + * @param securityPolicy Name of the security policy to update. * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} * @return the request */ - public Insert insert(com.google.api.services.compute.model.SecurityPolicy content) throws java.io.IOException { - Insert result = new Insert(content); + public Patch patch(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicy content) throws java.io.IOException { + Patch result = new Patch(securityPolicy, content); initialize(result); return result; } - public class Insert extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies"; + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); /** - * Creates a new policy in the specified organization using the data included in the request. + * Patches the specified policy with the data included in the request. * - * Use this API to add Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to add firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.insert instead. + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API + * were used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.patch instead. * - * Create a request for the method "organizationSecurityPolicies.insert". + * Create a request for the method "organizationSecurityPolicies.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link - * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 securityPolicy Name of the security policy to update. * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} * @since 1.13 */ - protected Insert(com.google.api.services.compute.model.SecurityPolicy content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Patch(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicy content) { + super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } - /** - * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is - * a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. - */ + /** Name of the security policy to update. */ @com.google.api.client.util.Key - private java.lang.String parentId; + private java.lang.String securityPolicy; - /** Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder - or "organizations/[ORGANIZATION_ID]" if the parent is an organization. + /** Name of the security policy to update. */ - public java.lang.String getParentId() { - return parentId; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** - * Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is - * a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. - */ - public Insert setParentId(java.lang.String parentId) { - this.parentId = parentId; + /** Name of the security policy to update. */ + public Patch setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; return this; } @@ -134709,1097 +141058,964 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Insert setRequestId(java.lang.String requestId) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } + /** Indicates fields to be cleared as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Indicates fields to be cleared as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Indicates fields to be cleared as part of this request. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * List all the policies that have been configured for the specified organization. + * Patches a rule at the specified priority. * - * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to read firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.list instead. + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.patchRule instead. * - * Create a request for the method "organizationSecurityPolicies.list". + * Create a request for the method "organizationSecurityPolicies.patchRule". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation. * + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} * @return the request */ - public List list() throws java.io.IOException { - List result = new List(); + public PatchRule patchRule(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) throws java.io.IOException { + PatchRule result = new PatchRule(securityPolicy, content); initialize(result); return result; } - public class List extends ComputeRequest { + public class PatchRule extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies"; + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/patchRule"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); /** - * List all the policies that have been configured for the specified organization. + * Patches a rule at the specified priority. * - * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to read firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.list instead. + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API + * were used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.patchRule instead. * - * Create a request for the method "organizationSecurityPolicies.list". + * Create a request for the method "organizationSecurityPolicies.patchRule". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

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

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

* + * @param securityPolicy Name of the security policy to update. + * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} * @since 1.13 */ - protected List() { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPolicyList.class); - } - - @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(); + protected PatchRule(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public PatchRule set$Xgafv(java.lang.String $Xgafv) { + return (PatchRule) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public PatchRule setAccessToken(java.lang.String accessToken) { + return (PatchRule) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public PatchRule setAlt(java.lang.String alt) { + return (PatchRule) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public PatchRule setCallback(java.lang.String callback) { + return (PatchRule) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public PatchRule setFields(java.lang.String fields) { + return (PatchRule) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public PatchRule setKey(java.lang.String key) { + return (PatchRule) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public PatchRule setOauthToken(java.lang.String oauthToken) { + return (PatchRule) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PatchRule) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public PatchRule setQuotaUser(java.lang.String quotaUser) { + return (PatchRule) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public PatchRule setUploadType(java.lang.String uploadType) { + return (PatchRule) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { + return (PatchRule) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); - } - - /** - * 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; + public PatchRule setUserIp(java.lang.String userIp) { + return (PatchRule) super.setUserIp(userIp); } - /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. - */ + /** Name of the security policy to update. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String securityPolicy; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Name of the security policy to update. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - /** - * 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; + /** Name of the security policy to update. */ + public PatchRule setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; return this; } - /** Parent ID for this request. */ + /** The priority of the rule to patch. */ @com.google.api.client.util.Key - private java.lang.String parentId; + private java.lang.Integer priority; - /** Parent ID for this request. + /** The priority of the rule to patch. */ - public java.lang.String getParentId() { - return parentId; + public java.lang.Integer getPriority() { + return priority; } - /** Parent ID for this request. */ - public List setParentId(java.lang.String parentId) { - this.parentId = parentId; + /** The priority of the rule to patch. */ + public PatchRule setPriority(java.lang.Integer priority) { + this.priority = priority; return this; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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.Boolean returnPartialSuccess; + private java.lang.String requestId; - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating 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.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getRequestId() { + return requestId; } /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public PatchRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** Indicates fields to be cleared as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Indicates fields to be cleared as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Indicates fields to be cleared as part of this request. */ + public PatchRule setUpdateMask(String updateMask) { + this.updateMask = updateMask; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public PatchRule set(String parameterName, Object value) { + return (PatchRule) super.set(parameterName, value); } } /** - * Lists associations of a specified target, i.e., organization or folder. + * Removes an association for the specified security policy. * - * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to read firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.listAssociations instead. + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.removeAssociation instead. * - * Create a request for the method "organizationSecurityPolicies.listAssociations". + * Create a request for the method "organizationSecurityPolicies.removeAssociation". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListAssociations#execute()} method to invoke the remote operation. + * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. * + * @param securityPolicy Name of the security policy to update. * @return the request */ - public ListAssociations listAssociations() throws java.io.IOException { - ListAssociations result = new ListAssociations(); + public RemoveAssociation removeAssociation(java.lang.String securityPolicy) throws java.io.IOException { + RemoveAssociation result = new RemoveAssociation(securityPolicy); initialize(result); return result; } - public class ListAssociations extends ComputeRequest { + public class RemoveAssociation extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/listAssociations"; + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/removeAssociation"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); /** - * Lists associations of a specified target, i.e., organization or folder. + * Removes an association for the specified security policy. * - * Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to read firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.listAssociations instead. + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API + * were used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.removeAssociation instead. * - * Create a request for the method "organizationSecurityPolicies.listAssociations". + * Create a request for the method "organizationSecurityPolicies.removeAssociation". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListAssociations#execute()} method to invoke the remote operation. - *

{@link ListAssociations#initialize(com.google.api.client.googleapis.services.AbstractGoogle - * ClientRequest)} must be called to initialize this instance immediately after invoking the + * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. + *

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

* + * @param securityPolicy Name of the security policy to update. * @since 1.13 */ - protected ListAssociations() { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OrganizationSecurityPoliciesListAssociationsResponse.class); + protected RemoveAssociation(java.lang.String securityPolicy) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { + return (RemoveAssociation) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public RemoveAssociation setAccessToken(java.lang.String accessToken) { + return (RemoveAssociation) super.setAccessToken(accessToken); } @Override - public ListAssociations set$Xgafv(java.lang.String $Xgafv) { - return (ListAssociations) super.set$Xgafv($Xgafv); + public RemoveAssociation setAlt(java.lang.String alt) { + return (RemoveAssociation) super.setAlt(alt); } @Override - public ListAssociations setAccessToken(java.lang.String accessToken) { - return (ListAssociations) super.setAccessToken(accessToken); + public RemoveAssociation setCallback(java.lang.String callback) { + return (RemoveAssociation) super.setCallback(callback); } @Override - public ListAssociations setAlt(java.lang.String alt) { - return (ListAssociations) super.setAlt(alt); + public RemoveAssociation setFields(java.lang.String fields) { + return (RemoveAssociation) super.setFields(fields); } @Override - public ListAssociations setCallback(java.lang.String callback) { - return (ListAssociations) super.setCallback(callback); + public RemoveAssociation setKey(java.lang.String key) { + return (RemoveAssociation) super.setKey(key); } @Override - public ListAssociations setFields(java.lang.String fields) { - return (ListAssociations) super.setFields(fields); + public RemoveAssociation setOauthToken(java.lang.String oauthToken) { + return (RemoveAssociation) super.setOauthToken(oauthToken); } @Override - public ListAssociations setKey(java.lang.String key) { - return (ListAssociations) super.setKey(key); + public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveAssociation) super.setPrettyPrint(prettyPrint); } @Override - public ListAssociations setOauthToken(java.lang.String oauthToken) { - return (ListAssociations) super.setOauthToken(oauthToken); + public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { + return (RemoveAssociation) super.setQuotaUser(quotaUser); } @Override - public ListAssociations setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListAssociations) super.setPrettyPrint(prettyPrint); + public RemoveAssociation setUploadType(java.lang.String uploadType) { + return (RemoveAssociation) super.setUploadType(uploadType); } @Override - public ListAssociations setQuotaUser(java.lang.String quotaUser) { - return (ListAssociations) super.setQuotaUser(quotaUser); + public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); } @Override - public ListAssociations setUploadType(java.lang.String uploadType) { - return (ListAssociations) super.setUploadType(uploadType); + public RemoveAssociation setUserIp(java.lang.String userIp) { + return (RemoveAssociation) super.setUserIp(userIp); } - @Override - public ListAssociations setUploadProtocol(java.lang.String uploadProtocol) { - return (ListAssociations) super.setUploadProtocol(uploadProtocol); + /** Name of the security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. + */ + public java.lang.String getSecurityPolicy() { + return securityPolicy; } - @Override - public ListAssociations setUserIp(java.lang.String userIp) { - return (ListAssociations) super.setUserIp(userIp); + /** Name of the security policy to update. */ + public RemoveAssociation setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; + return this; + } + + /** Name for the attachment that will be removed. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Name for the attachment that will be removed. + */ + public java.lang.String getName() { + return name; + } + + /** Name for the attachment that will be removed. */ + public RemoveAssociation setName(java.lang.String name) { + this.name = name; + return this; } /** - * The target resource to list associations. It is an organization, or a folder. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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 targetResource; + private java.lang.String requestId; - /** The target resource to list associations. It is an organization, or a folder. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating 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 getTargetResource() { - return targetResource; + public java.lang.String getRequestId() { + return requestId; } /** - * The target resource to list associations. It is an organization, or a folder. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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 ListAssociations setTargetResource(java.lang.String targetResource) { - this.targetResource = targetResource; + public RemoveAssociation setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public ListAssociations set(String parameterName, Object value) { - return (ListAssociations) super.set(parameterName, value); + public RemoveAssociation set(String parameterName, Object value) { + return (RemoveAssociation) super.set(parameterName, value); } } /** - * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. + * Deletes a rule at the specified priority. * - * Create a request for the method "organizationSecurityPolicies.listPreconfiguredExpressionSets". + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were + * used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.removeRule instead. + * + * Create a request for the method "organizationSecurityPolicies.removeRule". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link ListPreconfiguredExpressionSets#execute()} method to invoke the - * remote operation. + * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation. * + * @param securityPolicy Name of the security policy to update. * @return the request */ - public ListPreconfiguredExpressionSets listPreconfiguredExpressionSets() throws java.io.IOException { - ListPreconfiguredExpressionSets result = new ListPreconfiguredExpressionSets(); + public RemoveRule removeRule(java.lang.String securityPolicy) throws java.io.IOException { + RemoveRule result = new RemoveRule(securityPolicy); initialize(result); return result; } - public class ListPreconfiguredExpressionSets extends ComputeRequest { + public class RemoveRule extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/listPreconfiguredExpressionSets"; + private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/removeRule"; + + private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = + java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); /** - * Gets the current list of preconfigured Web Application Firewall (WAF) expressions. + * Deletes a rule at the specified priority. * - * Create a request for the method "organizationSecurityPolicies.listPreconfiguredExpressionSets". + * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API + * were used to modify firewall policies. This usage is now disabled for most organizations. Use + * firewallPolicies.removeRule instead. + * + * Create a request for the method "organizationSecurityPolicies.removeRule". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link ListPreconfiguredExpressionSets#execute()} method to invoke the - * remote operation.

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

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

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

* + * @param securityPolicy Name of the security policy to update. * @since 1.13 */ - protected ListPreconfiguredExpressionSets() { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SecurityPoliciesListPreconfiguredExpressionSetsResponse.class); - } - - @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(); + protected RemoveRule(java.lang.String securityPolicy) { + super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } } @Override - public ListPreconfiguredExpressionSets set$Xgafv(java.lang.String $Xgafv) { - return (ListPreconfiguredExpressionSets) super.set$Xgafv($Xgafv); + public RemoveRule set$Xgafv(java.lang.String $Xgafv) { + return (RemoveRule) super.set$Xgafv($Xgafv); } @Override - public ListPreconfiguredExpressionSets setAccessToken(java.lang.String accessToken) { - return (ListPreconfiguredExpressionSets) super.setAccessToken(accessToken); + public RemoveRule setAccessToken(java.lang.String accessToken) { + return (RemoveRule) super.setAccessToken(accessToken); } @Override - public ListPreconfiguredExpressionSets setAlt(java.lang.String alt) { - return (ListPreconfiguredExpressionSets) super.setAlt(alt); + public RemoveRule setAlt(java.lang.String alt) { + return (RemoveRule) super.setAlt(alt); } @Override - public ListPreconfiguredExpressionSets setCallback(java.lang.String callback) { - return (ListPreconfiguredExpressionSets) super.setCallback(callback); + public RemoveRule setCallback(java.lang.String callback) { + return (RemoveRule) super.setCallback(callback); } @Override - public ListPreconfiguredExpressionSets setFields(java.lang.String fields) { - return (ListPreconfiguredExpressionSets) super.setFields(fields); + public RemoveRule setFields(java.lang.String fields) { + return (RemoveRule) super.setFields(fields); } @Override - public ListPreconfiguredExpressionSets setKey(java.lang.String key) { - return (ListPreconfiguredExpressionSets) super.setKey(key); + public RemoveRule setKey(java.lang.String key) { + return (RemoveRule) super.setKey(key); } @Override - public ListPreconfiguredExpressionSets setOauthToken(java.lang.String oauthToken) { - return (ListPreconfiguredExpressionSets) super.setOauthToken(oauthToken); + public RemoveRule setOauthToken(java.lang.String oauthToken) { + return (RemoveRule) super.setOauthToken(oauthToken); } @Override - public ListPreconfiguredExpressionSets setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListPreconfiguredExpressionSets) super.setPrettyPrint(prettyPrint); + public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveRule) super.setPrettyPrint(prettyPrint); } @Override - public ListPreconfiguredExpressionSets setQuotaUser(java.lang.String quotaUser) { - return (ListPreconfiguredExpressionSets) super.setQuotaUser(quotaUser); + public RemoveRule setQuotaUser(java.lang.String quotaUser) { + return (RemoveRule) super.setQuotaUser(quotaUser); } @Override - public ListPreconfiguredExpressionSets setUploadType(java.lang.String uploadType) { - return (ListPreconfiguredExpressionSets) super.setUploadType(uploadType); + public RemoveRule setUploadType(java.lang.String uploadType) { + return (RemoveRule) super.setUploadType(uploadType); } @Override - public ListPreconfiguredExpressionSets setUploadProtocol(java.lang.String uploadProtocol) { - return (ListPreconfiguredExpressionSets) super.setUploadProtocol(uploadProtocol); + public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveRule) super.setUploadProtocol(uploadProtocol); } @Override - public ListPreconfiguredExpressionSets setUserIp(java.lang.String userIp) { - return (ListPreconfiguredExpressionSets) super.setUserIp(userIp); - } - - /** - * 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 RemoveRule setUserIp(java.lang.String userIp) { + return (RemoveRule) super.setUserIp(userIp); + } + + /** Name of the security policy to update. */ + @com.google.api.client.util.Key + private java.lang.String securityPolicy; + + /** Name of the security policy to update. */ - public ListPreconfiguredExpressionSets setFilter(java.lang.String filter) { - this.filter = filter; + public java.lang.String getSecurityPolicy() { + return securityPolicy; + } + + /** Name of the security policy to update. */ + public RemoveRule setSecurityPolicy(java.lang.String securityPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), + "Parameter securityPolicy must conform to the pattern " + + "(securityPolicies/)?[0-9]{0,20}"); + } + this.securityPolicy = securityPolicy; 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`) - */ + /** The priority of the rule to remove from the security policy. */ @com.google.api.client.util.Key - private java.lang.Long maxResults; + private java.lang.Integer priority; - /** 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] + /** The priority of the rule to remove from the security policy. */ - public java.lang.Long getMaxResults() { - return maxResults; + public java.lang.Integer getPriority() { + return priority; } - /** - * 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 ListPreconfiguredExpressionSets setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; + /** The priority of the rule to remove from the security policy. */ + public RemoveRule setPriority(java.lang.Integer priority) { + this.priority = priority; return this; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ @com.google.api.client.util.Key - private java.lang.String orderBy; + private java.lang.String requestId; - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in - reverse chronological order (newest result first). Use this to sort resources like operations so - that the newest operation is returned first. + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. - Currently, only sorting by `name` or `creationTimestamp desc` is supported. + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getOrderBy() { - return orderBy; + public java.lang.String getRequestId() { + return requestId; } /** - * Sorts list results by a certain order. By default, results are returned in alphanumerical - * order based on the resource name. + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. * - * You can also sort results in descending order based on the creation timestamp using - * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` - * field in reverse chronological order (newest result first). Use this to sort resources like - * operations so that the newest operation is returned first. + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. * - * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public ListPreconfiguredExpressionSets setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; + public RemoveRule setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } + @Override + public RemoveRule set(String parameterName, Object value) { + return (RemoveRule) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the OrganizationSnapshotRecycleBinPolicy collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.OrganizationSnapshotRecycleBinPolicy.List request = compute.organizationSnapshotRecycleBinPolicy().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public OrganizationSnapshotRecycleBinPolicy organizationSnapshotRecycleBinPolicy() { + return new OrganizationSnapshotRecycleBinPolicy(); + } + + /** + * The "organizationSnapshotRecycleBinPolicy" collection of methods. + */ + public class OrganizationSnapshotRecycleBinPolicy { + + /** + * Returns the specified SnapshotRecycleBinPolicy. + * + * 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 Get#execute()} method to invoke the remote operation. + * + * @param organization Organization ID for this request. + * @return the request + */ + public Get get(java.lang.String organization) throws java.io.IOException { + Get result = new Get(organization); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/snapshotRecycleBinPolicy"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); + /** - * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a - * previous list request to get the next page of results. + * Returns the specified SnapshotRecycleBinPolicy. + * + * Create a request for the method "organizationSnapshotRecycleBinPolicy.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link 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 organization Organization ID for this request. + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + 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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); + } + } - /** 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; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } - /** - * 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 ListPreconfiguredExpressionSets setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } - /** Parent ID for this request. */ - @com.google.api.client.util.Key - private java.lang.String parentId; + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - /** Parent ID for this request. - */ - public java.lang.String getParentId() { - return parentId; + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } - /** Parent ID for this request. */ - public ListPreconfiguredExpressionSets setParentId(java.lang.String parentId) { - this.parentId = parentId; - return this; + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } - /** - * 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; + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - 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; + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } - /** - * 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. + @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); + } + + /** Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Organization ID for this request. */ - public ListPreconfiguredExpressionSets setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public java.lang.String getOrganization() { + return organization; + } + + /** Organization ID for this request. */ + public Get setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + 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.organization = organization; return this; } @Override - public ListPreconfiguredExpressionSets set(String parameterName, Object value) { - return (ListPreconfiguredExpressionSets) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Moves the specified security policy. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.move instead. + * Patches the SnapshotRecycleBinPolicy. * - * Create a request for the method "organizationSecurityPolicies.move". + * 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 Move#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param securityPolicy Name of the security policy to update. + * @param organization Organization ID for this request. + * @param content the {@link com.google.api.services.compute.model.SnapshotRecycleBinPolicy} * @return the request */ - public Move move(java.lang.String securityPolicy) throws java.io.IOException { - Move result = new Move(securityPolicy); + 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 Move extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/move"; + private static final String REST_PATH = "{+organization}/global/snapshotRecycleBinPolicy"; - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); /** - * Moves the specified security policy. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API - * were used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.move instead. + * Patches the SnapshotRecycleBinPolicy. * - * Create a request for the method "organizationSecurityPolicies.move". + * Create a request for the method "organizationSnapshotRecycleBinPolicy.patch". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Move#execute()} method to invoke the remote operation.

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

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

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

* - * @param securityPolicy Name of the security policy to update. + * @param organization Organization ID for this request. + * @param content the {@link com.google.api.services.compute.model.SnapshotRecycleBinPolicy} * @since 1.13 */ - protected Move(java.lang.String securityPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy 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(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + 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 Move set$Xgafv(java.lang.String $Xgafv) { - return (Move) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Move setAccessToken(java.lang.String accessToken) { - return (Move) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Move setAlt(java.lang.String alt) { - return (Move) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Move setCallback(java.lang.String callback) { - return (Move) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Move setFields(java.lang.String fields) { - return (Move) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Move setKey(java.lang.String key) { - return (Move) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Move setOauthToken(java.lang.String oauthToken) { - return (Move) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Move setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Move) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Move setQuotaUser(java.lang.String quotaUser) { - return (Move) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Move setUploadType(java.lang.String uploadType) { - return (Move) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Move setUploadProtocol(java.lang.String uploadProtocol) { - return (Move) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Move setUserIp(java.lang.String userIp) { - return (Move) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } - /** Name of the security policy to update. */ + /** Organization ID for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String organization; - /** Name of the security policy to update. + /** Organization ID for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getOrganization() { + return organization; } - /** Name of the security policy to update. */ - public Move setSecurityPolicy(java.lang.String securityPolicy) { + /** Organization ID for this request. */ + public Patch setOrganization(java.lang.String organization) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + 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.securityPolicy = securityPolicy; - return this; - } - - /** The new parent of the security policy. */ - @com.google.api.client.util.Key - private java.lang.String parentId; - - /** The new parent of the security policy. - */ - public java.lang.String getParentId() { - return parentId; - } - - /** The new parent of the security policy. */ - public Move setParentId(java.lang.String parentId) { - this.parentId = parentId; + this.organization = organization; return this; } @@ -135847,599 +142063,612 @@ 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 Move setRequestId(java.lang.String requestId) { + public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Move set(String parameterName, Object value) { - return (Move) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the OrganizationZoneVmExtensionPolicies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.OrganizationZoneVmExtensionPolicies.List request = compute.organizationZoneVmExtensionPolicies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public OrganizationZoneVmExtensionPolicies organizationZoneVmExtensionPolicies() { + return new OrganizationZoneVmExtensionPolicies(); + } + + /** + * The "organizationZoneVmExtensionPolicies" collection of methods. + */ + public class OrganizationZoneVmExtensionPolicies { + /** - * Patches the specified policy with the data included in the request. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.patch instead. + * Retrieves details of a specific zone VM extension policy within an organization. * - * Create a request for the method "organizationSecurityPolicies.patch". + * Create a request for the method "organizationZoneVmExtensionPolicies.get". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @param organization Organization ID for this request. + * @param zone Name of the zone for this request. + * @param vmExtensionPolicy Name of the VM extension policy resource to return. * @return the request */ - public Patch patch(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicy content) throws java.io.IOException { - Patch result = new Patch(securityPolicy, content); + public Get get(java.lang.String organization, java.lang.String zone, java.lang.String vmExtensionPolicy) throws java.io.IOException { + Get result = new Get(organization, zone, vmExtensionPolicy); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}"; + private static final String REST_PATH = "{+organization}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}"; - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); + + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern VM_EXTENSION_POLICY_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Patches the specified policy with the data included in the request. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API - * were used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.patch instead. + * Retrieves details of a specific zone VM extension policy within an organization. * - * Create a request for the method "organizationSecurityPolicies.patch". + * Create a request for the method "organizationZoneVmExtensionPolicies.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

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

+ * parameters, call the {@link 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 securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicy} + * @param organization Organization ID for this request. + * @param zone Name of the zone for this request. + * @param vmExtensionPolicy Name of the VM extension policy resource to return. * @since 1.13 */ - protected Patch(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicy content) { - super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + protected Get(java.lang.String organization, java.lang.String zone, java.lang.String vmExtensionPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VmExtensionPolicy.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(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + 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.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.vmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(vmExtensionPolicy, "Required parameter vmExtensionPolicy must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(VM_EXTENSION_POLICY_PATTERN.matcher(vmExtensionPolicy).matches(), + "Parameter vmExtensionPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - /** Name of the security policy to update. */ + @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); + } + + /** Organization ID for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String organization; - /** Name of the security policy to update. + /** Organization ID for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getOrganization() { + return organization; } - /** Name of the security policy to update. */ - public Patch setSecurityPolicy(java.lang.String securityPolicy) { + /** Organization ID for this request. */ + public Get setOrganization(java.lang.String organization) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + 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.securityPolicy = securityPolicy; + 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). - */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String zone; - 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 zone for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getZone() { + return 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. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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; + /** 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; } - /** Indicates fields to be cleared as part of this request. */ + /** Name of the VM extension policy resource to return. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String vmExtensionPolicy; - /** Indicates fields to be cleared as part of this request. + /** Name of the VM extension policy resource to return. */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getVmExtensionPolicy() { + return vmExtensionPolicy; } - /** Indicates fields to be cleared as part of this request. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + /** Name of the VM extension policy resource to return. */ + public Get setVmExtensionPolicy(java.lang.String vmExtensionPolicy) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(VM_EXTENSION_POLICY_PATTERN.matcher(vmExtensionPolicy).matches(), + "Parameter vmExtensionPolicy must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.vmExtensionPolicy = vmExtensionPolicy; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Patches a rule at the specified priority. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.patchRule instead. + * Retrieves details of a specific VM extension within an organization. * - * Create a request for the method "organizationSecurityPolicies.patchRule". + * Create a request for the method "organizationZoneVmExtensionPolicies.getVmExtension". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation. + * parameters, call the {@link GetVmExtension#execute()} method to invoke the remote operation. * - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @param organization Organization ID for this request. + * @param zone Name of the zone for this request. + * @param extensionName * @return the request */ - public PatchRule patchRule(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) throws java.io.IOException { - PatchRule result = new PatchRule(securityPolicy, content); + public GetVmExtension getVmExtension(java.lang.String organization, java.lang.String zone, java.lang.String extensionName) throws java.io.IOException { + GetVmExtension result = new GetVmExtension(organization, zone, extensionName); initialize(result); return result; } - public class PatchRule extends ComputeRequest { + public class GetVmExtension extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/patchRule"; + private static final String REST_PATH = "{+organization}/zones/{zone}/vmExtensions/{extensionName}"; - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); + + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + private final java.util.regex.Pattern EXTENSION_NAME_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); /** - * Patches a rule at the specified priority. + * Retrieves details of a specific VM extension within an organization. * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API - * were used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.patchRule instead. - * - * Create a request for the method "organizationSecurityPolicies.patchRule". + * Create a request for the method "organizationZoneVmExtensionPolicies.getVmExtension". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link PatchRule#execute()} method to invoke the remote operation.

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

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

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

* - * @param securityPolicy Name of the security policy to update. - * @param content the {@link com.google.api.services.compute.model.SecurityPolicyRule} + * @param organization Organization ID for this request. + * @param zone Name of the zone for this request. + * @param extensionName * @since 1.13 */ - protected PatchRule(java.lang.String securityPolicy, com.google.api.services.compute.model.SecurityPolicyRule content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + protected GetVmExtension(java.lang.String organization, java.lang.String zone, java.lang.String extensionName) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VmExtension.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(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + 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.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.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 PatchRule set$Xgafv(java.lang.String $Xgafv) { - return (PatchRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public PatchRule setAccessToken(java.lang.String accessToken) { - return (PatchRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public PatchRule setAlt(java.lang.String alt) { - return (PatchRule) super.setAlt(alt); + public GetVmExtension set$Xgafv(java.lang.String $Xgafv) { + return (GetVmExtension) super.set$Xgafv($Xgafv); } @Override - public PatchRule setCallback(java.lang.String callback) { - return (PatchRule) super.setCallback(callback); + public GetVmExtension setAccessToken(java.lang.String accessToken) { + return (GetVmExtension) super.setAccessToken(accessToken); } @Override - public PatchRule setFields(java.lang.String fields) { - return (PatchRule) super.setFields(fields); + public GetVmExtension setAlt(java.lang.String alt) { + return (GetVmExtension) super.setAlt(alt); } @Override - public PatchRule setKey(java.lang.String key) { - return (PatchRule) super.setKey(key); + public GetVmExtension setCallback(java.lang.String callback) { + return (GetVmExtension) super.setCallback(callback); } @Override - public PatchRule setOauthToken(java.lang.String oauthToken) { - return (PatchRule) super.setOauthToken(oauthToken); + public GetVmExtension setFields(java.lang.String fields) { + return (GetVmExtension) super.setFields(fields); } @Override - public PatchRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (PatchRule) super.setPrettyPrint(prettyPrint); + public GetVmExtension setKey(java.lang.String key) { + return (GetVmExtension) super.setKey(key); } @Override - public PatchRule setQuotaUser(java.lang.String quotaUser) { - return (PatchRule) super.setQuotaUser(quotaUser); + public GetVmExtension setOauthToken(java.lang.String oauthToken) { + return (GetVmExtension) super.setOauthToken(oauthToken); } @Override - public PatchRule setUploadType(java.lang.String uploadType) { - return (PatchRule) super.setUploadType(uploadType); + public GetVmExtension setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetVmExtension) super.setPrettyPrint(prettyPrint); } @Override - public PatchRule setUploadProtocol(java.lang.String uploadProtocol) { - return (PatchRule) super.setUploadProtocol(uploadProtocol); + public GetVmExtension setQuotaUser(java.lang.String quotaUser) { + return (GetVmExtension) super.setQuotaUser(quotaUser); } @Override - public PatchRule setUserIp(java.lang.String userIp) { - return (PatchRule) super.setUserIp(userIp); + public GetVmExtension setUploadType(java.lang.String uploadType) { + return (GetVmExtension) super.setUploadType(uploadType); } - /** Name of the security policy to update. */ - @com.google.api.client.util.Key - private java.lang.String securityPolicy; - - /** Name of the security policy to update. - */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + @Override + public GetVmExtension setUploadProtocol(java.lang.String uploadProtocol) { + return (GetVmExtension) super.setUploadProtocol(uploadProtocol); } - /** Name of the security policy to update. */ - public PatchRule setSecurityPolicy(java.lang.String securityPolicy) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); - } - this.securityPolicy = securityPolicy; - return this; + @Override + public GetVmExtension setUserIp(java.lang.String userIp) { + return (GetVmExtension) super.setUserIp(userIp); } - /** The priority of the rule to patch. */ + /** Organization ID for this request. */ @com.google.api.client.util.Key - private java.lang.Integer priority; + private java.lang.String organization; - /** The priority of the rule to patch. + /** Organization ID for this request. */ - public java.lang.Integer getPriority() { - return priority; + public java.lang.String getOrganization() { + return organization; } - /** The priority of the rule to patch. */ - public PatchRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** Organization ID for this request. */ + public GetVmExtension setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + 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.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). - */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String zone; - 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 zone for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getZone() { + return 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. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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 PatchRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Name of the zone for this request. */ + public GetVmExtension 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; } - /** Indicates fields to be cleared as part of this request. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.String extensionName; + + /** - /** Indicates fields to be cleared as part of this request. */ - public String getUpdateMask() { - return updateMask; + public java.lang.String getExtensionName() { + return extensionName; } - /** Indicates fields to be cleared as part of this request. */ - public PatchRule setUpdateMask(String updateMask) { - this.updateMask = updateMask; + public GetVmExtension 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 PatchRule set(String parameterName, Object value) { - return (PatchRule) super.set(parameterName, value); + public GetVmExtension set(String parameterName, Object value) { + return (GetVmExtension) super.set(parameterName, value); } } /** - * Removes an association for the specified security policy. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.removeAssociation instead. + * Creates a new zone-level VM extension policy within an organization. * - * Create a request for the method "organizationSecurityPolicies.removeAssociation". + * Create a request for the method "organizationZoneVmExtensionPolicies.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * - * @param securityPolicy Name of the security policy to update. + * @param organization Organization ID for this request. + * @param zone Name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.VmExtensionPolicy} * @return the request */ - public RemoveAssociation removeAssociation(java.lang.String securityPolicy) throws java.io.IOException { - RemoveAssociation result = new RemoveAssociation(securityPolicy); + public Insert insert(java.lang.String organization, java.lang.String zone, com.google.api.services.compute.model.VmExtensionPolicy content) throws java.io.IOException { + Insert result = new Insert(organization, zone, content); initialize(result); return result; } - public class RemoveAssociation extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/removeAssociation"; + private static final String REST_PATH = "{+organization}/zones/{zone}/vmExtensionPolicies"; - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); + + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Removes an association for the specified security policy. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API - * were used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.removeAssociation instead. + * Creates a new zone-level VM extension policy within an organization. * - * Create a request for the method "organizationSecurityPolicies.removeAssociation". + * Create a request for the method "organizationZoneVmExtensionPolicies.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveAssociation#execute()} method to invoke the remote operation. - *

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

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

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

* - * @param securityPolicy Name of the security policy to update. + * @param organization Organization ID for this request. + * @param zone Name of the zone for this request. + * @param content the {@link com.google.api.services.compute.model.VmExtensionPolicy} * @since 1.13 */ - protected RemoveAssociation(java.lang.String securityPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + protected Insert(java.lang.String organization, java.lang.String zone, com.google.api.services.compute.model.VmExtensionPolicy content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.organization = com.google.api.client.util.Preconditions.checkNotNull(organization, "Required parameter organization must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @Override - public RemoveAssociation set$Xgafv(java.lang.String $Xgafv) { - return (RemoveAssociation) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public RemoveAssociation setAccessToken(java.lang.String accessToken) { - return (RemoveAssociation) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public RemoveAssociation setAlt(java.lang.String alt) { - return (RemoveAssociation) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public RemoveAssociation setCallback(java.lang.String callback) { - return (RemoveAssociation) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public RemoveAssociation setFields(java.lang.String fields) { - return (RemoveAssociation) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public RemoveAssociation setKey(java.lang.String key) { - return (RemoveAssociation) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public RemoveAssociation setOauthToken(java.lang.String oauthToken) { - return (RemoveAssociation) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public RemoveAssociation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveAssociation) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public RemoveAssociation setQuotaUser(java.lang.String quotaUser) { - return (RemoveAssociation) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public RemoveAssociation setUploadType(java.lang.String uploadType) { - return (RemoveAssociation) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public RemoveAssociation setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveAssociation) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public RemoveAssociation setUserIp(java.lang.String userIp) { - return (RemoveAssociation) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } - /** Name of the security policy to update. */ + /** Organization ID for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String organization; - /** Name of the security policy to update. + /** Organization ID for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getOrganization() { + return organization; } - /** Name of the security policy to update. */ - public RemoveAssociation setSecurityPolicy(java.lang.String securityPolicy) { + /** Organization ID for this request. */ + public Insert setOrganization(java.lang.String organization) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + 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.securityPolicy = securityPolicy; + this.organization = organization; return this; } - /** Name for the attachment that will be removed. */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String zone; - /** Name for the attachment that will be removed. + /** Name of the zone for this request. */ - public java.lang.String getName() { - return name; + public java.lang.String getZone() { + return zone; } - /** Name for the attachment that will be removed. */ - public RemoveAssociation setName(java.lang.String name) { - this.name = name; + /** Name of the zone for this request. */ + public Insert setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; return this; } @@ -136487,291 +142716,512 @@ 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 RemoveAssociation setRequestId(java.lang.String requestId) { + public Insert setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public RemoveAssociation set(String parameterName, Object value) { - return (RemoveAssociation) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Deletes a rule at the specified priority. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were - * used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.removeRule instead. + * Lists all VM extension policies within a specific zone for an organization. * - * Create a request for the method "organizationSecurityPolicies.removeRule". + * Create a request for the method "organizationZoneVmExtensionPolicies.list". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param securityPolicy Name of the security policy to update. + * @param organization Organization ID for this request. + * @param zone Name of the zone for this request. * @return the request */ - public RemoveRule removeRule(java.lang.String securityPolicy) throws java.io.IOException { - RemoveRule result = new RemoveRule(securityPolicy); + public List list(java.lang.String organization, java.lang.String zone) throws java.io.IOException { + List result = new List(organization, zone); initialize(result); return result; } - public class RemoveRule extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "locations/global/securityPolicies/{securityPolicy}/removeRule"; + private static final String REST_PATH = "{+organization}/zones/{zone}/vmExtensionPolicies"; - private final java.util.regex.Pattern SECURITY_POLICY_PATTERN = - java.util.regex.Pattern.compile("(securityPolicies/)?[0-9]{0,20}"); + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); + + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); /** - * Deletes a rule at the specified priority. - * - * Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API - * were used to modify firewall policies. This usage is now disabled for most organizations. Use - * firewallPolicies.removeRule instead. + * Lists all VM extension policies within a specific zone for an organization. * - * Create a request for the method "organizationSecurityPolicies.removeRule". + * Create a request for the method "organizationZoneVmExtensionPolicies.list". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link RemoveRule#execute()} method to invoke the remote operation.

- * {@link - * RemoveRule#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* - * @param securityPolicy Name of the security policy to update. + * @param organization Organization ID for this request. + * @param zone Name of the zone for this request. * @since 1.13 */ - protected RemoveRule(java.lang.String securityPolicy) { - super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class); - this.securityPolicy = com.google.api.client.util.Preconditions.checkNotNull(securityPolicy, "Required parameter securityPolicy must be specified."); + protected List(java.lang.String organization, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.VmExtensionPolicyList.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(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + 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.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } } @Override - public RemoveRule set$Xgafv(java.lang.String $Xgafv) { - return (RemoveRule) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public RemoveRule setAccessToken(java.lang.String accessToken) { - return (RemoveRule) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public RemoveRule setAlt(java.lang.String alt) { - return (RemoveRule) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public RemoveRule setCallback(java.lang.String callback) { - return (RemoveRule) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public RemoveRule setFields(java.lang.String fields) { - return (RemoveRule) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public RemoveRule setKey(java.lang.String key) { - return (RemoveRule) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public RemoveRule setOauthToken(java.lang.String oauthToken) { - return (RemoveRule) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public RemoveRule setPrettyPrint(java.lang.Boolean prettyPrint) { - return (RemoveRule) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public RemoveRule setQuotaUser(java.lang.String quotaUser) { - return (RemoveRule) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public RemoveRule setUploadType(java.lang.String uploadType) { - return (RemoveRule) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public RemoveRule setUploadProtocol(java.lang.String uploadProtocol) { - return (RemoveRule) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public RemoveRule setUserIp(java.lang.String userIp) { - return (RemoveRule) super.setUserIp(userIp); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } - /** Name of the security policy to update. */ + @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); + } + + /** Organization ID for this request. */ @com.google.api.client.util.Key - private java.lang.String securityPolicy; + private java.lang.String organization; - /** Name of the security policy to update. + /** Organization ID for this request. */ - public java.lang.String getSecurityPolicy() { - return securityPolicy; + public java.lang.String getOrganization() { + return organization; } - /** Name of the security policy to update. */ - public RemoveRule setSecurityPolicy(java.lang.String securityPolicy) { + /** Organization ID for this request. */ + public List setOrganization(java.lang.String organization) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(SECURITY_POLICY_PATTERN.matcher(securityPolicy).matches(), - "Parameter securityPolicy must conform to the pattern " + - "(securityPolicies/)?[0-9]{0,20}"); + 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.securityPolicy = securityPolicy; + this.organization = organization; return this; } - /** The priority of the rule to remove from the security policy. */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.Integer priority; + private java.lang.String zone; - /** The priority of the rule to remove from the security policy. + /** Name of the zone for this request. */ - public java.lang.Integer getPriority() { - return priority; + public java.lang.String getZone() { + return zone; } - /** The priority of the rule to remove from the security policy. */ - public RemoveRule setPriority(java.lang.Integer priority) { - this.priority = priority; + /** Name of the zone for this request. */ + public List setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; return this; } /** - * An optional request ID to identify requests. Specify a unique 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 RemoveRule setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setFilter(java.lang.String filter) { + this.filter = filter; return this; } - @Override - public RemoveRule set(String parameterName, Object value) { - return (RemoveRule) super.set(parameterName, value); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; } - } - } + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } - /** - * An accessor for creating requests from the OrganizationSnapshotRecycleBinPolicy collection. - * - *

The typical use is:

- *
-   *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.OrganizationSnapshotRecycleBinPolicy.List request = compute.organizationSnapshotRecycleBinPolicy().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public OrganizationSnapshotRecycleBinPolicy organizationSnapshotRecycleBinPolicy() { - return new OrganizationSnapshotRecycleBinPolicy(); - } + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; - /** - * The "organizationSnapshotRecycleBinPolicy" collection of methods. - */ - public class OrganizationSnapshotRecycleBinPolicy { + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } /** - * Returns the specified SnapshotRecycleBinPolicy. + * Lists all VM extensions within a specific zone for an organization. This is a read-only API. * - * Create a request for the method "organizationSnapshotRecycleBinPolicy.get". + * Create a request for the method "organizationZoneVmExtensionPolicies.listVmExtensions". * * 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 ListVmExtensions#execute()} method to invoke the remote operation. * * @param organization Organization ID for this request. + * @param zone Name of the zone for this request. * @return the request */ - public Get get(java.lang.String organization) throws java.io.IOException { - Get result = new Get(organization); + public ListVmExtensions listVmExtensions(java.lang.String organization, java.lang.String zone) throws java.io.IOException { + ListVmExtensions result = new ListVmExtensions(organization, zone); initialize(result); return result; } - public class Get extends ComputeRequest { + public class ListVmExtensions extends ComputeRequest { - private static final String REST_PATH = "{+organization}/global/snapshotRecycleBinPolicy"; + private static final String REST_PATH = "{+organization}/zones/{zone}/vmExtensions"; private final java.util.regex.Pattern ORGANIZATION_PATTERN = java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Returns the specified SnapshotRecycleBinPolicy. + * Lists all VM extensions within a specific zone for an organization. This is a read-only API. * - * Create a request for the method "organizationSnapshotRecycleBinPolicy.get". + * Create a request for the method "organizationZoneVmExtensionPolicies.listVmExtensions". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

+ * parameters, call the {@link ListVmExtensions#execute()} method to invoke the remote operation. + *

{@link ListVmExtensions#initialize(com.google.api.client.googleapis.services.AbstractGoogle + * ClientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.

* * @param organization Organization ID for this request. + * @param zone Name of the zone for this request. * @since 1.13 */ - protected Get(java.lang.String organization) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.SnapshotRecycleBinPolicy.class); + protected ListVmExtensions(java.lang.String organization, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ListVmExtensionsResponse.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(ORGANIZATION_PATTERN.matcher(organization).matches(), "Parameter organization must conform to the pattern " + "organizations/[0-9]{0,20}"); } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } } @Override @@ -136785,63 +143235,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public ListVmExtensions set$Xgafv(java.lang.String $Xgafv) { + return (ListVmExtensions) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public ListVmExtensions setAccessToken(java.lang.String accessToken) { + return (ListVmExtensions) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public ListVmExtensions setAlt(java.lang.String alt) { + return (ListVmExtensions) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public ListVmExtensions setCallback(java.lang.String callback) { + return (ListVmExtensions) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public ListVmExtensions setFields(java.lang.String fields) { + return (ListVmExtensions) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public ListVmExtensions setKey(java.lang.String key) { + return (ListVmExtensions) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public ListVmExtensions setOauthToken(java.lang.String oauthToken) { + return (ListVmExtensions) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public ListVmExtensions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListVmExtensions) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public ListVmExtensions setQuotaUser(java.lang.String quotaUser) { + return (ListVmExtensions) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public ListVmExtensions setUploadType(java.lang.String uploadType) { + return (ListVmExtensions) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public ListVmExtensions setUploadProtocol(java.lang.String uploadProtocol) { + return (ListVmExtensions) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public ListVmExtensions setUserIp(java.lang.String userIp) { + return (ListVmExtensions) super.setUserIp(userIp); } /** Organization ID for this request. */ @@ -136855,7 +143305,7 @@ public java.lang.String getOrganization() { } /** Organization ID for this request. */ - public Get setOrganization(java.lang.String organization) { + public ListVmExtensions setOrganization(java.lang.String organization) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), "Parameter organization must conform to the pattern " + @@ -136865,51 +143315,343 @@ public Get setOrganization(java.lang.String organization) { 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 ListVmExtensions setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * 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 ListVmExtensions 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 ListVmExtensions 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 ListVmExtensions 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 ListVmExtensions 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 ListVmExtensions setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public ListVmExtensions set(String parameterName, Object value) { + return (ListVmExtensions) super.set(parameterName, value); } } /** - * Patches the SnapshotRecycleBinPolicy. + * Modifies an existing zone VM extension policy within an organization. * - * Create a request for the method "organizationSnapshotRecycleBinPolicy.patch". + * Create a request for the method "organizationZoneVmExtensionPolicies.update". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param organization Organization ID for this request. - * @param content the {@link com.google.api.services.compute.model.SnapshotRecycleBinPolicy} + * @param zone Name of the zone for this request. + * @param vmExtensionPolicy Name of the zone VM extension policy to update. + * @param content the {@link com.google.api.services.compute.model.VmExtensionPolicy} * @return the request */ - public Patch patch(java.lang.String organization, com.google.api.services.compute.model.SnapshotRecycleBinPolicy content) throws java.io.IOException { - Patch result = new Patch(organization, content); + public Update update(java.lang.String organization, java.lang.String zone, java.lang.String vmExtensionPolicy, com.google.api.services.compute.model.VmExtensionPolicy content) throws java.io.IOException { + Update result = new Update(organization, zone, vmExtensionPolicy, content); initialize(result); return result; } - public class Patch extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "{+organization}/global/snapshotRecycleBinPolicy"; + private static final String REST_PATH = "{+organization}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}"; private final java.util.regex.Pattern ORGANIZATION_PATTERN = java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); + private final java.util.regex.Pattern ZONE_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + /** - * Patches the SnapshotRecycleBinPolicy. + * Modifies an existing zone VM extension policy within an organization. * - * Create a request for the method "organizationSnapshotRecycleBinPolicy.patch". + * Create a request for the method "organizationZoneVmExtensionPolicies.update". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation.

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link + * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param organization Organization ID for this request. - * @param content the {@link com.google.api.services.compute.model.SnapshotRecycleBinPolicy} + * @param zone Name of the zone for this request. + * @param vmExtensionPolicy Name of the zone VM extension policy to update. + * @param content the {@link com.google.api.services.compute.model.VmExtensionPolicy} * @since 1.13 */ - protected Patch(java.lang.String organization, com.google.api.services.compute.model.SnapshotRecycleBinPolicy content) { + protected Update(java.lang.String organization, java.lang.String zone, java.lang.String vmExtensionPolicy, com.google.api.services.compute.model.VmExtensionPolicy content) { super(Compute.this, "PATCH", REST_PATH, content, com.google.api.services.compute.model.Operation.class); this.organization = com.google.api.client.util.Preconditions.checkNotNull(organization, "Required parameter organization must be specified."); if (!getSuppressPatternChecks()) { @@ -136917,66 +143659,73 @@ protected Patch(java.lang.String organization, com.google.api.services.compute.m "Parameter organization must conform to the pattern " + "organizations/[0-9]{0,20}"); } + 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.vmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(vmExtensionPolicy, "Required parameter vmExtensionPolicy must be specified."); } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public Patch setUserIp(java.lang.String userIp) { - return (Patch) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) super.setUserIp(userIp); } /** Organization ID for this request. */ @@ -136990,7 +143739,7 @@ public java.lang.String getOrganization() { } /** Organization ID for this request. */ - public Patch setOrganization(java.lang.String organization) { + public Update setOrganization(java.lang.String organization) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), "Parameter organization must conform to the pattern " + @@ -137000,6 +143749,43 @@ public Patch setOrganization(java.lang.String organization) { 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 Update setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + + /** Name of the zone VM extension policy to update. */ + @com.google.api.client.util.Key + private java.lang.String vmExtensionPolicy; + + /** Name of the zone VM extension policy to update. + */ + public java.lang.String getVmExtensionPolicy() { + return vmExtensionPolicy; + } + + /** Name of the zone VM extension policy to update. */ + public Update setVmExtensionPolicy(java.lang.String vmExtensionPolicy) { + this.vmExtensionPolicy = vmExtensionPolicy; + return this; + } + /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -137044,14 +143830,14 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Patch setRequestId(java.lang.String requestId) { + public Update setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); } } diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfig.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfig.java index c1d66e5304a..4b1e092fcf0 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfig.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfig.java @@ -37,6 +37,20 @@ public final class BackendServiceLogConfig extends com.google.api.client.json.Ge @com.google.api.client.util.Key private java.lang.Boolean enable; + /** + * The list of request headers that will be logged to Stackdriver. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List loggingHttpRequestHeaders; + + /** + * The list of response headers that will be logged to Stackdriver. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List loggingHttpResponseHeaders; + /** * Deprecated in favor of optionalMode. This field can only be specified if logging is enabled for * this backend service. Configures whether all, none or a subset of optional fields should be @@ -95,6 +109,40 @@ public BackendServiceLogConfig setEnable(java.lang.Boolean enable) { return this; } + /** + * The list of request headers that will be logged to Stackdriver. + * @return value or {@code null} for none + */ + public java.util.List getLoggingHttpRequestHeaders() { + return loggingHttpRequestHeaders; + } + + /** + * The list of request headers that will be logged to Stackdriver. + * @param loggingHttpRequestHeaders loggingHttpRequestHeaders or {@code null} for none + */ + public BackendServiceLogConfig setLoggingHttpRequestHeaders(java.util.List loggingHttpRequestHeaders) { + this.loggingHttpRequestHeaders = loggingHttpRequestHeaders; + return this; + } + + /** + * The list of response headers that will be logged to Stackdriver. + * @return value or {@code null} for none + */ + public java.util.List getLoggingHttpResponseHeaders() { + return loggingHttpResponseHeaders; + } + + /** + * The list of response headers that will be logged to Stackdriver. + * @param loggingHttpResponseHeaders loggingHttpResponseHeaders or {@code null} for none + */ + public BackendServiceLogConfig setLoggingHttpResponseHeaders(java.util.List loggingHttpResponseHeaders) { + this.loggingHttpResponseHeaders = loggingHttpResponseHeaders; + return this; + } + /** * Deprecated in favor of optionalMode. This field can only be specified if logging is enabled for * this backend service. Configures whether all, none or a subset of optional fields should be diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfigLoggingHttpHeader.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfigLoggingHttpHeader.java new file mode 100644 index 00000000000..3eef0b3d3e2 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfigLoggingHttpHeader.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Determines which HTTP headers will be logged to Stackdriver. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BackendServiceLogConfigLoggingHttpHeader extends com.google.api.client.json.GenericJson { + + /** + * The name of the header to be logged. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String headerName; + + /** + * The name of the header to be logged. + * @return value or {@code null} for none + */ + public java.lang.String getHeaderName() { + return headerName; + } + + /** + * The name of the header to be logged. + * @param headerName headerName or {@code null} for none + */ + public BackendServiceLogConfigLoggingHttpHeader setHeaderName(java.lang.String headerName) { + this.headerName = headerName; + return this; + } + + @Override + public BackendServiceLogConfigLoggingHttpHeader set(String fieldName, Object value) { + return (BackendServiceLogConfigLoggingHttpHeader) super.set(fieldName, value); + } + + @Override + public BackendServiceLogConfigLoggingHttpHeader clone() { + return (BackendServiceLogConfigLoggingHttpHeader) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllersFailoverRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllersFailoverRequest.java index 10c86581130..4d6400c8dfe 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllersFailoverRequest.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaControllersFailoverRequest.java @@ -36,13 +36,6 @@ public final class HaControllersFailoverRequest extends com.google.api.client.js @com.google.api.client.util.Key private java.lang.String failoverToZone; - /** - * Name of the destination zone for the failover. Deprecated: use failover_to_zone instead. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String primaryZone; - /** * Name of the destination zone for the failover. * @return value or {@code null} for none @@ -60,23 +53,6 @@ public HaControllersFailoverRequest setFailoverToZone(java.lang.String failoverT return this; } - /** - * Name of the destination zone for the failover. Deprecated: use failover_to_zone instead. - * @return value or {@code null} for none - */ - public java.lang.String getPrimaryZone() { - return primaryZone; - } - - /** - * Name of the destination zone for the failover. Deprecated: use failover_to_zone instead. - * @param primaryZone primaryZone or {@code null} for none - */ - public HaControllersFailoverRequest setPrimaryZone(java.lang.String primaryZone) { - this.primaryZone = primaryZone; - return this; - } - @Override public HaControllersFailoverRequest set(String fieldName, Object value) { return (HaControllersFailoverRequest) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerUpdatePolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerUpdatePolicy.java index 5cc7e672182..16f58255021 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerUpdatePolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerUpdatePolicy.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class InstanceGroupManagerUpdatePolicy extends com.google.api.client.json.GenericJson { + /** + * Actions that are allowed to update instances within MIG. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedActions; + /** * Whether the boot disk is allowed to be updated with restart. * The value may be {@code null}. @@ -131,6 +138,23 @@ public final class InstanceGroupManagerUpdatePolicy extends com.google.api.clien @com.google.api.client.util.Key private java.lang.String type; + /** + * Actions that are allowed to update instances within MIG. + * @return value or {@code null} for none + */ + public java.util.List getAllowedActions() { + return allowedActions; + } + + /** + * Actions that are allowed to update instances within MIG. + * @param allowedActions allowedActions or {@code null} for none + */ + public InstanceGroupManagerUpdatePolicy setAllowedActions(java.util.List allowedActions) { + this.allowedActions = allowedActions; + return this; + } + /** * Whether the boot disk is allowed to be updated with restart. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersApplyUpdatesRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersApplyUpdatesRequest.java index cc379401820..e0eae6b6d34 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersApplyUpdatesRequest.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersApplyUpdatesRequest.java @@ -37,6 +37,13 @@ public final class InstanceGroupManagersApplyUpdatesRequest extends com.google.a @com.google.api.client.util.Key private java.lang.Boolean allInstances; + /** + * Actions that are allowed to update instances within MIG. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedActions; + /** * Whether the boot disk is allowed to be updated with restart. * The value may be {@code null}. @@ -105,6 +112,23 @@ public InstanceGroupManagersApplyUpdatesRequest setAllInstances(java.lang.Boolea return this; } + /** + * Actions that are allowed to update instances within MIG. + * @return value or {@code null} for none + */ + public java.util.List getAllowedActions() { + return allowedActions; + } + + /** + * Actions that are allowed to update instances within MIG. + * @param allowedActions allowedActions or {@code null} for none + */ + public InstanceGroupManagersApplyUpdatesRequest setAllowedActions(java.util.List allowedActions) { + this.allowedActions = allowedActions; + return this; + } + /** * Whether the boot disk is allowed to be updated with restart. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java index 7d14a73c218..90c04f253ca 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java @@ -30,30 +30,29 @@ public final class InstanceManagedByIgmError extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Contents of the error. + * Output only. Contents of the error. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceManagedByIgmErrorManagedInstanceError error; /** - * Output only. [Output Only] Details of the instance action that triggered this error. May be - * null, if the error was not caused by an action on an instance. This field is optional. + * Output only. Details of the instance action that triggered this error. May be null, if the + * error was not caused by an action on an instance. This field is optional. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceManagedByIgmErrorInstanceActionDetails instanceActionDetails; /** - * Output only. [Output Only] The time that this error occurred. This value is in RFC3339 text - * format. + * Output only. The time that this error occurred. This value is in RFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String timestamp; /** - * Output only. [Output Only] Contents of the error. + * Output only. Contents of the error. * @return value or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError getError() { @@ -61,7 +60,7 @@ public InstanceManagedByIgmErrorManagedInstanceError getError() { } /** - * Output only. [Output Only] Contents of the error. + * Output only. Contents of the error. * @param error error or {@code null} for none */ public InstanceManagedByIgmError setError(InstanceManagedByIgmErrorManagedInstanceError error) { @@ -70,8 +69,8 @@ public InstanceManagedByIgmError setError(InstanceManagedByIgmErrorManagedInstan } /** - * Output only. [Output Only] Details of the instance action that triggered this error. May be - * null, if the error was not caused by an action on an instance. This field is optional. + * Output only. Details of the instance action that triggered this error. May be null, if the + * error was not caused by an action on an instance. This field is optional. * @return value or {@code null} for none */ public InstanceManagedByIgmErrorInstanceActionDetails getInstanceActionDetails() { @@ -79,8 +78,8 @@ public InstanceManagedByIgmErrorInstanceActionDetails getInstanceActionDetails() } /** - * Output only. [Output Only] Details of the instance action that triggered this error. May be - * null, if the error was not caused by an action on an instance. This field is optional. + * Output only. Details of the instance action that triggered this error. May be null, if the + * error was not caused by an action on an instance. This field is optional. * @param instanceActionDetails instanceActionDetails or {@code null} for none */ public InstanceManagedByIgmError setInstanceActionDetails(InstanceManagedByIgmErrorInstanceActionDetails instanceActionDetails) { @@ -89,8 +88,7 @@ public InstanceManagedByIgmError setInstanceActionDetails(InstanceManagedByIgmEr } /** - * Output only. [Output Only] The time that this error occurred. This value is in RFC3339 text - * format. + * Output only. The time that this error occurred. This value is in RFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getTimestamp() { @@ -98,8 +96,7 @@ public java.lang.String getTimestamp() { } /** - * Output only. [Output Only] The time that this error occurred. This value is in RFC3339 text - * format. + * Output only. The time that this error occurred. This value is in RFC3339 text format. * @param timestamp timestamp or {@code null} for none */ public InstanceManagedByIgmError setTimestamp(java.lang.String timestamp) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java index f92d0a732ed..b699c99ec32 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java @@ -30,33 +30,33 @@ public final class InstanceManagedByIgmErrorInstanceActionDetails extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Action that managed instance group was executing on the instance - * when the error occurred. Possible values: + * Output only. Action that managed instance group was executing on the instance when the error + * occurred. Possible values: * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String action; /** - * Output only. [Output Only] The URL of the instance. The URL can be set even if the instance has - * not yet been created. + * Output only. The URL of the instance. The URL can be set even if the instance has not yet been + * created. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String instance; /** - * Output only. [Output Only] Version this instance was created from, or was being created from, - * but the creation failed. Corresponds to one of the versions that were set on the Instance Group - * Manager resource at the time this instance was being created. + * Output only. Version this instance was created from, or was being created from, but the + * creation failed. Corresponds to one of the versions that were set on the Instance Group Manager + * resource at the time this instance was being created. * The value may be {@code null}. */ @com.google.api.client.util.Key private ManagedInstanceVersion version; /** - * Output only. [Output Only] Action that managed instance group was executing on the instance - * when the error occurred. Possible values: + * Output only. Action that managed instance group was executing on the instance when the error + * occurred. Possible values: * @return value or {@code null} for none */ public java.lang.String getAction() { @@ -64,8 +64,8 @@ public java.lang.String getAction() { } /** - * Output only. [Output Only] Action that managed instance group was executing on the instance - * when the error occurred. Possible values: + * Output only. Action that managed instance group was executing on the instance when the error + * occurred. Possible values: * @param action action or {@code null} for none */ public InstanceManagedByIgmErrorInstanceActionDetails setAction(java.lang.String action) { @@ -74,8 +74,8 @@ public InstanceManagedByIgmErrorInstanceActionDetails setAction(java.lang.String } /** - * Output only. [Output Only] The URL of the instance. The URL can be set even if the instance has - * not yet been created. + * Output only. The URL of the instance. The URL can be set even if the instance has not yet been + * created. * @return value or {@code null} for none */ public java.lang.String getInstance() { @@ -83,8 +83,8 @@ public java.lang.String getInstance() { } /** - * Output only. [Output Only] The URL of the instance. The URL can be set even if the instance has - * not yet been created. + * Output only. The URL of the instance. The URL can be set even if the instance has not yet been + * created. * @param instance instance or {@code null} for none */ public InstanceManagedByIgmErrorInstanceActionDetails setInstance(java.lang.String instance) { @@ -93,9 +93,9 @@ public InstanceManagedByIgmErrorInstanceActionDetails setInstance(java.lang.Stri } /** - * Output only. [Output Only] Version this instance was created from, or was being created from, - * but the creation failed. Corresponds to one of the versions that were set on the Instance Group - * Manager resource at the time this instance was being created. + * Output only. Version this instance was created from, or was being created from, but the + * creation failed. Corresponds to one of the versions that were set on the Instance Group Manager + * resource at the time this instance was being created. * @return value or {@code null} for none */ public ManagedInstanceVersion getVersion() { @@ -103,9 +103,9 @@ public ManagedInstanceVersion getVersion() { } /** - * Output only. [Output Only] Version this instance was created from, or was being created from, - * but the creation failed. Corresponds to one of the versions that were set on the Instance Group - * Manager resource at the time this instance was being created. + * Output only. Version this instance was created from, or was being created from, but the + * creation failed. Corresponds to one of the versions that were set on the Instance Group Manager + * resource at the time this instance was being created. * @param version version or {@code null} for none */ public InstanceManagedByIgmErrorInstanceActionDetails setVersion(ManagedInstanceVersion version) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java index 3006dd39ef3..6202587499a 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java @@ -30,21 +30,21 @@ public final class InstanceManagedByIgmErrorManagedInstanceError extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Error code. + * Output only. Error code. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String code; /** - * Output only. [Output Only] Error message. + * Output only. Error message. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String message; /** - * Output only. [Output Only] Error code. + * Output only. Error code. * @return value or {@code null} for none */ public java.lang.String getCode() { @@ -52,7 +52,7 @@ public java.lang.String getCode() { } /** - * Output only. [Output Only] Error code. + * Output only. Error code. * @param code code or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError setCode(java.lang.String code) { @@ -61,7 +61,7 @@ public InstanceManagedByIgmErrorManagedInstanceError setCode(java.lang.String co } /** - * Output only. [Output Only] Error message. + * Output only. Error message. * @return value or {@code null} for none */ public java.lang.String getMessage() { @@ -69,7 +69,7 @@ public java.lang.String getMessage() { } /** - * Output only. [Output Only] Error message. + * Output only. Error message. * @param message message or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError setMessage(java.lang.String message) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OrganizationRolloutsListResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OrganizationRolloutsListResponse.java new file mode 100644 index 00000000000..810cc2484b8 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OrganizationRolloutsListResponse.java @@ -0,0 +1,401 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for OrganizationRolloutsListResponse. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OrganizationRolloutsListResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * A list of Rollout resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + + /** + * [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public OrganizationRolloutsListResponse setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public OrganizationRolloutsListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Rollout resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of Rollout resources. + * @param items items or {@code null} for none + */ + public OrganizationRolloutsListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public OrganizationRolloutsListResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public OrganizationRolloutsListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public OrganizationRolloutsListResponse setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public OrganizationRolloutsListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public OrganizationRolloutsListResponse set(String fieldName, Object value) { + return (OrganizationRolloutsListResponse) super.set(fieldName, value); + } + + @Override + public OrganizationRolloutsListResponse clone() { + return (OrganizationRolloutsListResponse) super.clone(); + } + + /** + * [Output Only] Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for OrganizationRolloutsListResponseWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersApplyUpdatesRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersApplyUpdatesRequest.java index 0c52ac21058..7ff8a1c08b2 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersApplyUpdatesRequest.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersApplyUpdatesRequest.java @@ -37,6 +37,13 @@ public final class RegionInstanceGroupManagersApplyUpdatesRequest extends com.go @com.google.api.client.util.Key private java.lang.Boolean allInstances; + /** + * Actions that are allowed to update instances within MIG. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedActions; + /** * Whether the boot disk is allowed to be updated with restart. * The value may be {@code null}. @@ -105,6 +112,23 @@ public RegionInstanceGroupManagersApplyUpdatesRequest setAllInstances(java.lang. return this; } + /** + * Actions that are allowed to update instances within MIG. + * @return value or {@code null} for none + */ + public java.util.List getAllowedActions() { + return allowedActions; + } + + /** + * Actions that are allowed to update instances within MIG. + * @param allowedActions allowedActions or {@code null} for none + */ + public RegionInstanceGroupManagersApplyUpdatesRequest setAllowedActions(java.util.List allowedActions) { + this.allowedActions = allowedActions; + return this; + } + /** * Whether the boot disk is allowed to be updated with restart. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopology.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopology.java index 7c9c162c17b..d8b7c4199c9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopology.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopology.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class ResourceStatusPhysicalHostTopology extends com.google.api.client.json.GenericJson { + /** + * Output only. [Output Only] Additional location information of the running instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourceStatusPhysicalHostTopologyAdditionalAttributes additionalAttributes; + /** * [Output Only] The ID of the block in which the running instance is located. Instances within * the same block experience low network latency. @@ -61,6 +68,23 @@ public final class ResourceStatusPhysicalHostTopology extends com.google.api.cli @com.google.api.client.util.Key private java.lang.String subblock; + /** + * Output only. [Output Only] Additional location information of the running instance. + * @return value or {@code null} for none + */ + public ResourceStatusPhysicalHostTopologyAdditionalAttributes getAdditionalAttributes() { + return additionalAttributes; + } + + /** + * Output only. [Output Only] Additional location information of the running instance. + * @param additionalAttributes additionalAttributes or {@code null} for none + */ + public ResourceStatusPhysicalHostTopology setAdditionalAttributes(ResourceStatusPhysicalHostTopologyAdditionalAttributes additionalAttributes) { + this.additionalAttributes = additionalAttributes; + return this; + } + /** * [Output Only] The ID of the block in which the running instance is located. Instances within * the same block experience low network latency. diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopologyAdditionalAttributes.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopologyAdditionalAttributes.java new file mode 100644 index 00000000000..29b35d78c50 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopologyAdditionalAttributes.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Additional location information of the running instance. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ResourceStatusPhysicalHostTopologyAdditionalAttributes extends com.google.api.client.json.GenericJson { + + /** + * Output only. The IDs of the accelerator topologies the instance belongs to. For example The key + * will be topologies like "4x4", "2x2x2" and the value will be the location ID of the topologies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map acceleratorTopologyIds; + + /** + * Output only. The IDs of the accelerator topologies the instance belongs to. For example The key + * will be topologies like "4x4", "2x2x2" and the value will be the location ID of the topologies. + * @return value or {@code null} for none + */ + public java.util.Map getAcceleratorTopologyIds() { + return acceleratorTopologyIds; + } + + /** + * Output only. The IDs of the accelerator topologies the instance belongs to. For example The key + * will be topologies like "4x4", "2x2x2" and the value will be the location ID of the topologies. + * @param acceleratorTopologyIds acceleratorTopologyIds or {@code null} for none + */ + public ResourceStatusPhysicalHostTopologyAdditionalAttributes setAcceleratorTopologyIds(java.util.Map acceleratorTopologyIds) { + this.acceleratorTopologyIds = acceleratorTopologyIds; + return this; + } + + @Override + public ResourceStatusPhysicalHostTopologyAdditionalAttributes set(String fieldName, Object value) { + return (ResourceStatusPhysicalHostTopologyAdditionalAttributes) super.set(fieldName, value); + } + + @Override + public ResourceStatusPhysicalHostTopologyAdditionalAttributes clone() { + return (ResourceStatusPhysicalHostTopologyAdditionalAttributes) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterNat.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterNat.java index dcdeb0aed60..49bb7ee52c3 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterNat.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterNat.java @@ -48,6 +48,15 @@ public final class RouterNat extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.util.List drainNatIps; + /** + * Output only. Effective timeout (in seconds) for TCP connections that are in TIME_WAIT state. + * This value is equal to tcp_time_wait_timeout_sec if it is set, otherwise it is equal to 120s. + * The field is output only. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer effectiveTcpTimeWaitTimeoutSec; + /** * Enable Dynamic Port Allocation. * @@ -269,6 +278,27 @@ public RouterNat setDrainNatIps(java.util.List drainNatIps) { return this; } + /** + * Output only. Effective timeout (in seconds) for TCP connections that are in TIME_WAIT state. + * This value is equal to tcp_time_wait_timeout_sec if it is set, otherwise it is equal to 120s. + * The field is output only. + * @return value or {@code null} for none + */ + public java.lang.Integer getEffectiveTcpTimeWaitTimeoutSec() { + return effectiveTcpTimeWaitTimeoutSec; + } + + /** + * Output only. Effective timeout (in seconds) for TCP connections that are in TIME_WAIT state. + * This value is equal to tcp_time_wait_timeout_sec if it is set, otherwise it is equal to 120s. + * The field is output only. + * @param effectiveTcpTimeWaitTimeoutSec effectiveTcpTimeWaitTimeoutSec or {@code null} for none + */ + public RouterNat setEffectiveTcpTimeWaitTimeoutSec(java.lang.Integer effectiveTcpTimeWaitTimeoutSec) { + this.effectiveTcpTimeWaitTimeoutSec = effectiveTcpTimeWaitTimeoutSec; + return this; + } + /** * Enable Dynamic Port Allocation. * diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicy.java index 8a55d9eaf19..89d8a70960f 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/SnapshotRecycleBinPolicy.java @@ -47,6 +47,14 @@ public final class SnapshotRecycleBinPolicy extends com.google.api.client.json.G @com.google.api.client.util.Key private java.util.Map rules; + /** + * Output only. The system rules for snapshot recycle bin policy. Defines the default rule that + * applies if no customer-defined rule matches. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map systemRules; + /** * The rules for the snapshot recycle bin policy. The key is either 'default' or namespacedName of * the TagValue which can be in the format: @@ -74,6 +82,25 @@ public SnapshotRecycleBinPolicy setRules(java.util.Map getSystemRules() { + return systemRules; + } + + /** + * Output only. The system rules for snapshot recycle bin policy. Defines the default rule that + * applies if no customer-defined rule matches. + * @param systemRules systemRules or {@code null} for none + */ + public SnapshotRecycleBinPolicy setSystemRules(java.util.Map systemRules) { + this.systemRules = systemRules; + return this; + } + @Override public SnapshotRecycleBinPolicy set(String fieldName, Object value) { return (SnapshotRecycleBinPolicy) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/alpha/2.0.0/pom.xml b/clients/google-api-services-compute/alpha/2.0.0/pom.xml index b67e4a613bd..fc29cae3228 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/pom.xml +++ b/clients/google-api-services-compute/alpha/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-compute - alpha-rev20260501-2.0.0 - Compute Engine API alpha-rev20260501-2.0.0 + alpha-rev20260520-2.0.0 + Compute Engine API alpha-rev20260520-2.0.0 jar 2011 diff --git a/clients/google-api-services-compute/alpha/README.md b/clients/google-api-services-compute/alpha/README.md index 42c68d99f60..5ef25cf0443 100644 --- a/clients/google-api-services-compute/alpha/README.md +++ b/clients/google-api-services-compute/alpha/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-compute - alpha-rev20260501-2.0.0 + alpha-rev20260520-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:alpha-rev20260501-2.0.0' + implementation 'com.google.apis:google-api-services-compute:alpha-rev20260520-2.0.0' } ``` 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 2318d545cb6..d4dea6fe705 100644 --- a/clients/google-api-services-compute/beta/2.0.0/README.md +++ b/clients/google-api-services-compute/beta/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-compute - beta-rev20260501-2.0.0 + beta-rev20260520-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:beta-rev20260501-2.0.0' + implementation 'com.google.apis:google-api-services-compute:beta-rev20260520-2.0.0' } ``` diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Compute.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Compute.java index ae3243b51ad..8d7df2dece4 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Compute.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/Compute.java @@ -124447,6 +124447,2773 @@ public List set(String parameterName, Object value) { } + /** + * An accessor for creating requests from the OrganizationRolloutPlans collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.OrganizationRolloutPlans.List request = compute.organizationRolloutPlans().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public OrganizationRolloutPlans organizationRolloutPlans() { + return new OrganizationRolloutPlans(); + } + + /** + * The "organizationRolloutPlans" collection of methods. + */ + public class OrganizationRolloutPlans { + + /** + * Deletes an OrganizationRolloutPlan. + * + * Create a request for the method "organizationRolloutPlans.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 organization Organization ID for this request. + * @param rolloutPlan Name of the OrganizationRolloutPlan resource to delete. + * @return the request + */ + public Delete delete(java.lang.String organization, java.lang.String rolloutPlan) throws java.io.IOException { + Delete result = new Delete(organization, rolloutPlan); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/rolloutPlans/{rolloutPlan}"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); + + private final java.util.regex.Pattern ROLLOUT_PLAN_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes an OrganizationRolloutPlan. + * + * Create a request for the method "organizationRolloutPlans.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param organization Organization ID for this request. + * @param rolloutPlan Name of the OrganizationRolloutPlan resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String organization, java.lang.String rolloutPlan) { + super(Compute.this, "DELETE", REST_PATH, null, 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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); + } + this.rolloutPlan = com.google.api.client.util.Preconditions.checkNotNull(rolloutPlan, "Required parameter rolloutPlan must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PLAN_PATTERN.matcher(rolloutPlan).matches(), + "Parameter rolloutPlan 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); + } + + /** Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Organization ID for this request. */ + public Delete setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + 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.organization = organization; + return this; + } + + /** Name of the OrganizationRolloutPlan resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String rolloutPlan; + + /** Name of the OrganizationRolloutPlan resource to delete. + */ + public java.lang.String getRolloutPlan() { + return rolloutPlan; + } + + /** Name of the OrganizationRolloutPlan resource to delete. */ + public Delete setRolloutPlan(java.lang.String rolloutPlan) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PLAN_PATTERN.matcher(rolloutPlan).matches(), + "Parameter rolloutPlan must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rolloutPlan = rolloutPlan; + 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); + } + } + /** + * Gets details of a single organization-scoped RolloutPlan. + * + * Create a request for the method "organizationRolloutPlans.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 organization Organization ID for this request. + * @param rolloutPlan Name of the persistent rollout plan to return. + * @return the request + */ + public Get get(java.lang.String organization, java.lang.String rolloutPlan) throws java.io.IOException { + Get result = new Get(organization, rolloutPlan); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/rolloutPlans/{rolloutPlan}"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); + + private final java.util.regex.Pattern ROLLOUT_PLAN_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets details of a single organization-scoped RolloutPlan. + * + * Create a request for the method "organizationRolloutPlans.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param organization Organization ID for this request. + * @param rolloutPlan Name of the persistent rollout plan to return. + * @since 1.13 + */ + protected Get(java.lang.String organization, java.lang.String rolloutPlan) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RolloutPlan.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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); + } + this.rolloutPlan = com.google.api.client.util.Preconditions.checkNotNull(rolloutPlan, "Required parameter rolloutPlan must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PLAN_PATTERN.matcher(rolloutPlan).matches(), + "Parameter rolloutPlan 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); + } + + /** Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Organization ID for this request. */ + public Get setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + 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.organization = organization; + return this; + } + + /** Name of the persistent rollout plan to return. */ + @com.google.api.client.util.Key + private java.lang.String rolloutPlan; + + /** Name of the persistent rollout plan to return. + */ + public java.lang.String getRolloutPlan() { + return rolloutPlan; + } + + /** Name of the persistent rollout plan to return. */ + public Get setRolloutPlan(java.lang.String rolloutPlan) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PLAN_PATTERN.matcher(rolloutPlan).matches(), + "Parameter rolloutPlan must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rolloutPlan = rolloutPlan; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates a new RolloutPlan in a given organization and location. + * + * Create a request for the method "organizationRolloutPlans.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 organization Organization ID for this request. + * @param content the {@link com.google.api.services.compute.model.RolloutPlan} + * @return the request + */ + public Insert insert(java.lang.String organization, com.google.api.services.compute.model.RolloutPlan content) throws java.io.IOException { + Insert result = new Insert(organization, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/rolloutPlans"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); + + /** + * Creates a new RolloutPlan in a given organization and location. + * + * Create a request for the method "organizationRolloutPlans.insert". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation.

{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param organization Organization ID for this request. + * @param content the {@link com.google.api.services.compute.model.RolloutPlan} + * @since 1.13 + */ + protected Insert(java.lang.String organization, com.google.api.services.compute.model.RolloutPlan content) { + super(Compute.this, "POST", 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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); + } + } + + @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); + } + + /** Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Organization ID for this request. */ + public Insert setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + 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.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 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 OrganizationRolloutPlans in a given organization and location. + * + * Create a request for the method "organizationRolloutPlans.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 organization Organization ID for this request. + * @return the request + */ + public List list(java.lang.String organization) throws java.io.IOException { + List result = new List(organization); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/rolloutPlans"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); + + /** + * Lists OrganizationRolloutPlans in a given organization and location. + * + * Create a request for the method "organizationRolloutPlans.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param organization Organization ID for this request. + * @since 1.13 + */ + protected List(java.lang.String organization) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.RolloutPlansListResponse.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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); + } + } + + @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); + } + + /** Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Organization ID for this request. */ + public List setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + 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.organization = organization; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the OrganizationRollouts collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.OrganizationRollouts.List request = compute.organizationRollouts().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public OrganizationRollouts organizationRollouts() { + return new OrganizationRollouts(); + } + + /** + * The "organizationRollouts" collection of methods. + */ + public class OrganizationRollouts { + + /** + * Advances a Rollout to the next wave, or completes it if no waves remain. + * + * Create a request for the method "organizationRollouts.advance". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Advance#execute()} method to invoke the remote operation. + * + * @param organization Required. Organization ID for this request. + * @param rollout Required. Name of the Rollout resource to advance. + * @return the request + */ + public Advance advance(java.lang.String organization, java.lang.String rollout) throws java.io.IOException { + Advance result = new Advance(organization, rollout); + initialize(result); + return result; + } + + public class Advance extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/rollouts/{rollout}/advance"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{1,19}"); + + private final java.util.regex.Pattern ROLLOUT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Advances a Rollout to the next wave, or completes it if no waves remain. + * + * Create a request for the method "organizationRollouts.advance". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Advance#execute()} method to invoke the remote operation.

+ * {@link + * Advance#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param organization Required. Organization ID for this request. + * @param rollout Required. Name of the Rollout resource to advance. + * @since 1.13 + */ + protected Advance(java.lang.String organization, java.lang.String rollout) { + super(Compute.this, "POST", REST_PATH, null, 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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + this.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public Advance set$Xgafv(java.lang.String $Xgafv) { + return (Advance) super.set$Xgafv($Xgafv); + } + + @Override + public Advance setAccessToken(java.lang.String accessToken) { + return (Advance) super.setAccessToken(accessToken); + } + + @Override + public Advance setAlt(java.lang.String alt) { + return (Advance) super.setAlt(alt); + } + + @Override + public Advance setCallback(java.lang.String callback) { + return (Advance) super.setCallback(callback); + } + + @Override + public Advance setFields(java.lang.String fields) { + return (Advance) super.setFields(fields); + } + + @Override + public Advance setKey(java.lang.String key) { + return (Advance) super.setKey(key); + } + + @Override + public Advance setOauthToken(java.lang.String oauthToken) { + return (Advance) super.setOauthToken(oauthToken); + } + + @Override + public Advance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Advance) super.setPrettyPrint(prettyPrint); + } + + @Override + public Advance setQuotaUser(java.lang.String quotaUser) { + return (Advance) super.setQuotaUser(quotaUser); + } + + @Override + public Advance setUploadType(java.lang.String uploadType) { + return (Advance) super.setUploadType(uploadType); + } + + @Override + public Advance setUploadProtocol(java.lang.String uploadProtocol) { + return (Advance) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Advance setUserIp(java.lang.String userIp) { + return (Advance) super.setUserIp(userIp); + } + + /** Required. Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Required. Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Required. Organization ID for this request. */ + public Advance setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + this.organization = organization; + return this; + } + + /** Required. Name of the Rollout resource to advance. */ + @com.google.api.client.util.Key + private java.lang.String rollout; + + /** Required. Name of the Rollout resource to advance. + */ + public java.lang.String getRollout() { + return rollout; + } + + /** Required. Name of the Rollout resource to advance. */ + public Advance setRollout(java.lang.String rollout) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rollout = rollout; + return this; + } + + /** Required. Wave number of the current wave. */ + @com.google.api.client.util.Key + private java.lang.Long currentWaveNumber; + + /** Required. Wave number of the current wave. + */ + public java.lang.Long getCurrentWaveNumber() { + return currentWaveNumber; + } + + /** Required. Wave number of the current wave. */ + public Advance setCurrentWaveNumber(java.lang.Long currentWaveNumber) { + this.currentWaveNumber = currentWaveNumber; + 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 Advance setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Advance set(String parameterName, Object value) { + return (Advance) super.set(parameterName, value); + } + } + /** + * Cancels a Rollout. + * + * Create a request for the method "organizationRollouts.cancel". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * + * @param organization Required. Organization ID for this request. + * @param rollout Name of the Rollout resource to cancel. + * @return the request + */ + public Cancel cancel(java.lang.String organization, java.lang.String rollout) throws java.io.IOException { + Cancel result = new Cancel(organization, rollout); + initialize(result); + return result; + } + + public class Cancel extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/rollouts/{rollout}"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{1,19}"); + + private final java.util.regex.Pattern ROLLOUT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Cancels a Rollout. + * + * Create a request for the method "organizationRollouts.cancel". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.

{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param organization Required. Organization ID for this request. + * @param rollout Name of the Rollout resource to cancel. + * @since 1.13 + */ + protected Cancel(java.lang.String organization, java.lang.String rollout) { + super(Compute.this, "PATCH", REST_PATH, null, 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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + this.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Cancel setUserIp(java.lang.String userIp) { + return (Cancel) super.setUserIp(userIp); + } + + /** Required. Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Required. Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Required. Organization ID for this request. */ + public Cancel setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + this.organization = organization; + return this; + } + + /** Name of the Rollout resource to cancel. */ + @com.google.api.client.util.Key + private java.lang.String rollout; + + /** Name of the Rollout resource to cancel. + */ + public java.lang.String getRollout() { + return rollout; + } + + /** Name of the Rollout resource to cancel. */ + public Cancel setRollout(java.lang.String rollout) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rollout = rollout; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public Cancel setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Optional. If true, then the ongoing rollout must be rolled back. Else, just cancel the + * rollout without taking any further actions. Note that products must support at least one of + * these options, however, it does not need to support both. + */ + @com.google.api.client.util.Key + private java.lang.Boolean rollback; + + /** Optional. If true, then the ongoing rollout must be rolled back. Else, just cancel the rollout + without taking any further actions. Note that products must support at least one of these options, + however, it does not need to support both. + */ + public java.lang.Boolean getRollback() { + return rollback; + } + + /** + * Optional. If true, then the ongoing rollout must be rolled back. Else, just cancel the + * rollout without taking any further actions. Note that products must support at least one of + * these options, however, it does not need to support both. + */ + public Cancel setRollback(java.lang.Boolean rollback) { + this.rollback = rollback; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a Rollout. + * + * Create a request for the method "organizationRollouts.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 organization Required. Organization ID for this request. + * @param rollout Name of the Rollout resource to delete. + * @return the request + */ + public Delete delete(java.lang.String organization, java.lang.String rollout) throws java.io.IOException { + Delete result = new Delete(organization, rollout); + initialize(result); + return result; + } + + public class Delete extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/rollouts/{rollout}"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{1,19}"); + + private final java.util.regex.Pattern ROLLOUT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Deletes a Rollout. + * + * Create a request for the method "organizationRollouts.delete". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param organization Required. Organization ID for this request. + * @param rollout Name of the Rollout resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String organization, java.lang.String rollout) { + super(Compute.this, "DELETE", REST_PATH, null, 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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + this.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout 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); + } + + /** Required. Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Required. Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Required. Organization ID for this request. */ + public Delete setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + this.organization = organization; + return this; + } + + /** Name of the Rollout resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String rollout; + + /** Name of the Rollout resource to delete. + */ + public java.lang.String getRollout() { + return rollout; + } + + /** Name of the Rollout resource to delete. */ + public Delete setRollout(java.lang.String rollout) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rollout = rollout; + 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); + } + } + /** + * Gets details of a single organization-scoped Rollout. + * + * Create a request for the method "organizationRollouts.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 organization Organization ID for this request. + * @param rollout Name of the persistent rollout to return. + * @return the request + */ + public Get get(java.lang.String organization, java.lang.String rollout) throws java.io.IOException { + Get result = new Get(organization, rollout); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/rollouts/{rollout}"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); + + private final java.util.regex.Pattern ROLLOUT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Gets details of a single organization-scoped Rollout. + * + * Create a request for the method "organizationRollouts.get". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param organization Organization ID for this request. + * @param rollout Name of the persistent rollout to return. + * @since 1.13 + */ + protected Get(java.lang.String organization, java.lang.String rollout) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Rollout.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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); + } + this.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout 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); + } + + /** Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Organization ID for this request. */ + public Get setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + 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.organization = organization; + return this; + } + + /** Name of the persistent rollout to return. */ + @com.google.api.client.util.Key + private java.lang.String rollout; + + /** Name of the persistent rollout to return. + */ + public java.lang.String getRollout() { + return rollout; + } + + /** Name of the persistent rollout to return. */ + public Get setRollout(java.lang.String rollout) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rollout = rollout; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists Rollouts in a given organization and location. + * + * Create a request for the method "organizationRollouts.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 organization Required. Organization ID for this request. + * @return the request + */ + public List list(java.lang.String organization) throws java.io.IOException { + List result = new List(organization); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/rollouts"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{1,19}"); + + /** + * Lists Rollouts in a given organization and location. + * + * Create a request for the method "organizationRollouts.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param organization Required. Organization ID for this request. + * @since 1.13 + */ + protected List(java.lang.String organization) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OrganizationRolloutsListResponse.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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); + } + + /** Required. Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Required. Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Required. Organization ID for this request. */ + public List setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + this.organization = organization; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Pauses a Rollout. + * + * Create a request for the method "organizationRollouts.pause". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Pause#execute()} method to invoke the remote operation. + * + * @param organization Required. Organization ID for this request. + * @param rollout Required. Name of the Rollout resource to pause. + * @return the request + */ + public Pause pause(java.lang.String organization, java.lang.String rollout) throws java.io.IOException { + Pause result = new Pause(organization, rollout); + initialize(result); + return result; + } + + public class Pause extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/rollouts/{rollout}/pause"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{1,19}"); + + private final java.util.regex.Pattern ROLLOUT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Pauses a Rollout. + * + * Create a request for the method "organizationRollouts.pause". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Pause#execute()} method to invoke the remote operation.

{@link + * Pause#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param organization Required. Organization ID for this request. + * @param rollout Required. Name of the Rollout resource to pause. + * @since 1.13 + */ + protected Pause(java.lang.String organization, java.lang.String rollout) { + super(Compute.this, "POST", REST_PATH, null, 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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + this.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public Pause set$Xgafv(java.lang.String $Xgafv) { + return (Pause) super.set$Xgafv($Xgafv); + } + + @Override + public Pause setAccessToken(java.lang.String accessToken) { + return (Pause) super.setAccessToken(accessToken); + } + + @Override + public Pause setAlt(java.lang.String alt) { + return (Pause) super.setAlt(alt); + } + + @Override + public Pause setCallback(java.lang.String callback) { + return (Pause) super.setCallback(callback); + } + + @Override + public Pause setFields(java.lang.String fields) { + return (Pause) super.setFields(fields); + } + + @Override + public Pause setKey(java.lang.String key) { + return (Pause) super.setKey(key); + } + + @Override + public Pause setOauthToken(java.lang.String oauthToken) { + return (Pause) super.setOauthToken(oauthToken); + } + + @Override + public Pause setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Pause) super.setPrettyPrint(prettyPrint); + } + + @Override + public Pause setQuotaUser(java.lang.String quotaUser) { + return (Pause) super.setQuotaUser(quotaUser); + } + + @Override + public Pause setUploadType(java.lang.String uploadType) { + return (Pause) super.setUploadType(uploadType); + } + + @Override + public Pause setUploadProtocol(java.lang.String uploadProtocol) { + return (Pause) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Pause setUserIp(java.lang.String userIp) { + return (Pause) super.setUserIp(userIp); + } + + /** Required. Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Required. Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Required. Organization ID for this request. */ + public Pause setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + this.organization = organization; + return this; + } + + /** Required. Name of the Rollout resource to pause. */ + @com.google.api.client.util.Key + private java.lang.String rollout; + + /** Required. Name of the Rollout resource to pause. + */ + public java.lang.String getRollout() { + return rollout; + } + + /** Required. Name of the Rollout resource to pause. */ + public Pause setRollout(java.lang.String rollout) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rollout = rollout; + return this; + } + + /** + * The etag of the Rollout. If this is provided, the request will only succeed if the etag + * matches the current etag of the Rollout. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** The etag of the Rollout. If this is provided, the request will only succeed if the etag matches the + current etag of the Rollout. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * The etag of the Rollout. If this is provided, the request will only succeed if the etag + * matches the current etag of the Rollout. + */ + public Pause setEtag(java.lang.String etag) { + this.etag = etag; + 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 Pause setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Pause set(String parameterName, Object value) { + return (Pause) super.set(parameterName, value); + } + } + /** + * Resumes a Rollout. + * + * Create a request for the method "organizationRollouts.resume". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Resume#execute()} method to invoke the remote operation. + * + * @param organization Required. Organization ID for this request. + * @param rollout Required. Name of the Rollout resource to resume. + * @return the request + */ + public Resume resume(java.lang.String organization, java.lang.String rollout) throws java.io.IOException { + Resume result = new Resume(organization, rollout); + initialize(result); + return result; + } + + public class Resume extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/global/rollouts/{rollout}/resume"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{1,19}"); + + private final java.util.regex.Pattern ROLLOUT_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + + /** + * Resumes a Rollout. + * + * Create a request for the method "organizationRollouts.resume". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link Resume#execute()} method to invoke the remote operation.

{@link + * Resume#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param organization Required. Organization ID for this request. + * @param rollout Required. Name of the Rollout resource to resume. + * @since 1.13 + */ + protected Resume(java.lang.String organization, java.lang.String rollout) { + super(Compute.this, "POST", REST_PATH, null, 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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + this.rollout = com.google.api.client.util.Preconditions.checkNotNull(rollout, "Required parameter rollout must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public Resume set$Xgafv(java.lang.String $Xgafv) { + return (Resume) super.set$Xgafv($Xgafv); + } + + @Override + public Resume setAccessToken(java.lang.String accessToken) { + return (Resume) super.setAccessToken(accessToken); + } + + @Override + public Resume setAlt(java.lang.String alt) { + return (Resume) super.setAlt(alt); + } + + @Override + public Resume setCallback(java.lang.String callback) { + return (Resume) super.setCallback(callback); + } + + @Override + public Resume setFields(java.lang.String fields) { + return (Resume) super.setFields(fields); + } + + @Override + public Resume setKey(java.lang.String key) { + return (Resume) super.setKey(key); + } + + @Override + public Resume setOauthToken(java.lang.String oauthToken) { + return (Resume) super.setOauthToken(oauthToken); + } + + @Override + public Resume setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Resume) super.setPrettyPrint(prettyPrint); + } + + @Override + public Resume setQuotaUser(java.lang.String quotaUser) { + return (Resume) super.setQuotaUser(quotaUser); + } + + @Override + public Resume setUploadType(java.lang.String uploadType) { + return (Resume) super.setUploadType(uploadType); + } + + @Override + public Resume setUploadProtocol(java.lang.String uploadProtocol) { + return (Resume) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Resume setUserIp(java.lang.String userIp) { + return (Resume) super.setUserIp(userIp); + } + + /** Required. Organization ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String organization; + + /** Required. Organization ID for this request. + */ + public java.lang.String getOrganization() { + return organization; + } + + /** Required. Organization ID for this request. */ + public Resume setOrganization(java.lang.String organization) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{1,19}"); + } + this.organization = organization; + return this; + } + + /** Required. Name of the Rollout resource to resume. */ + @com.google.api.client.util.Key + private java.lang.String rollout; + + /** Required. Name of the Rollout resource to resume. + */ + public java.lang.String getRollout() { + return rollout; + } + + /** Required. Name of the Rollout resource to resume. */ + public Resume setRollout(java.lang.String rollout) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ROLLOUT_PATTERN.matcher(rollout).matches(), + "Parameter rollout must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.rollout = rollout; + return this; + } + + /** + * The etag of the Rollout. If this is provided, the request will only succeed if the etag + * matches the current etag of the Rollout. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** The etag of the Rollout. If this is provided, the request will only succeed if the etag matches the + current etag of the Rollout. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * The etag of the Rollout. If this is provided, the request will only succeed if the etag + * matches the current etag of the Rollout. + */ + public Resume setEtag(java.lang.String etag) { + this.etag = etag; + 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 Resume setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Resume set(String parameterName, Object value) { + return (Resume) super.set(parameterName, value); + } + } + + } + /** * An accessor for creating requests from the OrganizationSecurityPolicies collection. * diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfig.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfig.java index 9e51cf1085d..e5d74348cd0 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfig.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfig.java @@ -37,6 +37,20 @@ public final class BackendServiceLogConfig extends com.google.api.client.json.Ge @com.google.api.client.util.Key private java.lang.Boolean enable; + /** + * The list of request headers that will be logged to Stackdriver. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List loggingHttpRequestHeaders; + + /** + * The list of response headers that will be logged to Stackdriver. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List loggingHttpResponseHeaders; + /** * This field can only be specified if logging is enabled for this backend service and * "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to @@ -85,6 +99,40 @@ public BackendServiceLogConfig setEnable(java.lang.Boolean enable) { return this; } + /** + * The list of request headers that will be logged to Stackdriver. + * @return value or {@code null} for none + */ + public java.util.List getLoggingHttpRequestHeaders() { + return loggingHttpRequestHeaders; + } + + /** + * The list of request headers that will be logged to Stackdriver. + * @param loggingHttpRequestHeaders loggingHttpRequestHeaders or {@code null} for none + */ + public BackendServiceLogConfig setLoggingHttpRequestHeaders(java.util.List loggingHttpRequestHeaders) { + this.loggingHttpRequestHeaders = loggingHttpRequestHeaders; + return this; + } + + /** + * The list of response headers that will be logged to Stackdriver. + * @return value or {@code null} for none + */ + public java.util.List getLoggingHttpResponseHeaders() { + return loggingHttpResponseHeaders; + } + + /** + * The list of response headers that will be logged to Stackdriver. + * @param loggingHttpResponseHeaders loggingHttpResponseHeaders or {@code null} for none + */ + public BackendServiceLogConfig setLoggingHttpResponseHeaders(java.util.List loggingHttpResponseHeaders) { + this.loggingHttpResponseHeaders = loggingHttpResponseHeaders; + return this; + } + /** * This field can only be specified if logging is enabled for this backend service and * "logConfig.optionalMode" was set to CUSTOM. Contains a list of optional fields you want to diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfigLoggingHttpHeader.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfigLoggingHttpHeader.java new file mode 100644 index 00000000000..3eef0b3d3e2 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/BackendServiceLogConfigLoggingHttpHeader.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Determines which HTTP headers will be logged to Stackdriver. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BackendServiceLogConfigLoggingHttpHeader extends com.google.api.client.json.GenericJson { + + /** + * The name of the header to be logged. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String headerName; + + /** + * The name of the header to be logged. + * @return value or {@code null} for none + */ + public java.lang.String getHeaderName() { + return headerName; + } + + /** + * The name of the header to be logged. + * @param headerName headerName or {@code null} for none + */ + public BackendServiceLogConfigLoggingHttpHeader setHeaderName(java.lang.String headerName) { + this.headerName = headerName; + return this; + } + + @Override + public BackendServiceLogConfigLoggingHttpHeader set(String fieldName, Object value) { + return (BackendServiceLogConfigLoggingHttpHeader) super.set(fieldName, value); + } + + @Override + public BackendServiceLogConfigLoggingHttpHeader clone() { + return (BackendServiceLogConfigLoggingHttpHeader) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DateTime.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DateTime.java new file mode 100644 index 00000000000..a25410c20e5 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/DateTime.java @@ -0,0 +1,290 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Represents civil time (or occasionally physical time). + * + * This type can represent a civil time in one of a few possible ways: + * + * When utc_offset is set and time_zone is unset: a civil time on a calendar day with a + * particular offset from UTC. When time_zone is set and utc_offset is unset: a civil time on a + * calendar day in a particular time zone. When neither time_zone nor utc_offset is set: a civil + * time on a calendar day in local time. + * + * The date is relative to the Proleptic Gregorian Calendar. + * + * If year, month, or day are 0, the DateTime is considered not to have a specific year, month, or + * day respectively. + * + * This type may also be used to represent a physical time if all the date and time fields are set + * and either case of the `time_offset` oneof is set. Consider using `Timestamp` message for + * physical time instead. If your use case also would like to store the user's timezone, that can be + * done in another field. + * + * This type is more flexible than some applications may want. Make sure to document and validate + * your application's limitations. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DateTime extends com.google.api.client.json.GenericJson { + + /** + * Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if + * specifying a datetime without a day. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer day; + + /** + * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An + * API may choose to allow the value "24:00:00" for scenarios like business closing time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer hours; + + /** + * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer minutes; + + /** + * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer month; + + /** + * Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer nanos; + + /** + * Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API + * may allow the value 60 if it allows leap-seconds. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer seconds; + + /** + * Time zone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TimeZone timeZone; + + /** + * UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset + * of -4:00 would be represented as { seconds: -14400 }. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String utcOffset; + + /** + * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer year; + + /** + * Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if + * specifying a datetime without a day. + * @return value or {@code null} for none + */ + public java.lang.Integer getDay() { + return day; + } + + /** + * Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if + * specifying a datetime without a day. + * @param day day or {@code null} for none + */ + public DateTime setDay(java.lang.Integer day) { + this.day = day; + return this; + } + + /** + * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An + * API may choose to allow the value "24:00:00" for scenarios like business closing time. + * @return value or {@code null} for none + */ + public java.lang.Integer getHours() { + return hours; + } + + /** + * Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An + * API may choose to allow the value "24:00:00" for scenarios like business closing time. + * @param hours hours or {@code null} for none + */ + public DateTime setHours(java.lang.Integer hours) { + this.hours = hours; + return this; + } + + /** + * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. + * @return value or {@code null} for none + */ + public java.lang.Integer getMinutes() { + return minutes; + } + + /** + * Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. + * @param minutes minutes or {@code null} for none + */ + public DateTime setMinutes(java.lang.Integer minutes) { + this.minutes = minutes; + return this; + } + + /** + * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month. + * @return value or {@code null} for none + */ + public java.lang.Integer getMonth() { + return month; + } + + /** + * Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month. + * @param month month or {@code null} for none + */ + public DateTime setMonth(java.lang.Integer month) { + this.month = month; + return this; + } + + /** + * Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0. + * @return value or {@code null} for none + */ + public java.lang.Integer getNanos() { + return nanos; + } + + /** + * Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0. + * @param nanos nanos or {@code null} for none + */ + public DateTime setNanos(java.lang.Integer nanos) { + this.nanos = nanos; + return this; + } + + /** + * Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API + * may allow the value 60 if it allows leap-seconds. + * @return value or {@code null} for none + */ + public java.lang.Integer getSeconds() { + return seconds; + } + + /** + * Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API + * may allow the value 60 if it allows leap-seconds. + * @param seconds seconds or {@code null} for none + */ + public DateTime setSeconds(java.lang.Integer seconds) { + this.seconds = seconds; + return this; + } + + /** + * Time zone. + * @return value or {@code null} for none + */ + public TimeZone getTimeZone() { + return timeZone; + } + + /** + * Time zone. + * @param timeZone timeZone or {@code null} for none + */ + public DateTime setTimeZone(TimeZone timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset + * of -4:00 would be represented as { seconds: -14400 }. + * @return value or {@code null} for none + */ + public String getUtcOffset() { + return utcOffset; + } + + /** + * UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset + * of -4:00 would be represented as { seconds: -14400 }. + * @param utcOffset utcOffset or {@code null} for none + */ + public DateTime setUtcOffset(String utcOffset) { + this.utcOffset = utcOffset; + return this; + } + + /** + * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year. + * @return value or {@code null} for none + */ + public java.lang.Integer getYear() { + return year; + } + + /** + * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year. + * @param year year or {@code null} for none + */ + public DateTime setYear(java.lang.Integer year) { + this.year = year; + return this; + } + + @Override + public DateTime set(String fieldName, Object value) { + return (DateTime) super.set(fieldName, value); + } + + @Override + public DateTime clone() { + return (DateTime) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java index a5a8eadb258..bec2da151cf 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HttpRouteAction.java @@ -63,6 +63,15 @@ public final class HttpRouteAction extends com.google.api.client.json.GenericJso @com.google.api.client.util.Key private HttpFaultInjection faultInjectionPolicy; + /** + * Image optimization policy for this URL Map's route. Available only for Global EXTERNAL_MANAGED + * load balancer schemes. Either Cloud CDN must be enabled on the backend service or backend + * bucket serving the route, or cache policy must be configured on the same route + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ImageOptimizationPolicy imageOptimizationPolicy; + /** * Specifies the maximum duration (timeout) for streams on the selected route. Unlike the timeout * field where the timeout duration starts from the time the request has been fully processed @@ -219,6 +228,27 @@ public HttpRouteAction setFaultInjectionPolicy(HttpFaultInjection faultInjection return this; } + /** + * Image optimization policy for this URL Map's route. Available only for Global EXTERNAL_MANAGED + * load balancer schemes. Either Cloud CDN must be enabled on the backend service or backend + * bucket serving the route, or cache policy must be configured on the same route + * @return value or {@code null} for none + */ + public ImageOptimizationPolicy getImageOptimizationPolicy() { + return imageOptimizationPolicy; + } + + /** + * Image optimization policy for this URL Map's route. Available only for Global EXTERNAL_MANAGED + * load balancer schemes. Either Cloud CDN must be enabled on the backend service or backend + * bucket serving the route, or cache policy must be configured on the same route + * @param imageOptimizationPolicy imageOptimizationPolicy or {@code null} for none + */ + public HttpRouteAction setImageOptimizationPolicy(ImageOptimizationPolicy imageOptimizationPolicy) { + this.imageOptimizationPolicy = imageOptimizationPolicy; + return this; + } + /** * Specifies the maximum duration (timeout) for streams on the selected route. Unlike the timeout * field where the timeout duration starts from the time the request has been fully processed diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageOptimizationPolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageOptimizationPolicy.java new file mode 100644 index 00000000000..4f942439b3b --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageOptimizationPolicy.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The configuration for Cloud CDN's image optimization feature. This feature dynamically processes + * and delivers images from the network edge. Image Optimization is only available for Global + * External Application Load Balancers. Either Cloud CDN must be enabled on the backend service or + * backend bucket serving the route, or cache policy must be configured on the same route. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ImageOptimizationPolicy extends com.google.api.client.json.GenericJson { + + /** + * Specifies whether to interpret query parameters for image optimization. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String queryParameterInterpretation; + + /** + * Specifies whether to interpret query parameters for image optimization. + * @return value or {@code null} for none + */ + public java.lang.String getQueryParameterInterpretation() { + return queryParameterInterpretation; + } + + /** + * Specifies whether to interpret query parameters for image optimization. + * @param queryParameterInterpretation queryParameterInterpretation or {@code null} for none + */ + public ImageOptimizationPolicy setQueryParameterInterpretation(java.lang.String queryParameterInterpretation) { + this.queryParameterInterpretation = queryParameterInterpretation; + return this; + } + + @Override + public ImageOptimizationPolicy set(String fieldName, Object value) { + return (ImageOptimizationPolicy) super.set(fieldName, value); + } + + @Override + public ImageOptimizationPolicy clone() { + return (ImageOptimizationPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerActionsSummary.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerActionsSummary.java index 8982b049819..0e90813c56b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerActionsSummary.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerActionsSummary.java @@ -110,6 +110,14 @@ public final class InstanceGroupManagerActionsSummary extends com.google.api.cli @com.google.api.client.util.Key private java.lang.Integer restarting; + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * restarted or are currently being restarted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer restartingInPlace; + /** * Output only. The number of instances in the managed instance group that are scheduled to be * resumed or are currently being resumed. @@ -339,6 +347,25 @@ public InstanceGroupManagerActionsSummary setRestarting(java.lang.Integer restar return this; } + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * restarted or are currently being restarted. + * @return value or {@code null} for none + */ + public java.lang.Integer getRestartingInPlace() { + return restartingInPlace; + } + + /** + * Output only. The number of instances in the managed instance group that are scheduled to be + * restarted or are currently being restarted. + * @param restartingInPlace restartingInPlace or {@code null} for none + */ + public InstanceGroupManagerActionsSummary setRestartingInPlace(java.lang.Integer restartingInPlace) { + this.restartingInPlace = restartingInPlace; + return this; + } + /** * Output only. The number of instances in the managed instance group that are scheduled to be * resumed or are currently being resumed. diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerUpdatePolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerUpdatePolicy.java index 6c6818e78ac..20934e576c7 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerUpdatePolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerUpdatePolicy.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class InstanceGroupManagerUpdatePolicy extends com.google.api.client.json.GenericJson { + /** + * Actions that are allowed to update instances within MIG. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedActions; + /** * The instance redistribution policy for regional managed instance groups. Valid values are: * - PROACTIVE (default): The group attempts to maintain an even distribution of VM instances @@ -124,6 +131,23 @@ public final class InstanceGroupManagerUpdatePolicy extends com.google.api.clien @com.google.api.client.util.Key private java.lang.String type; + /** + * Actions that are allowed to update instances within MIG. + * @return value or {@code null} for none + */ + public java.util.List getAllowedActions() { + return allowedActions; + } + + /** + * Actions that are allowed to update instances within MIG. + * @param allowedActions allowedActions or {@code null} for none + */ + public InstanceGroupManagerUpdatePolicy setAllowedActions(java.util.List allowedActions) { + this.allowedActions = allowedActions; + return this; + } + /** * The instance redistribution policy for regional managed instance groups. Valid values are: * - PROACTIVE (default): The group attempts to maintain an even distribution of VM instances diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersApplyUpdatesRequest.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersApplyUpdatesRequest.java index 1595a24f7c7..d082d329b59 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersApplyUpdatesRequest.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagersApplyUpdatesRequest.java @@ -37,6 +37,13 @@ public final class InstanceGroupManagersApplyUpdatesRequest extends com.google.a @com.google.api.client.util.Key private java.lang.Boolean allInstances; + /** + * Actions that are allowed to update instances within MIG. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedActions; + /** * The list of URLs of one or more instances for which you want to apply updates. Each URL can be * a full URL or a partial URL, such aszones/[ZONE]/instances/[INSTANCE_NAME]. @@ -90,6 +97,23 @@ public InstanceGroupManagersApplyUpdatesRequest setAllInstances(java.lang.Boolea return this; } + /** + * Actions that are allowed to update instances within MIG. + * @return value or {@code null} for none + */ + public java.util.List getAllowedActions() { + return allowedActions; + } + + /** + * Actions that are allowed to update instances within MIG. + * @param allowedActions allowedActions or {@code null} for none + */ + public InstanceGroupManagersApplyUpdatesRequest setAllowedActions(java.util.List allowedActions) { + this.allowedActions = allowedActions; + return this; + } + /** * The list of URLs of one or more instances for which you want to apply updates. Each URL can be * a full URL or a partial URL, such aszones/[ZONE]/instances/[INSTANCE_NAME]. diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java index 7d14a73c218..90c04f253ca 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmError.java @@ -30,30 +30,29 @@ public final class InstanceManagedByIgmError extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Contents of the error. + * Output only. Contents of the error. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceManagedByIgmErrorManagedInstanceError error; /** - * Output only. [Output Only] Details of the instance action that triggered this error. May be - * null, if the error was not caused by an action on an instance. This field is optional. + * Output only. Details of the instance action that triggered this error. May be null, if the + * error was not caused by an action on an instance. This field is optional. * The value may be {@code null}. */ @com.google.api.client.util.Key private InstanceManagedByIgmErrorInstanceActionDetails instanceActionDetails; /** - * Output only. [Output Only] The time that this error occurred. This value is in RFC3339 text - * format. + * Output only. The time that this error occurred. This value is in RFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String timestamp; /** - * Output only. [Output Only] Contents of the error. + * Output only. Contents of the error. * @return value or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError getError() { @@ -61,7 +60,7 @@ public InstanceManagedByIgmErrorManagedInstanceError getError() { } /** - * Output only. [Output Only] Contents of the error. + * Output only. Contents of the error. * @param error error or {@code null} for none */ public InstanceManagedByIgmError setError(InstanceManagedByIgmErrorManagedInstanceError error) { @@ -70,8 +69,8 @@ public InstanceManagedByIgmError setError(InstanceManagedByIgmErrorManagedInstan } /** - * Output only. [Output Only] Details of the instance action that triggered this error. May be - * null, if the error was not caused by an action on an instance. This field is optional. + * Output only. Details of the instance action that triggered this error. May be null, if the + * error was not caused by an action on an instance. This field is optional. * @return value or {@code null} for none */ public InstanceManagedByIgmErrorInstanceActionDetails getInstanceActionDetails() { @@ -79,8 +78,8 @@ public InstanceManagedByIgmErrorInstanceActionDetails getInstanceActionDetails() } /** - * Output only. [Output Only] Details of the instance action that triggered this error. May be - * null, if the error was not caused by an action on an instance. This field is optional. + * Output only. Details of the instance action that triggered this error. May be null, if the + * error was not caused by an action on an instance. This field is optional. * @param instanceActionDetails instanceActionDetails or {@code null} for none */ public InstanceManagedByIgmError setInstanceActionDetails(InstanceManagedByIgmErrorInstanceActionDetails instanceActionDetails) { @@ -89,8 +88,7 @@ public InstanceManagedByIgmError setInstanceActionDetails(InstanceManagedByIgmEr } /** - * Output only. [Output Only] The time that this error occurred. This value is in RFC3339 text - * format. + * Output only. The time that this error occurred. This value is in RFC3339 text format. * @return value or {@code null} for none */ public java.lang.String getTimestamp() { @@ -98,8 +96,7 @@ public java.lang.String getTimestamp() { } /** - * Output only. [Output Only] The time that this error occurred. This value is in RFC3339 text - * format. + * Output only. The time that this error occurred. This value is in RFC3339 text format. * @param timestamp timestamp or {@code null} for none */ public InstanceManagedByIgmError setTimestamp(java.lang.String timestamp) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java index f92d0a732ed..b699c99ec32 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorInstanceActionDetails.java @@ -30,33 +30,33 @@ public final class InstanceManagedByIgmErrorInstanceActionDetails extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Action that managed instance group was executing on the instance - * when the error occurred. Possible values: + * Output only. Action that managed instance group was executing on the instance when the error + * occurred. Possible values: * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String action; /** - * Output only. [Output Only] The URL of the instance. The URL can be set even if the instance has - * not yet been created. + * Output only. The URL of the instance. The URL can be set even if the instance has not yet been + * created. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String instance; /** - * Output only. [Output Only] Version this instance was created from, or was being created from, - * but the creation failed. Corresponds to one of the versions that were set on the Instance Group - * Manager resource at the time this instance was being created. + * Output only. Version this instance was created from, or was being created from, but the + * creation failed. Corresponds to one of the versions that were set on the Instance Group Manager + * resource at the time this instance was being created. * The value may be {@code null}. */ @com.google.api.client.util.Key private ManagedInstanceVersion version; /** - * Output only. [Output Only] Action that managed instance group was executing on the instance - * when the error occurred. Possible values: + * Output only. Action that managed instance group was executing on the instance when the error + * occurred. Possible values: * @return value or {@code null} for none */ public java.lang.String getAction() { @@ -64,8 +64,8 @@ public java.lang.String getAction() { } /** - * Output only. [Output Only] Action that managed instance group was executing on the instance - * when the error occurred. Possible values: + * Output only. Action that managed instance group was executing on the instance when the error + * occurred. Possible values: * @param action action or {@code null} for none */ public InstanceManagedByIgmErrorInstanceActionDetails setAction(java.lang.String action) { @@ -74,8 +74,8 @@ public InstanceManagedByIgmErrorInstanceActionDetails setAction(java.lang.String } /** - * Output only. [Output Only] The URL of the instance. The URL can be set even if the instance has - * not yet been created. + * Output only. The URL of the instance. The URL can be set even if the instance has not yet been + * created. * @return value or {@code null} for none */ public java.lang.String getInstance() { @@ -83,8 +83,8 @@ public java.lang.String getInstance() { } /** - * Output only. [Output Only] The URL of the instance. The URL can be set even if the instance has - * not yet been created. + * Output only. The URL of the instance. The URL can be set even if the instance has not yet been + * created. * @param instance instance or {@code null} for none */ public InstanceManagedByIgmErrorInstanceActionDetails setInstance(java.lang.String instance) { @@ -93,9 +93,9 @@ public InstanceManagedByIgmErrorInstanceActionDetails setInstance(java.lang.Stri } /** - * Output only. [Output Only] Version this instance was created from, or was being created from, - * but the creation failed. Corresponds to one of the versions that were set on the Instance Group - * Manager resource at the time this instance was being created. + * Output only. Version this instance was created from, or was being created from, but the + * creation failed. Corresponds to one of the versions that were set on the Instance Group Manager + * resource at the time this instance was being created. * @return value or {@code null} for none */ public ManagedInstanceVersion getVersion() { @@ -103,9 +103,9 @@ public ManagedInstanceVersion getVersion() { } /** - * Output only. [Output Only] Version this instance was created from, or was being created from, - * but the creation failed. Corresponds to one of the versions that were set on the Instance Group - * Manager resource at the time this instance was being created. + * Output only. Version this instance was created from, or was being created from, but the + * creation failed. Corresponds to one of the versions that were set on the Instance Group Manager + * resource at the time this instance was being created. * @param version version or {@code null} for none */ public InstanceManagedByIgmErrorInstanceActionDetails setVersion(ManagedInstanceVersion version) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java index 3006dd39ef3..6202587499a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceManagedByIgmErrorManagedInstanceError.java @@ -30,21 +30,21 @@ public final class InstanceManagedByIgmErrorManagedInstanceError extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] Error code. + * Output only. Error code. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String code; /** - * Output only. [Output Only] Error message. + * Output only. Error message. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String message; /** - * Output only. [Output Only] Error code. + * Output only. Error code. * @return value or {@code null} for none */ public java.lang.String getCode() { @@ -52,7 +52,7 @@ public java.lang.String getCode() { } /** - * Output only. [Output Only] Error code. + * Output only. Error code. * @param code code or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError setCode(java.lang.String code) { @@ -61,7 +61,7 @@ public InstanceManagedByIgmErrorManagedInstanceError setCode(java.lang.String co } /** - * Output only. [Output Only] Error message. + * Output only. Error message. * @return value or {@code null} for none */ public java.lang.String getMessage() { @@ -69,7 +69,7 @@ public java.lang.String getMessage() { } /** - * Output only. [Output Only] Error message. + * Output only. Error message. * @param message message or {@code null} for none */ public InstanceManagedByIgmErrorManagedInstanceError setMessage(java.lang.String message) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OrganizationRolloutsListResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OrganizationRolloutsListResponse.java new file mode 100644 index 00000000000..810cc2484b8 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/OrganizationRolloutsListResponse.java @@ -0,0 +1,401 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for OrganizationRolloutsListResponse. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OrganizationRolloutsListResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * A list of Rollout resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + + /** + * [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public OrganizationRolloutsListResponse setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public OrganizationRolloutsListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of Rollout resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of Rollout resources. + * @param items items or {@code null} for none + */ + public OrganizationRolloutsListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public OrganizationRolloutsListResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public OrganizationRolloutsListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public OrganizationRolloutsListResponse setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public OrganizationRolloutsListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public OrganizationRolloutsListResponse set(String fieldName, Object value) { + return (OrganizationRolloutsListResponse) super.set(fieldName, value); + } + + @Override + public OrganizationRolloutsListResponse clone() { + return (OrganizationRolloutsListResponse) super.clone(); + } + + /** + * [Output Only] Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for OrganizationRolloutsListResponseWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PeriodicPartialMaintenanceSchedule.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PeriodicPartialMaintenanceSchedule.java new file mode 100644 index 00000000000..907653b9c79 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/PeriodicPartialMaintenanceSchedule.java @@ -0,0 +1,163 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The periodic partial maintenance schedule includes 52 weeks worth of maintenance windows. + * LINT.IfChange(PeriodicPartialMaintenanceSchedule) + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PeriodicPartialMaintenanceSchedule extends com.google.api.client.json.GenericJson { + + /** + * The maintenance type in which the zone is during the given window. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subType; + + /** + * The target resource that the maintenance window is for. For example, "projects/my- + * project/zones/us-central1-a". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetResource; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * The end civil timestamp of the window (not inclusive). This contains a time zone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DateTime windowEndTime; + + /** + * The start civil timestamp of the window. This contains a time zone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DateTime windowStartTime; + + /** + * The maintenance type in which the zone is during the given window. + * @return value or {@code null} for none + */ + public java.lang.String getSubType() { + return subType; + } + + /** + * The maintenance type in which the zone is during the given window. + * @param subType subType or {@code null} for none + */ + public PeriodicPartialMaintenanceSchedule setSubType(java.lang.String subType) { + this.subType = subType; + return this; + } + + /** + * The target resource that the maintenance window is for. For example, "projects/my- + * project/zones/us-central1-a". + * @return value or {@code null} for none + */ + public java.lang.String getTargetResource() { + return targetResource; + } + + /** + * The target resource that the maintenance window is for. For example, "projects/my- + * project/zones/us-central1-a". + * @param targetResource targetResource or {@code null} for none + */ + public PeriodicPartialMaintenanceSchedule setTargetResource(java.lang.String targetResource) { + this.targetResource = targetResource; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * @param type type or {@code null} for none + */ + public PeriodicPartialMaintenanceSchedule setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * The end civil timestamp of the window (not inclusive). This contains a time zone. + * @return value or {@code null} for none + */ + public DateTime getWindowEndTime() { + return windowEndTime; + } + + /** + * The end civil timestamp of the window (not inclusive). This contains a time zone. + * @param windowEndTime windowEndTime or {@code null} for none + */ + public PeriodicPartialMaintenanceSchedule setWindowEndTime(DateTime windowEndTime) { + this.windowEndTime = windowEndTime; + return this; + } + + /** + * The start civil timestamp of the window. This contains a time zone. + * @return value or {@code null} for none + */ + public DateTime getWindowStartTime() { + return windowStartTime; + } + + /** + * The start civil timestamp of the window. This contains a time zone. + * @param windowStartTime windowStartTime or {@code null} for none + */ + public PeriodicPartialMaintenanceSchedule setWindowStartTime(DateTime windowStartTime) { + this.windowStartTime = windowStartTime; + return this; + } + + @Override + public PeriodicPartialMaintenanceSchedule set(String fieldName, Object value) { + return (PeriodicPartialMaintenanceSchedule) super.set(fieldName, value); + } + + @Override + public PeriodicPartialMaintenanceSchedule clone() { + return (PeriodicPartialMaintenanceSchedule) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersApplyUpdatesRequest.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersApplyUpdatesRequest.java index 19d7fe8aa00..23d30f6eb94 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersApplyUpdatesRequest.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RegionInstanceGroupManagersApplyUpdatesRequest.java @@ -37,6 +37,13 @@ public final class RegionInstanceGroupManagersApplyUpdatesRequest extends com.go @com.google.api.client.util.Key private java.lang.Boolean allInstances; + /** + * Actions that are allowed to update instances within MIG. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedActions; + /** * The list of URLs of one or more instances for which you want to apply updates. Each URL can be * a full URL or a partial URL, such aszones/[ZONE]/instances/[INSTANCE_NAME]. @@ -90,6 +97,23 @@ public RegionInstanceGroupManagersApplyUpdatesRequest setAllInstances(java.lang. return this; } + /** + * Actions that are allowed to update instances within MIG. + * @return value or {@code null} for none + */ + public java.util.List getAllowedActions() { + return allowedActions; + } + + /** + * Actions that are allowed to update instances within MIG. + * @param allowedActions allowedActions or {@code null} for none + */ + public RegionInstanceGroupManagersApplyUpdatesRequest setAllowedActions(java.util.List allowedActions) { + this.allowedActions = allowedActions; + return this; + } + /** * The list of URLs of one or more instances for which you want to apply updates. Each URL can be * a full URL or a partial URL, such aszones/[ZONE]/instances/[INSTANCE_NAME]. diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopology.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopology.java index 7c9c162c17b..d8b7c4199c9 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopology.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopology.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class ResourceStatusPhysicalHostTopology extends com.google.api.client.json.GenericJson { + /** + * Output only. [Output Only] Additional location information of the running instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourceStatusPhysicalHostTopologyAdditionalAttributes additionalAttributes; + /** * [Output Only] The ID of the block in which the running instance is located. Instances within * the same block experience low network latency. @@ -61,6 +68,23 @@ public final class ResourceStatusPhysicalHostTopology extends com.google.api.cli @com.google.api.client.util.Key private java.lang.String subblock; + /** + * Output only. [Output Only] Additional location information of the running instance. + * @return value or {@code null} for none + */ + public ResourceStatusPhysicalHostTopologyAdditionalAttributes getAdditionalAttributes() { + return additionalAttributes; + } + + /** + * Output only. [Output Only] Additional location information of the running instance. + * @param additionalAttributes additionalAttributes or {@code null} for none + */ + public ResourceStatusPhysicalHostTopology setAdditionalAttributes(ResourceStatusPhysicalHostTopologyAdditionalAttributes additionalAttributes) { + this.additionalAttributes = additionalAttributes; + return this; + } + /** * [Output Only] The ID of the block in which the running instance is located. Instances within * the same block experience low network latency. diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopologyAdditionalAttributes.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopologyAdditionalAttributes.java new file mode 100644 index 00000000000..29b35d78c50 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopologyAdditionalAttributes.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Additional location information of the running instance. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ResourceStatusPhysicalHostTopologyAdditionalAttributes extends com.google.api.client.json.GenericJson { + + /** + * Output only. The IDs of the accelerator topologies the instance belongs to. For example The key + * will be topologies like "4x4", "2x2x2" and the value will be the location ID of the topologies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map acceleratorTopologyIds; + + /** + * Output only. The IDs of the accelerator topologies the instance belongs to. For example The key + * will be topologies like "4x4", "2x2x2" and the value will be the location ID of the topologies. + * @return value or {@code null} for none + */ + public java.util.Map getAcceleratorTopologyIds() { + return acceleratorTopologyIds; + } + + /** + * Output only. The IDs of the accelerator topologies the instance belongs to. For example The key + * will be topologies like "4x4", "2x2x2" and the value will be the location ID of the topologies. + * @param acceleratorTopologyIds acceleratorTopologyIds or {@code null} for none + */ + public ResourceStatusPhysicalHostTopologyAdditionalAttributes setAcceleratorTopologyIds(java.util.Map acceleratorTopologyIds) { + this.acceleratorTopologyIds = acceleratorTopologyIds; + return this; + } + + @Override + public ResourceStatusPhysicalHostTopologyAdditionalAttributes set(String fieldName, Object value) { + return (ResourceStatusPhysicalHostTopologyAdditionalAttributes) super.set(fieldName, value); + } + + @Override + public ResourceStatusPhysicalHostTopologyAdditionalAttributes clone() { + return (ResourceStatusPhysicalHostTopologyAdditionalAttributes) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java index 7753f710612..729022df29f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java @@ -37,6 +37,22 @@ public final class ResourceStatusReservationConsumptionInfo extends com.google.a @com.google.api.client.util.Key private java.lang.String consumedReservation; + /** + * Output only. [Output Only] The full resource name of the reservation block that this instance + * is consuming from. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String consumedReservationBlock; + + /** + * Output only. [Output Only] The full resource name of the reservation sub-block that this + * instance is consuming from. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String consumedReservationSubBlock; + /** * Output only. [Output Only] The full resource name of the reservation that this instance is * consuming from. @@ -56,6 +72,44 @@ public ResourceStatusReservationConsumptionInfo setConsumedReservation(java.lang return this; } + /** + * Output only. [Output Only] The full resource name of the reservation block that this instance + * is consuming from. + * @return value or {@code null} for none + */ + public java.lang.String getConsumedReservationBlock() { + return consumedReservationBlock; + } + + /** + * Output only. [Output Only] The full resource name of the reservation block that this instance + * is consuming from. + * @param consumedReservationBlock consumedReservationBlock or {@code null} for none + */ + public ResourceStatusReservationConsumptionInfo setConsumedReservationBlock(java.lang.String consumedReservationBlock) { + this.consumedReservationBlock = consumedReservationBlock; + return this; + } + + /** + * Output only. [Output Only] The full resource name of the reservation sub-block that this + * instance is consuming from. + * @return value or {@code null} for none + */ + public java.lang.String getConsumedReservationSubBlock() { + return consumedReservationSubBlock; + } + + /** + * Output only. [Output Only] The full resource name of the reservation sub-block that this + * instance is consuming from. + * @param consumedReservationSubBlock consumedReservationSubBlock or {@code null} for none + */ + public ResourceStatusReservationConsumptionInfo setConsumedReservationSubBlock(java.lang.String consumedReservationSubBlock) { + this.consumedReservationSubBlock = consumedReservationSubBlock; + return this; + } + @Override public ResourceStatusReservationConsumptionInfo set(String fieldName, Object value) { return (ResourceStatusReservationConsumptionInfo) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Rollout.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Rollout.java index 6f314a3a4c1..5475815f67a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Rollout.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Rollout.java @@ -100,6 +100,20 @@ public final class Rollout extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String name; + /** + * Output only. The timestamp at which the Rollout was paused. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pauseTime; + + /** + * Output only. The timestamp at which the Rollout was resumed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resumeTime; + /** * Required. The resource being rolled out. * The value may be {@code null}. @@ -306,6 +320,40 @@ public Rollout setName(java.lang.String name) { return this; } + /** + * Output only. The timestamp at which the Rollout was paused. + * @return value or {@code null} for none + */ + public java.lang.String getPauseTime() { + return pauseTime; + } + + /** + * Output only. The timestamp at which the Rollout was paused. + * @param pauseTime pauseTime or {@code null} for none + */ + public Rollout setPauseTime(java.lang.String pauseTime) { + this.pauseTime = pauseTime; + return this; + } + + /** + * Output only. The timestamp at which the Rollout was resumed. + * @return value or {@code null} for none + */ + public java.lang.String getResumeTime() { + return resumeTime; + } + + /** + * Output only. The timestamp at which the Rollout was resumed. + * @param resumeTime resumeTime or {@code null} for none + */ + public Rollout setResumeTime(java.lang.String resumeTime) { + this.resumeTime = resumeTime; + return this; + } + /** * Required. The resource being rolled out. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterNat.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterNat.java index dcdeb0aed60..49bb7ee52c3 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterNat.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterNat.java @@ -48,6 +48,15 @@ public final class RouterNat extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.util.List drainNatIps; + /** + * Output only. Effective timeout (in seconds) for TCP connections that are in TIME_WAIT state. + * This value is equal to tcp_time_wait_timeout_sec if it is set, otherwise it is equal to 120s. + * The field is output only. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer effectiveTcpTimeWaitTimeoutSec; + /** * Enable Dynamic Port Allocation. * @@ -269,6 +278,27 @@ public RouterNat setDrainNatIps(java.util.List drainNatIps) { return this; } + /** + * Output only. Effective timeout (in seconds) for TCP connections that are in TIME_WAIT state. + * This value is equal to tcp_time_wait_timeout_sec if it is set, otherwise it is equal to 120s. + * The field is output only. + * @return value or {@code null} for none + */ + public java.lang.Integer getEffectiveTcpTimeWaitTimeoutSec() { + return effectiveTcpTimeWaitTimeoutSec; + } + + /** + * Output only. Effective timeout (in seconds) for TCP connections that are in TIME_WAIT state. + * This value is equal to tcp_time_wait_timeout_sec if it is set, otherwise it is equal to 120s. + * The field is output only. + * @param effectiveTcpTimeWaitTimeoutSec effectiveTcpTimeWaitTimeoutSec or {@code null} for none + */ + public RouterNat setEffectiveTcpTimeWaitTimeoutSec(java.lang.Integer effectiveTcpTimeWaitTimeoutSec) { + this.effectiveTcpTimeWaitTimeoutSec = effectiveTcpTimeWaitTimeoutSec; + return this; + } + /** * Enable Dynamic Port Allocation. * diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TimeZone.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TimeZone.java new file mode 100644 index 00000000000..8cbf258d49b --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/TimeZone.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TimeZone extends com.google.api.client.json.GenericJson { + + /** + * IANA Time Zone Database time zone. For example "America/New_York". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Optional. IANA Time Zone Database version number. For example "2019a". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String version; + + /** + * IANA Time Zone Database time zone. For example "America/New_York". + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * IANA Time Zone Database time zone. For example "America/New_York". + * @param id id or {@code null} for none + */ + public TimeZone setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Optional. IANA Time Zone Database version number. For example "2019a". + * @return value or {@code null} for none + */ + public java.lang.String getVersion() { + return version; + } + + /** + * Optional. IANA Time Zone Database version number. For example "2019a". + * @param version version or {@code null} for none + */ + public TimeZone setVersion(java.lang.String version) { + this.version = version; + return this; + } + + @Override + public TimeZone set(String fieldName, Object value) { + return (TimeZone) super.set(fieldName, value); + } + + @Override + public TimeZone clone() { + return (TimeZone) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Zone.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Zone.java index 156d6c6381a..75ab725815c 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Zone.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Zone.java @@ -88,6 +88,12 @@ public final class Zone extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String region; + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ZoneResourceStatus resourceStatus; + /** * [Output Only] Server-defined URL for the resource. * The value may be {@code null}. @@ -245,6 +251,21 @@ public Zone setRegion(java.lang.String region) { return this; } + /** + * @return value or {@code null} for none + */ + public ZoneResourceStatus getResourceStatus() { + return resourceStatus; + } + + /** + * @param resourceStatus resourceStatus or {@code null} for none + */ + public Zone setResourceStatus(ZoneResourceStatus resourceStatus) { + this.resourceStatus = resourceStatus; + return this; + } + /** * [Output Only] Server-defined URL for the resource. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ZoneResourceStatus.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ZoneResourceStatus.java new file mode 100644 index 00000000000..fa29c63261b --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ZoneResourceStatus.java @@ -0,0 +1,72 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for ZoneResourceStatus. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ZoneResourceStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] The upcoming maintenance schedule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List upcomingMaintenances; + + static { + // hack to force ProGuard to consider PeriodicPartialMaintenanceSchedule used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(PeriodicPartialMaintenanceSchedule.class); + } + + /** + * Output only. [Output Only] The upcoming maintenance schedule. + * @return value or {@code null} for none + */ + public java.util.List getUpcomingMaintenances() { + return upcomingMaintenances; + } + + /** + * Output only. [Output Only] The upcoming maintenance schedule. + * @param upcomingMaintenances upcomingMaintenances or {@code null} for none + */ + public ZoneResourceStatus setUpcomingMaintenances(java.util.List upcomingMaintenances) { + this.upcomingMaintenances = upcomingMaintenances; + return this; + } + + @Override + public ZoneResourceStatus set(String fieldName, Object value) { + return (ZoneResourceStatus) super.set(fieldName, value); + } + + @Override + public ZoneResourceStatus clone() { + return (ZoneResourceStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/pom.xml b/clients/google-api-services-compute/beta/2.0.0/pom.xml index 0c9c9afddd0..e9294c10c7a 100644 --- a/clients/google-api-services-compute/beta/2.0.0/pom.xml +++ b/clients/google-api-services-compute/beta/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-compute - beta-rev20260501-2.0.0 - Compute Engine API beta-rev20260501-2.0.0 + beta-rev20260520-2.0.0 + Compute Engine API beta-rev20260520-2.0.0 jar 2011 diff --git a/clients/google-api-services-compute/beta/README.md b/clients/google-api-services-compute/beta/README.md index 2318d545cb6..d4dea6fe705 100644 --- a/clients/google-api-services-compute/beta/README.md +++ b/clients/google-api-services-compute/beta/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-compute - beta-rev20260501-2.0.0 + beta-rev20260520-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:beta-rev20260501-2.0.0' + implementation 'com.google.apis:google-api-services-compute:beta-rev20260520-2.0.0' } ```