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 5ef25cf0443..cca829aac70 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-rev20260520-2.0.0 + alpha-rev20260530-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:alpha-rev20260520-2.0.0' + implementation 'com.google.apis:google-api-services-compute:alpha-rev20260530-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 dfe92495c01..ed72adb4f2e 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,144 +30011,148 @@ public Update set(String parameterName, Object value) { } /** - * An accessor for creating requests from the FolderZoneVmExtensionPolicies collection. + * An accessor for creating requests from the FolderGlobalVmExtensionPolicies collection. * *

The typical use is:

*
    *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.FolderZoneVmExtensionPolicies.List request = compute.folderZoneVmExtensionPolicies().list(parameters ...)}
+   *   {@code Compute.FolderGlobalVmExtensionPolicies.List request = compute.folderGlobalVmExtensionPolicies().list(parameters ...)}
    * 
* * @return the resource collection */ - public FolderZoneVmExtensionPolicies folderZoneVmExtensionPolicies() { - return new FolderZoneVmExtensionPolicies(); + public FolderGlobalVmExtensionPolicies folderGlobalVmExtensionPolicies() { + return new FolderGlobalVmExtensionPolicies(); } /** - * The "folderZoneVmExtensionPolicies" collection of methods. + * The "folderGlobalVmExtensionPolicies" collection of methods. */ - public class FolderZoneVmExtensionPolicies { + public class FolderGlobalVmExtensionPolicies { /** - * Deletes a specified zone VM extension policy within a folder. + * Retrieves the list of all folder level VM Extension Policy resources available to the specified + * folder. * - * Create a request for the method "folderZoneVmExtensionPolicies.delete". + * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to `true`. + * + * Create a request for the method "folderGlobalVmExtensionPolicies.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 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 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); + public AggregatedList aggregatedList(java.lang.String folder) throws java.io.IOException { + AggregatedList result = new AggregatedList(folder); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "{+folder}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}"; + private static final String REST_PATH = "{+folder}/aggregated/vmExtensionPolicies"; 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])?"); - /** - * Deletes a specified zone VM extension policy within a folder. + * Retrieves the list of all folder level VM Extension Policy resources available to the specified + * folder. * - * Create a request for the method "folderZoneVmExtensionPolicies.delete". + * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "folderGlobalVmExtensionPolicies.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 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 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); + protected AggregatedList(java.lang.String folder) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FolderVmExtensionPolicyAggregatedListResponse.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.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); + 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); } /** Folder ID for this request. */ @@ -30162,7 +30166,7 @@ public java.lang.String getFolder() { } /** Folder ID for this request. */ - public Delete setFolder(java.lang.String folder) { + public AggregatedList 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 " + @@ -30172,190 +30176,625 @@ public Delete setFolder(java.lang.String folder) { return this; } - /** 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; - /** 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; } - /** Name of the zone for this request. */ - public Delete setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.zone = zone; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; return this; } - /** Name of the zone VM extension policy to delete. */ + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ @com.google.api.client.util.Key - private java.lang.String vmExtensionPolicy; + private java.lang.Boolean includeAllScopes; - /** Name of the zone VM extension policy to delete. + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. */ - public java.lang.String getVmExtensionPolicy() { - return vmExtensionPolicy; + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; } - /** Name of the zone VM extension policy to delete. */ - public Delete setVmExtensionPolicy(java.lang.String vmExtensionPolicy) { - this.vmExtensionPolicy = vmExtensionPolicy; + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; return this; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public AggregatedList setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ @com.google.api.client.util.Key - private java.lang.String requestId; + private java.lang.String orderBy; - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getOrderBy() { + return orderBy; } /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public AggregatedList setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); } } /** - * Retrieves details of a specific zone VM extension policy within a folder. + * Purge scoped resources (zonal policies) from a folder level 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 "folderZoneVmExtensionPolicies.get". + * Create a request for the method "folderGlobalVmExtensionPolicies.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 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. + * @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 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); + public Delete delete(java.lang.String folder, java.lang.String globalVmExtensionPolicy, com.google.api.services.compute.model.GlobalVmExtensionPolicyRolloutOperationRolloutInput content) throws java.io.IOException { + Delete result = new Delete(folder, globalVmExtensionPolicy, content); initialize(result); return result; } - public class Get extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "{+folder}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}"; + private static final String REST_PATH = "{+folder}/global/vmExtensionPolicies/{globalVmExtensionPolicy}/delete"; 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])?"); - - 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}"); - /** - * Retrieves details of a specific zone VM extension policy within a folder. + * Purge scoped resources (zonal policies) from a folder level 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 "folderZoneVmExtensionPolicies.get". + * Create a request for the method "folderGlobalVmExtensionPolicies.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 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. + * @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 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); + protected Delete(java.lang.String folder, 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.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.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}"); - } + this.globalVmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(globalVmExtensionPolicy, "Required parameter globalVmExtensionPolicy 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 Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + 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); + } + + /** Folder ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String folder; + + /** Folder ID for this request. + */ + public java.lang.String getFolder() { + return folder; + } + + /** Folder ID for this request. */ + public Delete 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; + } + + /** 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). + */ + @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 folder level GlobalVmExtensionPolicy. + * + * Create a request for the method "folderGlobalVmExtensionPolicies.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 folder Folder ID for this request. + * @param globalVmExtensionPolicy Name of the GlobalVmExtensionPolicy resource to return. + * @return the request + */ + public Get get(java.lang.String folder, java.lang.String globalVmExtensionPolicy) throws java.io.IOException { + Get result = new Get(folder, globalVmExtensionPolicy); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "{+folder}/global/vmExtensionPolicies/{globalVmExtensionPolicy}"; + + private final java.util.regex.Pattern FOLDER_PATTERN = + java.util.regex.Pattern.compile("folders/[0-9]{0,20}"); + + 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}"); + + /** + * Gets details of a folder level GlobalVmExtensionPolicy. + * + * Create a request for the method "folderGlobalVmExtensionPolicies.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 folder Folder ID for this request. + * @param globalVmExtensionPolicy Name of the GlobalVmExtensionPolicy resource to return. + * @since 1.13 + */ + protected Get(java.lang.String folder, java.lang.String globalVmExtensionPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalVmExtensionPolicy.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.globalVmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(globalVmExtensionPolicy, "Required parameter globalVmExtensionPolicy 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 " + + "[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) { @@ -30423,45 +30862,24 @@ public Get setFolder(java.lang.String folder) { 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; - } - - /** Name of the VM extension policy resource to return. */ + /** Name of the GlobalVmExtensionPolicy resource to return. */ @com.google.api.client.util.Key - private java.lang.String vmExtensionPolicy; + private java.lang.String globalVmExtensionPolicy; - /** Name of the VM extension policy resource to return. + /** Name of the GlobalVmExtensionPolicy resource to return. */ - public java.lang.String getVmExtensionPolicy() { - return vmExtensionPolicy; + public java.lang.String getGlobalVmExtensionPolicy() { + return globalVmExtensionPolicy; } - /** Name of the VM extension policy resource to return. */ - public Get setVmExtensionPolicy(java.lang.String vmExtensionPolicy) { + /** Name of the GlobalVmExtensionPolicy resource to return. */ + public Get setGlobalVmExtensionPolicy(java.lang.String globalVmExtensionPolicy) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(VM_EXTENSION_POLICY_PATTERN.matcher(vmExtensionPolicy).matches(), - "Parameter vmExtensionPolicy must conform to the pattern " + + 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.vmExtensionPolicy = vmExtensionPolicy; + this.globalVmExtensionPolicy = globalVmExtensionPolicy; return this; } @@ -30471,41 +30889,34 @@ public Get set(String parameterName, Object value) { } } /** - * Retrieves details of a specific VM extension within a folder. + * Retrieves details of a specific VM extension. * - * Create a request for the method "folderZoneVmExtensionPolicies.getVmExtension". + * Create a request for the method "folderGlobalVmExtensionPolicies.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 folder Folder ID for this request. - * @param zone Name of the zone for this request. * @param extensionName * @return the request */ - 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); + public GetVmExtension getVmExtension(java.lang.String folder, java.lang.String extensionName) throws java.io.IOException { + GetVmExtension result = new GetVmExtension(folder, extensionName); initialize(result); return result; } - public class GetVmExtension extends ComputeRequest { + public class GetVmExtension extends ComputeRequest { - private static final String REST_PATH = "{+folder}/zones/{zone}/vmExtensions/{extensionName}"; + private static final String REST_PATH = "{+folder}/global/vmExtensions/{extensionName}"; 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])?"); - - private final java.util.regex.Pattern EXTENSION_NAME_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Retrieves details of a specific VM extension within a folder. + * Retrieves details of a specific VM extension. * - * Create a request for the method "folderZoneVmExtensionPolicies.getVmExtension". + * Create a request for the method "folderGlobalVmExtensionPolicies.getVmExtension". * * 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. @@ -30514,30 +30925,18 @@ public class GetVmExtension extends ComputeRequest * * @param folder Folder ID for this request. - * @param zone Name of the zone for this request. * @param extensionName * @since 1.13 */ - 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); + protected GetVmExtension(java.lang.String folder, java.lang.String extensionName) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalVmExtension.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.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 @@ -30631,27 +31030,6 @@ public GetVmExtension setFolder(java.lang.String folder) { 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 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; - } - @com.google.api.client.util.Key private java.lang.String extensionName; @@ -30663,11 +31041,6 @@ public java.lang.String getExtensionName() { } 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; } @@ -30678,38 +31051,34 @@ public GetVmExtension set(String parameterName, Object value) { } } /** - * Creates a new zone-level VM extension policy within a folder. + * Creates a new folder level GlobalVmExtensionPolicy. * - * Create a request for the method "folderZoneVmExtensionPolicies.insert". + * Create a request for the method "folderGlobalVmExtensionPolicies.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 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} + * @param content the {@link com.google.api.services.compute.model.GlobalVmExtensionPolicy} * @return the request */ - 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); + public Insert insert(java.lang.String folder, com.google.api.services.compute.model.GlobalVmExtensionPolicy content) throws java.io.IOException { + Insert result = new Insert(folder, content); initialize(result); return result; } public class Insert extends ComputeRequest { - private static final String REST_PATH = "{+folder}/zones/{zone}/vmExtensionPolicies"; + private static final String REST_PATH = "{+folder}/global/vmExtensionPolicies"; 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])?"); - /** - * Creates a new zone-level VM extension policy within a folder. + * Creates a new folder level GlobalVmExtensionPolicy. * - * Create a request for the method "folderZoneVmExtensionPolicies.insert". + * Create a request for the method "folderGlobalVmExtensionPolicies.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 @@ -30717,11 +31086,10 @@ public class Insert extends ComputeRequest * * @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} + * @param content the {@link com.google.api.services.compute.model.GlobalVmExtensionPolicy} * @since 1.13 */ - protected Insert(java.lang.String folder, java.lang.String zone, com.google.api.services.compute.model.VmExtensionPolicy content) { + protected Insert(java.lang.String folder, com.google.api.services.compute.model.GlobalVmExtensionPolicy content) { super(Compute.this, "POST", 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()) { @@ -30729,12 +31097,6 @@ protected Insert(java.lang.String folder, java.lang.String zone, com.google.api. "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])?"); - } } @Override @@ -30818,27 +31180,6 @@ public Insert setFolder(java.lang.String folder) { return this; } - /** Name of the zone for this request. */ - @com.google.api.client.util.Key - private java.lang.String zone; - - /** Name of the zone for this request. - */ - public java.lang.String getZone() { - return zone; - } - - /** Name of the zone for this request. */ - public Insert setZone(java.lang.String zone) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), - "Parameter zone must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - } - this.zone = zone; - return this; - } - /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -30894,37 +31235,33 @@ public Insert set(String parameterName, Object value) { } } /** - * Lists all VM extension policies within a specific zone for a folder. + * Lists folder level GlobalVmExtensionPolicies. * - * Create a request for the method "folderZoneVmExtensionPolicies.list". + * Create a request for the method "folderGlobalVmExtensionPolicies.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 zone Name of the zone for this request. * @return the request */ - public List list(java.lang.String folder, java.lang.String zone) throws java.io.IOException { - List result = new List(folder, zone); + public List list(java.lang.String folder) throws java.io.IOException { + List result = new List(folder); initialize(result); return result; } - public class List extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "{+folder}/zones/{zone}/vmExtensionPolicies"; + private static final String REST_PATH = "{+folder}/global/vmExtensionPolicies"; 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])?"); - /** - * Lists all VM extension policies within a specific zone for a folder. + * Lists folder level GlobalVmExtensionPolicies. * - * Create a request for the method "folderZoneVmExtensionPolicies.list". + * Create a request for the method "folderGlobalVmExtensionPolicies.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 @@ -30932,23 +31269,16 @@ public class List extends ComputeRequest * * @param folder Folder ID for this request. - * @param zone Name of the zone for this request. * @since 1.13 */ - 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); + protected List(java.lang.String folder) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalVmExtensionPolicyList.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.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 @@ -31042,27 +31372,6 @@ public List setFolder(java.lang.String folder) { 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 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 @@ -31333,37 +31642,33 @@ public List set(String parameterName, Object value) { } } /** - * Lists all VM extensions within a specific zone for a folder. This is a read-only API. + * Lists all VM extensions within a folder. This is a read-only API. * - * Create a request for the method "folderZoneVmExtensionPolicies.listVmExtensions". + * Create a request for the method "folderGlobalVmExtensionPolicies.listVmExtensions". * * 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. * - * @param folder Folder ID for this request. - * @param zone Name of the zone for this request. + * @param folder Required. Folder ID for this request. * @return the request */ - public ListVmExtensions listVmExtensions(java.lang.String folder, java.lang.String zone) throws java.io.IOException { - ListVmExtensions result = new ListVmExtensions(folder, zone); + public ListVmExtensions listVmExtensions(java.lang.String folder) throws java.io.IOException { + ListVmExtensions result = new ListVmExtensions(folder); initialize(result); return result; } - public class ListVmExtensions extends ComputeRequest { + public class ListVmExtensions extends ComputeRequest { - private static final String REST_PATH = "{+folder}/zones/{zone}/vmExtensions"; + private static final String REST_PATH = "{+folder}/global/vmExtensions"; 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])?"); - /** - * Lists all VM extensions within a specific zone for a folder. This is a read-only API. + * Lists all VM extensions within a folder. This is a read-only API. * - * Create a request for the method "folderZoneVmExtensionPolicies.listVmExtensions". + * Create a request for the method "folderGlobalVmExtensionPolicies.listVmExtensions". * * 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. @@ -31371,24 +31676,17 @@ public class ListVmExtensions extends ComputeRequest * - * @param folder Folder ID for this request. - * @param zone Name of the zone for this request. + * @param folder Required. Folder ID for this request. * @since 1.13 */ - 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); + protected ListVmExtensions(java.lang.String folder) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalListVmExtensionsResponse.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.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 @@ -31461,17 +31759,17 @@ public ListVmExtensions setUserIp(java.lang.String userIp) { return (ListVmExtensions) super.setUserIp(userIp); } - /** Folder ID for this request. */ + /** Required. Folder ID for this request. */ @com.google.api.client.util.Key private java.lang.String folder; - /** Folder ID for this request. + /** Required. Folder ID for this request. */ public java.lang.String getFolder() { return folder; } - /** Folder ID for this request. */ + /** Required. Folder ID for this request. */ public ListVmExtensions setFolder(java.lang.String folder) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(FOLDER_PATTERN.matcher(folder).matches(), @@ -31482,27 +31780,6 @@ public ListVmExtensions setFolder(java.lang.String folder) { 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 @@ -31773,39 +32050,35 @@ public ListVmExtensions set(String parameterName, Object value) { } } /** - * Modifies an existing zone VM extension policy within a folder. + * Updates a folder level GlobalVmExtensionPolicy. * - * Create a request for the method "folderZoneVmExtensionPolicies.update". + * Create a request for the method "folderGlobalVmExtensionPolicies.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 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} + * @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 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); + public Update update(java.lang.String folder, java.lang.String globalVmExtensionPolicy, com.google.api.services.compute.model.GlobalVmExtensionPolicy content) throws java.io.IOException { + Update result = new Update(folder, globalVmExtensionPolicy, content); initialize(result); return result; } public class Update extends ComputeRequest { - private static final String REST_PATH = "{+folder}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}"; + private static final String REST_PATH = "{+folder}/global/vmExtensionPolicies/{globalVmExtensionPolicy}"; 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])?"); - /** - * Modifies an existing zone VM extension policy within a folder. + * Updates a folder level GlobalVmExtensionPolicy. * - * Create a request for the method "folderZoneVmExtensionPolicies.update". + * Create a request for the method "folderGlobalVmExtensionPolicies.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 @@ -31813,12 +32086,11 @@ public class Update extends ComputeRequest * * @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} + * @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 Update(java.lang.String folder, java.lang.String zone, java.lang.String vmExtensionPolicy, com.google.api.services.compute.model.VmExtensionPolicy content) { + protected Update(java.lang.String folder, 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.folder = com.google.api.client.util.Preconditions.checkNotNull(folder, "Required parameter folder must be specified."); if (!getSuppressPatternChecks()) { @@ -31826,13 +32098,7 @@ protected Update(java.lang.String folder, java.lang.String zone, java.lang.Strin "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."); + this.globalVmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(globalVmExtensionPolicy, "Required parameter globalVmExtensionPolicy must be specified."); } @Override @@ -31916,6 +32182,241 @@ public Update setFolder(java.lang.String folder) { 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 + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the FolderZoneVmExtensionPolicies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.FolderZoneVmExtensionPolicies.List request = compute.folderZoneVmExtensionPolicies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public FolderZoneVmExtensionPolicies folderZoneVmExtensionPolicies() { + return new FolderZoneVmExtensionPolicies(); + } + + /** + * The "folderZoneVmExtensionPolicies" collection of methods. + */ + public class FolderZoneVmExtensionPolicies { + + /** + * Deletes a specified zone VM extension policy within a folder. + * + * 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 Delete#execute()} method to invoke the remote operation. + * + * @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 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 Delete extends ComputeRequest { + + private static final String REST_PATH = "{+folder}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}"; + + 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])?"); + + /** + * Deletes a specified zone VM extension policy within a folder. + * + * 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 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 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 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(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 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); + } + + /** Folder ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String folder; + + /** Folder ID for this request. + */ + public java.lang.String getFolder() { + return folder; + } + + /** Folder ID for this request. */ + public Delete 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; + } + /** Name of the zone for this request. */ @com.google.api.client.util.Key private java.lang.String zone; @@ -31927,7 +32428,7 @@ public java.lang.String getZone() { } /** Name of the zone for this request. */ - public Update 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 " + @@ -31937,18 +32438,18 @@ public Update setZone(java.lang.String zone) { return this; } - /** Name of the zone VM extension policy to update. */ + /** 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 update. + /** Name of the zone VM extension policy to delete. */ public java.lang.String getVmExtensionPolicy() { return vmExtensionPolicy; } - /** Name of the zone VM extension policy to update. */ - public Update setVmExtensionPolicy(java.lang.String vmExtensionPolicy) { + /** Name of the zone VM extension policy to delete. */ + public Delete setVmExtensionPolicy(java.lang.String vmExtensionPolicy) { this.vmExtensionPolicy = vmExtensionPolicy; return this; } @@ -31997,90 +32498,82 @@ 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 Delete 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 Delete set(String parameterName, Object value) { + return (Delete) 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 { - /** - * Retrieves an aggregated list of forwarding rules. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. + * Retrieves details of a specific zone VM extension policy within a folder. * - * Create a request for the method "forwardingRules.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. + * @param 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 AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + 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 AggregatedList extends ComputeRequest { + public class Get 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])?"); + + 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}"); /** - * Retrieves an aggregated list of forwarding rules. - * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. + * Retrieves details of a specific zone VM extension policy within a folder. * - * Create a request for the method "forwardingRules.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. - *

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

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

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

* - * @param project Project ID for this request. + * @param 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 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 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.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}"); } } @@ -32095,601 +32588,499 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** 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 Get 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; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that support regular expressions and - * expressions that follow API improvement proposal AIP-160. These two types of filter - * expressions cannot be mixed in one request. - * - * If you want to use AIP-160, your expression must specify the field name, an operator, and - * the value that you want to use for filtering. The value must be a string, a number, or a - * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - * - * For example, if you are filtering Compute Engine instances, you can exclude instances named - * `example-instance` by specifying `name != example-instance`. - * - * The `:*` comparison can be used to test whether a key has been defined. For example, to - * find all objects with `owner` label use: ``` labels.owner:* ``` - * - * You can also filter nested fields. For example, you could specify - * `scheduling.automaticRestart = false` to include instances only if they are not scheduled - * for automatic restarts. You can use filtering on nested fields to filter based onresource - * labels. - * - * To filter on multiple expressions, provide each separate expression within parentheses. For - * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By - * default, each expression is an `AND` expression. However, you can include `AND` and `OR` - * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = - * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` - * - * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator - * against a single un-parenthesized expression with or without quotes or against multiple - * parenthesized expressions. Examples: - * - * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq - * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - * - * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. - * The literal value must match the entire field. - * - * For example, to filter for 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 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. + /** 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 `:`. + /** Name of the zone for this request. */ + public Get setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } - For example, if you are filtering Compute Engine instances, you can exclude instances named - `example-instance` by specifying `name != example-instance`. + /** Name of the VM extension policy resource to return. */ + @com.google.api.client.util.Key + private java.lang.String vmExtensionPolicy; - The `:*` 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 VM extension policy resource to return. + */ + public java.lang.String getVmExtensionPolicy() { + return vmExtensionPolicy; + } - You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = - false` to include instances only if they are not scheduled for automatic restarts. You can use - filtering on nested fields to filter based onresource labels. + /** Name of the 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; + } - To filter on multiple expressions, provide each separate expression within parentheses. For - example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, - each expression is an `AND` expression. However, you can include `AND` and `OR` expressions - explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") - AND (scheduling.automaticRestart = true) ``` + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves details of a specific VM extension within a folder. + * + * 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 GetVmExtension#execute()} method to invoke the remote operation. + * + * @param folder Folder ID for this request. + * @param zone Name of the zone for this request. + * @param extensionName + * @return the request + */ + 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; + } - If you want to use a regular expression, use 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 GetVmExtension 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 = "{+folder}/zones/{zone}/vmExtensions/{extensionName}"; - 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 FOLDER_PATTERN = + java.util.regex.Pattern.compile("folders/[0-9]{0,20}"); - 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 EXTENSION_NAME_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")` + * Retrieves details of a specific VM extension within a folder. * - * 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 "folderZoneVmExtensionPolicies.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 folder Folder ID for this request. + * @param zone Name of the zone for this request. + * @param extensionName + * @since 1.13 */ - public AggregatedList setFilter(java.lang.String filter) { - this.filter = filter; - return this; + 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(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.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}"); + } } - /** - * 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 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. - */ - public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { - this.includeAllScopes = includeAllScopes; - return this; + @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`) - */ - @com.google.api.client.util.Key - private java.lang.Long maxResults; + @Override + public GetVmExtension set$Xgafv(java.lang.String $Xgafv) { + return (GetVmExtension) super.set$Xgafv($Xgafv); + } - /** The maximum number of results per page that should be returned. If the number of available results - is larger than `maxResults`, Compute Engine returns a `nextPageToken` 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 setAccessToken(java.lang.String accessToken) { + return (GetVmExtension) 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`) - */ - public AggregatedList setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; + @Override + public GetVmExtension setAlt(java.lang.String alt) { + return (GetVmExtension) 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. - */ - @com.google.api.client.util.Key - private java.lang.String orderBy; + @Override + public GetVmExtension setCallback(java.lang.String callback) { + return (GetVmExtension) super.setCallback(callback); + } - /** Sorts list results by a certain order. By default, results are returned in alphanumerical order - based on the resource name. + @Override + public GetVmExtension setFields(java.lang.String fields) { + return (GetVmExtension) super.setFields(fields); + } - You can also sort results in descending order based on the creation timestamp using - `orderBy="creationTimestamp desc"`. This sorts results based on the `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 setKey(java.lang.String key) { + return (GetVmExtension) super.setKey(key); + } - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; + @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. - */ - public AggregatedList setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; + @Override + public GetVmExtension setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetVmExtension) super.setPrettyPrint(prettyPrint); } - /** - * 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 GetVmExtension setQuotaUser(java.lang.String quotaUser) { + return (GetVmExtension) super.setQuotaUser(quotaUser); + } + + @Override + public GetVmExtension setUploadType(java.lang.String uploadType) { + return (GetVmExtension) super.setUploadType(uploadType); + } + + @Override + public GetVmExtension setUploadProtocol(java.lang.String uploadProtocol) { + return (GetVmExtension) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetVmExtension setUserIp(java.lang.String userIp) { + return (GetVmExtension) super.setUserIp(userIp); + } + + /** Folder ID for this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String folder; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Folder ID for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getFolder() { + return folder; } - /** - * 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; + /** Folder ID for this request. */ + public GetVmExtension 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; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ + /** Name of the zone for this request. */ @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** Opt-in for partial success behavior which provides partial results in case of failure. The default - value is false. + private java.lang.String zone; - For example, when partial success behavior is enabled, aggregatedList for a single zone scope - either returns all resources in the zone or no resources, with an error code. + /** Name of the zone for this request. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getZone() { + return zone; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial success behavior is enabled, aggregatedList for a single zone - * scope either returns all resources in the zone or no resources, with an error code. - */ - public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + /** 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; } - /** - * 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; + private java.lang.String extensionName; + + /** - /** 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 getExtensionName() { + return extensionName; } - /** - * 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 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 AggregatedList set(String parameterName, Object value) { - return (AggregatedList) super.set(parameterName, value); + public GetVmExtension set(String parameterName, Object value) { + return (GetVmExtension) super.set(parameterName, value); } } /** - * Deletes the specified ForwardingRule resource. + * Creates a new zone-level VM extension policy within a folder. * - * Create a request for the method "forwardingRules.delete". + * 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 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 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 content the {@link com.google.api.services.compute.model.VmExtensionPolicy} * @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 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 Delete extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{forwardingRule}"; + 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])?"); - 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 ForwardingRule resource. + * Creates a new zone-level VM extension policy within a folder. * - * Create a request for the method "forwardingRules.delete". + * 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 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 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 content the {@link com.google.api.services.compute.model.VmExtensionPolicy} * @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 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.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 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. */ + /** 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 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 Delete 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; - return this; - } - - /** Name of the ForwardingRule resource to delete. */ - @com.google.api.client.util.Key - private java.lang.String forwardingRule; - - /** Name of the ForwardingRule resource to delete. - */ - public java.lang.String getForwardingRule() { - return forwardingRule; - } - - /** 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; + this.zone = zone; return this; } @@ -32737,83 +33128,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 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 ForwardingRule resource. + * Lists all VM extension policies within a specific zone for a folder. * - * Create a request for the method "forwardingRules.get". + * 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 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 forwardingRule Name of the ForwardingRule resource to return. + * @param folder Folder 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 region, java.lang.String forwardingRule) throws java.io.IOException { - Get result = new Get(project, region, forwardingRule); + 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 Get extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{forwardingRule}"; + 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])?"); - 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 ForwardingRule resource. + * Lists all VM extension policies within a specific zone for a folder. * - * Create a request for the method "forwardingRules.get". + * 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 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 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. * @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 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])?))"); + 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 @@ -32827,420 +33207,431 @@ 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. */ + /** 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 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 Get 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; } - /** Name of the ForwardingRule 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 forwardingRule; + private java.lang.String filter; - /** Name of the ForwardingRule resource to return. - */ - 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. - /** 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; - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - @com.google.api.client.util.Key - private java.lang.String view; + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - /** + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` - */ - public java.lang.String getView() { - return view; - } + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` 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 Get setView(java.lang.String view) { - this.view = view; - return this; - } + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Creates a ForwardingRule resource in the specified project and region using the data included in - * the request. - * - * 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 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 region, com.google.api.services.compute.model.ForwardingRule content) throws java.io.IOException { - Insert result = new Insert(project, region, 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 Insert 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}/regions/{region}/forwardingRules"; + 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 REGION_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; + } /** - * Creates a ForwardingRule resource in the specified project and region using the data included - * in the 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. * - * Create a request for the method "forwardingRules.insert". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value 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 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.

+ * 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 scoping this request. - * @param content the {@link com.google.api.services.compute.model.ForwardingRule} - * @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 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()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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); + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) 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 Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) 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 Insert setUploadType(java.lang.String uploadType) { - return (Insert) 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 Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) 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 Insert setUserIp(java.lang.String userIp) { - return (Insert) 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 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; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use 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 region scoping 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; - /** Name of the region scoping 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; } - /** 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; + /** + * 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 Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Retrieves a list of ForwardingRule resources available to the specified project and region. + * Lists all VM extensions within a specific zone for a folder. This is a read-only API. * - * Create a request for the method "forwardingRules.list". + * 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 List#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 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 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 List extends ComputeRequest { + public class ListVmExtensions extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules"; + 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])?"); /** - * Retrieves a list of ForwardingRule resources available to the specified project and region. + * Lists all VM extensions within a specific zone for a folder. This is a read-only API. * - * Create a request for the method "forwardingRules.list". + * 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 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 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 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 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])?"); } } @@ -33256,104 +33647,104 @@ 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 ListVmExtensions set$Xgafv(java.lang.String $Xgafv) { + return (ListVmExtensions) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public ListVmExtensions setAccessToken(java.lang.String accessToken) { + return (ListVmExtensions) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public ListVmExtensions setAlt(java.lang.String alt) { + return (ListVmExtensions) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public ListVmExtensions setCallback(java.lang.String callback) { + return (ListVmExtensions) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public ListVmExtensions setFields(java.lang.String fields) { + return (ListVmExtensions) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public ListVmExtensions setKey(java.lang.String key) { + return (ListVmExtensions) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public ListVmExtensions setOauthToken(java.lang.String oauthToken) { + return (ListVmExtensions) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public ListVmExtensions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListVmExtensions) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public ListVmExtensions setQuotaUser(java.lang.String quotaUser) { + return (ListVmExtensions) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public ListVmExtensions setUploadType(java.lang.String uploadType) { + return (ListVmExtensions) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public ListVmExtensions setUploadProtocol(java.lang.String uploadProtocol) { + return (ListVmExtensions) super.setUploadProtocol(uploadProtocol); } @Override - public List setUserIp(java.lang.String userIp) { - return (List) super.setUserIp(userIp); + public ListVmExtensions setUserIp(java.lang.String userIp) { + return (ListVmExtensions) 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 ListVmExtensions 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 ListVmExtensions 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; } @@ -33488,7 +33879,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public ListVmExtensions setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -33517,7 +33908,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 ListVmExtensions setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -33561,7 +33952,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public ListVmExtensions setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -33584,7 +33975,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 ListVmExtensions setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -33616,211 +34007,194 @@ 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 ListVmExtensions 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 ListVmExtensions set(String parameterName, Object value) { + return (ListVmExtensions) super.set(parameterName, 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. + * Modifies an existing zone VM extension policy within a folder. * - * Create a request for the method "forwardingRules.patch". + * 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 Patch#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 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. + * @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 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 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 Patch extends ComputeRequest { + public class Update 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 = - 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. + * Modifies an existing zone VM extension policy within a folder. * - * Create a request for the method "forwardingRules.patch". + * 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 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 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. + * @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 project, java.lang.String region, java.lang.String forwardingRule, com.google.api.services.compute.model.ForwardingRule content) { + 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.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])?"); } - 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 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); } - /** 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 Patch 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 Patch 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 to patch. */ + /** 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 to patch. + /** 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 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; + /** Name of the zone VM extension policy to update. */ + public Update setVmExtensionPolicy(java.lang.String vmExtensionPolicy) { + this.vmExtensionPolicy = vmExtensionPolicy; return this; } @@ -33868,148 +34242,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 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); } } + + } + + /** + * 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 { + /** - * Sets the labels on the specified resource. To learn more about labels, read the Labeling - * Resources documentation. + * Retrieves an aggregated list of forwarding rules. * - * Create a request for the method "forwardingRules.setLabels". + * 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 SetLabels#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 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); + public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class SetLabels extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels"; + 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}"); - /** - * Sets the labels on the specified resource. To learn more about labels, read the Labeling - * Resources documentation. + * Retrieves an aggregated list of forwarding rules. * - * Create a request for the method "forwardingRules.setLabels". + * 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 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 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 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 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 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 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 AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) 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. */ @@ -34023,7 +34410,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels 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 " + @@ -34033,126 +34420,354 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** 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 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. - /** 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; - } + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. - /** Name or id of the resource for this request. */ - @com.google.api.client.util.Key - private java.lang.String resource; + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. - /** Name or id of the resource for this request. - */ - public java.lang.String getResource() { - return 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 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; - } + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` 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. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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; + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `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. + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for 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). - */ - 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); - } - } - /** - * 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 "forwardingRules.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 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 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); + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; + } + + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public AggregatedList setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public AggregatedList setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } + /** + * Deletes the specified ForwardingRule resource. + * + * 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 Delete#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param region Name of the region scoping this request. + * @param forwardingRule Name of the ForwardingRule resource to delete. + * @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); initialize(result); return result; } - public class SetTarget extends ComputeRequest { + public class Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget"; + 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])?))"); @@ -34164,25 +34779,22 @@ public class SetTarget extends ComputeRequest - * {@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 Delete#execute()} method to invoke the remote operation.

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

* * @param project Project ID for this request. * @param region Name of the region scoping this request. - * @param 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 forwardingRule Name of the ForwardingRule resource to delete. * @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); + 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(), @@ -34204,63 +34816,63 @@ protected SetTarget(java.lang.String project, java.lang.String region, java.lang } @Override - public SetTarget set$Xgafv(java.lang.String $Xgafv) { - return (SetTarget) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public SetTarget setAccessToken(java.lang.String accessToken) { - return (SetTarget) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public SetTarget setAlt(java.lang.String alt) { - return (SetTarget) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public SetTarget setCallback(java.lang.String callback) { - return (SetTarget) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public SetTarget setFields(java.lang.String fields) { - return (SetTarget) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public SetTarget setKey(java.lang.String key) { - return (SetTarget) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public SetTarget setOauthToken(java.lang.String oauthToken) { - return (SetTarget) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public SetTarget setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetTarget) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public SetTarget setQuotaUser(java.lang.String quotaUser) { - return (SetTarget) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public SetTarget setUploadType(java.lang.String uploadType) { - return (SetTarget) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public SetTarget setUploadProtocol(java.lang.String uploadProtocol) { - return (SetTarget) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } @Override - public SetTarget setUserIp(java.lang.String userIp) { - return (SetTarget) super.setUserIp(userIp); + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -34274,7 +34886,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetTarget 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 " + @@ -34295,7 +34907,7 @@ public java.lang.String getRegion() { } /** Name of the region scoping this request. */ - public SetTarget setRegion(java.lang.String region) { + public Delete setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -34305,18 +34917,18 @@ public SetTarget setRegion(java.lang.String region) { return this; } - /** Name of the ForwardingRule resource in which target is to be set. */ + /** Name of the ForwardingRule resource to delete. */ @com.google.api.client.util.Key private java.lang.String forwardingRule; - /** Name of the ForwardingRule resource in which target is to be set. + /** Name of the ForwardingRule resource to delete. */ 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) { + /** 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 " + @@ -34370,39 +34982,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 SetTarget setRequestId(java.lang.String requestId) { + public Delete 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 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 ForwardingRule resource. * - * Create a request for the method "forwardingRules.testIamPermissions". + * 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 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 scoping this request. + * @param forwardingRule Name of the ForwardingRule 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 forwardingRule) throws java.io.IOException { + Get result = new Get(project, region, forwardingRule); initialize(result); return result; } - public class TestIamPermissions extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/regions/{region}/forwardingRules/{resource}/testIamPermissions"; + 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])?))"); @@ -34410,28 +35021,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 scoping this request. + * @param forwardingRule Name of the ForwardingRule 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 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(), @@ -34444,72 +35053,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.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule 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(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 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. */ @@ -34523,7 +35142,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 " + @@ -34533,18 +35152,18 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** The name of the region for this request. */ + /** Name of the region scoping this request. */ @com.google.api.client.util.Key private java.lang.String region; - /** The name of the region for this request. + /** Name of the region scoping this request. */ public java.lang.String getRegion() { return region; } - /** The name of the region for this request. */ - public TestIamPermissions setRegion(java.lang.String region) { + /** Name of the region scoping this request. */ + public Get setRegion(java.lang.String region) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), "Parameter region must conform to the pattern " + @@ -34554,107 +35173,321 @@ public TestIamPermissions setRegion(java.lang.String region) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the ForwardingRule resource to return. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String forwardingRule; - /** Name or id of the resource for this request. + /** Name of the ForwardingRule resource to return. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getForwardingRule() { + return forwardingRule; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Name of the ForwardingRule resource to return. */ + public Get setForwardingRule(java.lang.String forwardingRule) { 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(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.resource = resource; + this.forwardingRule = forwardingRule; return this; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } + @com.google.api.client.util.Key + private java.lang.String view; - } + /** - /** - * 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(); - } + */ + public java.lang.String getView() { + return view; + } - /** - * The "futureReservations" collection of methods. - */ - public class FutureReservations { + 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); + } + } /** - * Retrieves an aggregated list of future reservations. + * Creates a ForwardingRule resource in the specified project and region using the data included in + * the request. * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. - * - * Create a request for the method "futureReservations.aggregatedList". + * 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 AggregatedList#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 content the {@link com.google.api.services.compute.model.ForwardingRule} * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + public Insert insert(java.lang.String project, 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 AggregatedList extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/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])?"); + /** - * Retrieves an aggregated list of future reservations. + * Creates a ForwardingRule resource in the specified project and region using the data included + * in the request. * - * To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to - * `true`. + * Create a request for the method "forwardingRules.insert". * - * 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 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} + * @since 1.13 + */ + 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()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Insert setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the region scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region scoping this request. */ + public Insert setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of ForwardingRule resources available to the specified project and region. + * + * 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 region Name of the region scoping this request. + * @return the request + */ + public List list(java.lang.String project, java.lang.String region) throws java.io.IOException { + List result = new List(project, region); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/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])?"); + + /** + * Retrieves a list of ForwardingRule resources available to the specified project and region. + * + * 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 AggregatedList#execute()} method to invoke the remote operation. - *

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

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

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

* * @param project Project ID for this request. + * @param region Name of the region 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.FutureReservationsAggregatedListResponse.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.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 @@ -34668,63 +35501,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. */ @@ -34738,7 +35571,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 " + @@ -34748,6 +35581,27 @@ public AggregatedList setProject(java.lang.String project) { return this; } + /** Name of the region scoping this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region scoping this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region scoping this request. */ + public List setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + /** * A filter expression that filters resources listed in the response. Most Compute resources * support two types of filter expressions: expressions that support regular expressions and @@ -34879,45 +35733,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 @@ -34942,7 +35762,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; } @@ -34986,7 +35806,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; } @@ -35009,7 +35829,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; } @@ -35041,150 +35861,149 @@ 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); } } /** - * Cancel 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.cancel". + * 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 Cancel#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 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 patch. + * @param content the {@link com.google.api.services.compute.model.ForwardingRule} * @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 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 Cancel extends ComputeRequest { + public class Patch 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. + * 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.cancel". + * 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 Cancel#execute()} method to invoke the remote operation.

{@link - * Cancel#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 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 patch. + * @param content the {@link com.google.api.services.compute.model.ForwardingRule} * @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 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()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public Cancel setUserIp(java.lang.String userIp) { - return (Cancel) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -35198,7 +36017,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Cancel 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 " + @@ -35208,35 +36027,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 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 future reservation to retrieve. Name should conform to RFC1035. */ + /** Name of the ForwardingRule resource to patch. */ @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 patch. */ - 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 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; } @@ -35284,127 +36113,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 Cancel setRequestId(java.lang.String requestId) { + public Patch 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 Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Deletes the specified future reservation. + * Sets the labels on the specified resource. To learn more about labels, read the Labeling + * Resources documentation. * - * Create a request for the method "futureReservations.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 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 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 zone, java.lang.String futureReservation) throws java.io.IOException { - Delete result = new Delete(project, zone, futureReservation); + 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}/zones/{zone}/futureReservations/{futureReservation}"; + 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 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 future reservation. + * Sets the labels on the specified resource. To learn more about labels, read the Labeling + * Resources documentation. * - * Create a request for the method "futureReservations.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 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 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 zone, java.lang.String futureReservation) { - 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.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.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. */ @@ -35418,7 +36268,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 " + @@ -35428,35 +36278,45 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the zone for this request. Name should conform to RFC1035. */ + /** The region for 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. + /** The region for 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; + /** 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 of the future reservation to retrieve. Name should conform to RFC1035. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String futureReservation; + private java.lang.String resource; - /** Name of the future reservation to retrieve. Name should conform to RFC1035. + /** Name or id of the resource for this request. */ - public java.lang.String getFutureReservation() { - return futureReservation; + public java.lang.String getResource() { + return resource; } - /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ - public Delete setFutureReservation(java.lang.String futureReservation) { - this.futureReservation = futureReservation; + /** 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; } @@ -35504,137 +36364,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); } } /** - * Retrieves information about the specified future reservation. + * 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 "futureReservations.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 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 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 zone, java.lang.String futureReservation) throws java.io.IOException { - Get result = new Get(project, zone, futureReservation); + 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}/zones/{zone}/futureReservations/{futureReservation}"; + 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 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}"); + /** - * Retrieves information about the specified future reservation. + * 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 "futureReservations.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 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 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 zone, java.lang.String futureReservation) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.FutureReservation.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.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(); + 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 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. */ @@ -35648,7 +36519,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 " + @@ -35658,153 +36529,232 @@ public Get 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 Get setZone(java.lang.String zone) { - this.zone = zone; + /** Name of the region scoping this request. */ + public SetTarget 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 in which target is to be set. */ @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 in which target is to be set. */ - 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 Get setFutureReservation(java.lang.String futureReservation) { - this.futureReservation = futureReservation; + /** 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public SetTarget set(String parameterName, Object value) { + return (SetTarget) super.set(parameterName, value); } } /** - * Creates a new Future Reservation. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "futureReservations.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 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 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, java.lang.String zone, com.google.api.services.compute.model.FutureReservation content) throws java.io.IOException { - Insert result = new Insert(project, zone, 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}/zones/{zone}/futureReservations"; + 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 a new Future Reservation. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "futureReservations.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 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 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, 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); + protected TestIamPermissions(java.lang.String project, java.lang.String region, java.lang.String resource, com.google.api.services.compute.model.TestPermissionsRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.TestPermissionsResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } - this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(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. */ @@ -35818,7 +36768,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 " + @@ -35828,126 +36778,128 @@ public Insert setProject(java.lang.String project) { return this; } - /** Name of the zone for this request. Name should conform to RFC1035. */ + /** The name of the region for 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. + /** The name of the region for 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; + /** 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; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String resource; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the 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 { + /** - * A list of all the future reservations that have been configured for the specified project in - * specified zone. + * Retrieves an aggregated list of future reservations. * - * Create a request for the method "futureReservations.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. - * @param zone Name of the zone for this request. 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 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}/futureReservations"; + 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])?))"); /** - * A list of all the future reservations that have been configured for the specified project in - * specified zone. + * Retrieves an aggregated list of future reservations. * - * Create a request for the method "futureReservations.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. - * @param zone Name of the zone for this request. Name should conform to 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.FutureReservationsListResponse.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(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 @@ -35961,63 +36913,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. */ @@ -36031,7 +36983,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 " + @@ -36041,22 +36993,6 @@ public List 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 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 @@ -36188,11 +37124,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 @@ -36217,7 +37187,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; } @@ -36261,7 +37231,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; } @@ -36284,7 +37254,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; } @@ -36316,61 +37286,82 @@ 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 the specified future reservation. + * Cancel the specified future reservation. * - * Create a request for the method "futureReservations.update". + * 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 Update#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 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 futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. * @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 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 Update extends ComputeRequest { + public class Cancel extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/zones/{zone}/futureReservations/{futureReservation}"; + 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])?))"); /** - * Updates the specified future reservation. + * Cancel the specified future reservation. * - * Create a request for the method "futureReservations.update". + * 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 Update#execute()} method to invoke the remote operation.

{@link - * Update#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 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 futureReservation Name of the future reservation to retrieve. Name should conform to RFC1035. * @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) { - super(Compute.this, "PATCH", 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(), @@ -36382,63 +37373,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 Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); } @Override - public Update setUserIp(java.lang.String userIp) { - return (Update) super.setUserIp(userIp); + public Cancel setUserIp(java.lang.String userIp) { + return (Cancel) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -36452,7 +37443,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Update 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 " + @@ -36473,42 +37464,27 @@ public java.lang.String getZone() { } /** Name of the zone for this request. Name should conform to RFC1035. */ - public Update setZone(java.lang.String zone) { + public Cancel setZone(java.lang.String zone) { this.zone = zone; return this; } - /** Name of the reservation to update. Name should conform to RFC1035. */ + /** 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 reservation to update. Name should conform to RFC1035. + /** Name of the future reservation to retrieve. 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) { + /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ + public Cancel 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 @@ -36553,87 +37529,46 @@ 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 Cancel 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 Cancel set(String parameterName, Object value) { + return (Cancel) 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. + * Deletes the specified future reservation. * - * Create a request for the method "globalAddresses.delete". + * 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 Delete#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param address Name of the address resource to delete. + * @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 Delete delete(java.lang.String project, java.lang.String address) throws java.io.IOException { - Delete result = new Delete(project, address); + 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 Delete extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/addresses/{address}"; + 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 ADDRESS_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. + * Deletes the specified future reservation. * - * Create a request for the method "globalAddresses.delete". + * 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 Delete#execute()} method to invoke the remote operation.

{@link @@ -36641,10 +37576,11 @@ public class Delete extends ComputeRequest * * @param project Project ID for this request. - * @param address Name of the address resource to delete. + * @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 Delete(java.lang.String project, java.lang.String address) { + 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()) { @@ -36652,12 +37588,8 @@ protected Delete(java.lang.String project, java.lang.String address) { "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 @@ -36741,37 +37673,48 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the address 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 address; + private java.lang.String zone; - /** Name of the address resource to delete. + /** 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 delete. */ - public Delete 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 Delete 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. - * + /** 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). */ @@ -36817,37 +37760,35 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified address resource. + * Retrieves information about the specified future reservation. * - * Create a request for the method "globalAddresses.get". + * 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 address Name of the address resource to return. + * @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 address) throws java.io.IOException { - Get result = new Get(project, address); + 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 { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/addresses/{address}"; + 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 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 address resource. + * Retrieves information about the specified future reservation. * - * Create a request for the method "globalAddresses.get". + * 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 @@ -36855,23 +37796,20 @@ public class Get extends ComputeRequest * * @param project Project ID for this request. - * @param address Name of the address resource to return. + * @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 address) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.Address.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.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 @@ -36965,221 +37903,73 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the address resource to return. */ - @com.google.api.client.util.Key - private java.lang.String address; - - /** Name of the address resource to return. - */ - public java.lang.String getAddress() { - return address; - } - - /** 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 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 zone for this request. Name should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String zone; - /** Project ID for this request. + /** Name of the zone for this request. Name should conform to RFC1035. */ - public java.lang.String getProject() { - return project; + public java.lang.String getZone() { + return zone; } - /** Project ID for this request. */ - 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 " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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; + /** Name of the zone for this request. Name should conform to RFC1035. */ + public Get setZone(java.lang.String zone) { + this.zone = zone; return this; } - /** The VM IP address. */ + /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ @com.google.api.client.util.Key - private java.lang.String ipAddress; + private java.lang.String futureReservation; - /** The VM IP address. + /** Name of the future reservation to retrieve. Name should conform to RFC1035. */ - public java.lang.String getIpAddress() { - return ipAddress; + public java.lang.String getFutureReservation() { + return futureReservation; } - /** The VM IP address. */ - public GetOwnerInstance setIpAddress(java.lang.String ipAddress) { - this.ipAddress = ipAddress; + /** 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 GetOwnerInstance set(String parameterName, Object value) { - return (GetOwnerInstance) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Creates an address resource in the specified project by using the data included in the request. + * Creates a new Future Reservation. * - * Create a request for the method "globalAddresses.insert". + * 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 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} + * @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 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 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 Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/addresses"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/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])?))"); /** - * Creates an address resource in the specified project by using the data included in the request. + * Creates a new Future Reservation. * - * Create a request for the method "globalAddresses.insert". + * 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 Insert#execute()} method to invoke the remote operation.

{@link @@ -37187,10 +37977,11 @@ public class Insert extends ComputeRequest * * @param project Project ID for this request. - * @param content the {@link com.google.api.services.compute.model.Address} + * @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 Insert(java.lang.String project, com.google.api.services.compute.model.Address content) { + 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()) { @@ -37198,6 +37989,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 @@ -37281,6 +38073,22 @@ public Insert 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 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 @@ -37336,33 +38144,36 @@ public Insert set(String parameterName, Object value) { } } /** - * Retrieves a list of global addresses. + * A list of all the future reservations that have been configured for the specified project in + * specified zone. * - * Create a request for the method "globalAddresses.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 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 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/addresses"; + private static final String REST_PATH = "projects/{project}/zones/{zone}/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. + * A list of all the future reservations that have been configured for the specified project in + * specified zone. * - * Create a request for the method "globalAddresses.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 @@ -37370,16 +38181,18 @@ 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. * @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 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(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 @@ -37473,6 +38286,22 @@ public List 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 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 @@ -37743,137 +38572,132 @@ public List set(String parameterName, Object value) { } } /** - * Moves the specified address resource from one project to another project. + * Updates the specified future reservation. * - * Create a request for the method "globalAddresses.move". + * 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 Move#execute()} method to invoke the remote operation. + * parameters, call the {@link Update#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 reservation to update. Name should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.FutureReservation} * @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 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 Move extends ComputeRequest { + public class Update 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}"; private final java.util.regex.Pattern PROJECT_PATTERN = java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[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. + * Updates the specified future reservation. * - * Create a request for the method "globalAddresses.move". + * 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 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 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 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 reservation to update. Name should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.FutureReservation} * @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 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.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 Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); } @Override - public Move setAccessToken(java.lang.String accessToken) { - return (Move) super.setAccessToken(accessToken); + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); } @Override - public Move setAlt(java.lang.String alt) { - return (Move) super.setAlt(alt); + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); } @Override - public Move setCallback(java.lang.String callback) { - return (Move) super.setCallback(callback); + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); } @Override - public Move setFields(java.lang.String fields) { - return (Move) super.setFields(fields); + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); } @Override - public Move setKey(java.lang.String key) { - return (Move) super.setKey(key); + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); } @Override - public Move setOauthToken(java.lang.String oauthToken) { - return (Move) super.setOauthToken(oauthToken); + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); } @Override - public Move setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Move) super.setPrettyPrint(prettyPrint); + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); } @Override - public Move setQuotaUser(java.lang.String quotaUser) { - return (Move) super.setQuotaUser(quotaUser); + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); } @Override - public Move setUploadType(java.lang.String uploadType) { - return (Move) super.setUploadType(uploadType); + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); } @Override - public Move setUploadProtocol(java.lang.String uploadProtocol) { - return (Move) super.setUploadProtocol(uploadProtocol); + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); } @Override - public Move setUserIp(java.lang.String userIp) { - return (Move) super.setUserIp(userIp); + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 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 " + @@ -37883,24 +38707,50 @@ 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 Update setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** 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; } @@ -37948,137 +38798,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 Move 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 Move set(String parameterName, Object value) { - return (Move) 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 { + /** - * Sets the labels on a GlobalAddress. To learn more about labels, read theLabeling Resources - * documentation. + * Deletes the specified address resource. * - * Create a request for the method "globalAddresses.setLabels". + * 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 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 address Name of the address resource to delete. * @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 address) throws java.io.IOException { + Delete result = new Delete(project, address); 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}/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 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 ADDRESS_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 address resource. * - * Create a request for the method "globalAddresses.setLabels". + * 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 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 address Name of the address resource to delete. * @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 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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(RESOURCE_PATTERN.matcher(resource).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(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 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. */ @@ -38092,7 +38976,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 " + @@ -38102,151 +38986,207 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the address resource to delete. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String address; - /** Name or id of the resource for this request. + /** Name of the address resource to delete. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getAddress() { + return address; } - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { + /** Name of the address resource to delete. */ + public Delete setAddress(java.lang.String address) { 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(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.resource = resource; + 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 requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate 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. + * Returns the specified address resource. * - * Create a request for the method "globalAddresses.testIamPermissions". + * 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 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 address Name of the address 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 address) throws java.io.IOException { + Get result = new Get(project, address); 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}/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 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 ADDRESS_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 address resource. * - * Create a request for the method "globalAddresses.testIamPermissions". + * 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 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 address Name of the address 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 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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(RESOURCE_PATTERN.matcher(resource).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(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 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. */ @@ -38260,7 +39200,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 " + @@ -38270,110 +39210,77 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the address resource to return. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String address; - /** Name or id of the resource for this request. + /** Name of the address resource to return. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getAddress() { + return address; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { + /** Name of the address resource to return. */ + public Get setAddress(java.lang.String address) { 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(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.resource = resource; + this.address = address; 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 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(); - } - - /** - * The "globalFolderOperations" collection of methods. - */ - public class GlobalFolderOperations { - /** - * Retrieves the specified Operations resource. + * Find owner instance from given ip address * - * Create a request for the method "globalFolderOperations.get". + * 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 Get#execute()} method to invoke the remote operation. + * parameters, call the {@link GetOwnerInstance#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. * @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 GetOwnerInstance getOwnerInstance(java.lang.String project) throws java.io.IOException { + GetOwnerInstance result = new GetOwnerInstance(project); initialize(result); return result; } - public class Get extends ComputeRequest { - - private static final String REST_PATH = "{+folder}/global/operations/{operation}"; + public class GetOwnerInstance 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}/global/addresses/getOwnerInstance"; - 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. + * Find owner instance from given ip address * - * Create a request for the method "globalFolderOperations.get". + * 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 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 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 folder Folder ID for this request. - * @param operation Name of the Operations resource to return. + * @param project Project ID for this request. * @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 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(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])?))"); } } @@ -38388,156 +39295,335 @@ 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 GetOwnerInstance set$Xgafv(java.lang.String $Xgafv) { + return (GetOwnerInstance) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public GetOwnerInstance setAccessToken(java.lang.String accessToken) { + return (GetOwnerInstance) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public GetOwnerInstance setAlt(java.lang.String alt) { + return (GetOwnerInstance) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public GetOwnerInstance setCallback(java.lang.String callback) { + return (GetOwnerInstance) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public GetOwnerInstance setFields(java.lang.String fields) { + return (GetOwnerInstance) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public GetOwnerInstance setKey(java.lang.String key) { + return (GetOwnerInstance) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public GetOwnerInstance setOauthToken(java.lang.String oauthToken) { + return (GetOwnerInstance) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public GetOwnerInstance setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetOwnerInstance) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public GetOwnerInstance setQuotaUser(java.lang.String quotaUser) { + return (GetOwnerInstance) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public GetOwnerInstance setUploadType(java.lang.String uploadType) { + return (GetOwnerInstance) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public GetOwnerInstance setUploadProtocol(java.lang.String uploadProtocol) { + return (GetOwnerInstance) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public GetOwnerInstance setUserIp(java.lang.String userIp) { + return (GetOwnerInstance) 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 Get setFolder(java.lang.String folder) { + /** Project ID for this request. */ + public GetOwnerInstance 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 Operations resource to return. */ + /** The VM IP address. */ @com.google.api.client.util.Key - private java.lang.String operation; + private java.lang.String ipAddress; - /** Name of the Operations resource to return. + /** The VM IP address. */ - public java.lang.String getOperation() { - return operation; + public java.lang.String getIpAddress() { + return ipAddress; } - /** Name of the Operations resource to return. */ - public Get setOperation(java.lang.String operation) { + /** 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(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; + } + + @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 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. + * Retrieves a list of global addresses. * - * Create a request for the method "globalFolderOperations.list". + * 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 folder Folder ID for this request. + * @param project Project ID for this request. * @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) 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 = "{+folder}/global/operations"; + private static final String REST_PATH = "projects/{project}/global/addresses"; - 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. + * Retrieves a list of global addresses. * - * Create a request for the method "globalFolderOperations.list". + * 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 folder Folder ID for this request. + * @param project Project ID for this request. * @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) { + 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(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])?))"); } } @@ -38611,24 +39697,24 @@ 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; } @@ -38901,159 +39987,138 @@ 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. + * Moves the specified address resource from one project to another project. * - * Create a request for the method "globalForwardingRules.delete". + * 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 Delete#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 delete. + * @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 Delete delete(java.lang.String project, java.lang.String forwardingRule) throws java.io.IOException { - Delete result = new Delete(project, forwardingRule); + 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 Delete 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}"); /** - * Deletes the specified GlobalForwardingRule resource. + * Moves the specified address resource from one project to another project. * - * Create a request for the method "globalForwardingRules.delete". + * 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 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 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 delete. + * @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 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 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 Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Move set$Xgafv(java.lang.String $Xgafv) { + return (Move) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Move setAccessToken(java.lang.String accessToken) { + return (Move) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Move setAlt(java.lang.String alt) { + return (Move) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Move setCallback(java.lang.String callback) { + return (Move) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Move setFields(java.lang.String fields) { + return (Move) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Move setKey(java.lang.String key) { + return (Move) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Move setOauthToken(java.lang.String oauthToken) { + return (Move) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Move setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Move) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Move setQuotaUser(java.lang.String quotaUser) { + return (Move) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Move setUploadType(java.lang.String uploadType) { + return (Move) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Move setUploadProtocol(java.lang.String uploadProtocol) { + return (Move) super.setUploadProtocol(uploadProtocol); } @Override - public Delete setUserIp(java.lang.String userIp) { - return (Delete) 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 Delete 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 " + @@ -39063,24 +40128,24 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the ForwardingRule resource to delete. */ + /** 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 delete. + /** 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 delete. */ - public Delete 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; } @@ -39128,144 +40193,137 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Delete setRequestId(java.lang.String requestId) { + public Move 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 Move set(String parameterName, Object value) { + return (Move) super.set(parameterName, value); } } /** - * Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by - * making a list() request. + * Sets the labels on a GlobalAddress. To learn more about labels, read theLabeling Resources + * documentation. * - * Create a request for the method "globalForwardingRules.get". + * 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 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 forwardingRule Name of the ForwardingRule resource to return. + * @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 Get get(java.lang.String project, java.lang.String forwardingRule) throws java.io.IOException { - Get result = new Get(project, forwardingRule); + 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 Get extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/forwardingRules/{forwardingRule}"; + 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])?))"); - 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}"); + 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 GlobalForwardingRule resource. Gets a list of available forwarding rules - * by making a list() request. + * Sets the labels on a GlobalAddress. To learn more about labels, read theLabeling Resources + * documentation. * - * Create a request for the method "globalForwardingRules.get". + * Create a request for the method "globalAddresses.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 forwardingRule Name of the ForwardingRule resource to return. + * @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 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 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.forwardingRule = com.google.api.client.util.Preconditions.checkNotNull(forwardingRule, "Required parameter forwardingRule 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(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(RESOURCE_PATTERN.matcher(resource).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. */ @@ -39279,7 +40337,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 " + @@ -39289,156 +40347,151 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the ForwardingRule resource to return. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String forwardingRule; + private java.lang.String resource; - /** Name of the ForwardingRule resource to return. + /** Name or id of the resource for this request. */ - public java.lang.String getForwardingRule() { - return forwardingRule; + public java.lang.String getResource() { + return resource; } - /** Name of the ForwardingRule resource to return. */ - public Get setForwardingRule(java.lang.String forwardingRule) { + /** 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(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(RESOURCE_PATTERN.matcher(resource).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.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.resource = resource; 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); } } /** - * Creates a GlobalForwardingRule 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 "globalForwardingRules.insert". + * 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 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.ForwardingRule} + * @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.ForwardingRule 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/forwardingRules"; + 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])?))"); + 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 GlobalForwardingRule 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 "globalForwardingRules.insert". + * Create a request for the method "globalAddresses.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.ForwardingRule} + * @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.ForwardingRule 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. */ @@ -39452,7 +40505,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 " + @@ -39462,104 +40515,110 @@ public Insert setProject(java.lang.String project) { return this; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. + private java.lang.String resource; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Name or id of the resource for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getResource() { + return resource; } - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public Insert setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Name or id of the resource for this request. */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; return this; } @Override - public Insert set(String parameterName, Object value) { - return (Insert) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the 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(); + } + + /** + * The "globalFolderOperations" collection of methods. + */ + public class GlobalFolderOperations { + /** - * Retrieves a list of GlobalForwardingRule resources available to the specified project. + * Retrieves the specified Operations resource. * - * Create a request for the method "globalForwardingRules.list". + * 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 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 folder Folder ID for this request. + * @param operation Name of the Operations resource to return. * @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 folder, java.lang.String operation) throws java.io.IOException { + Get result = new Get(folder, operation); initialize(result); return result; } - public class List extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/forwardingRules"; + 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}"); /** - * Retrieves a list of GlobalForwardingRule resources available to the specified project. + * Retrieves the specified Operations resource. * - * Create a request for the method "globalForwardingRules.list". + * 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 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 folder Folder ID for this request. + * @param operation Name of the Operations resource to return. * @since 1.13 */ - protected List(java.lang.String project) { - 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 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}"); } } @@ -39574,92 +40633,256 @@ 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. */ + /** 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 Get 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; } - /** - * A filter expression that filters resources listed in the response. Most Compute resources - * support two types of filter expressions: expressions that 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 Operations resource to return. */ + @com.google.api.client.util.Key + private java.lang.String operation; + + /** Name of the Operations resource to return. + */ + public java.lang.String getOperation() { + return operation; + } + + /** 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 Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves a list of Operation resources contained within the specified folder. + * + * 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 List#execute()} method to invoke the remote operation. + * + * @param folder Folder ID for this request. + * @return the request + */ + public List list(java.lang.String folder) throws java.io.IOException { + List result = new List(folder); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "{+folder}/global/operations"; + + private final java.util.regex.Pattern FOLDER_PATTERN = + java.util.regex.Pattern.compile("folders/[0-9]{0,20}"); + + /** + * Retrieves a list of Operation resources contained within the specified folder. + * + * 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 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. + * @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."); + 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}"); + } + } + + @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); + } + + /** Folder ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String folder; + + /** Folder ID for this request. + */ + public java.lang.String getFolder() { + return folder; + } + + /** Folder ID for this request. */ + public List 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; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * * If you want to use AIP-160, your expression must specify the field name, an operator, and * the value that you want to use for filtering. The value must be a string, a number, or a * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. @@ -39923,28 +41146,48 @@ 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 { + /** - * 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. + * Deletes the specified GlobalForwardingRule resource. * - * Create a request for the method "globalForwardingRules.patch". + * 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 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 forwardingRule Name of the ForwardingRule resource to patch. - * @param content the {@link com.google.api.services.compute.model.ForwardingRule} + * @param forwardingRule Name of the ForwardingRule resource to delete. * @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 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 Patch extends ComputeRequest { + public class Delete extends ComputeRequest { private static final String REST_PATH = "projects/{project}/global/forwardingRules/{forwardingRule}"; @@ -39955,24 +41198,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 forwardingRule Name of the ForwardingRule resource to patch. - * @param content the {@link com.google.api.services.compute.model.ForwardingRule} + * @param forwardingRule Name of the ForwardingRule resource to delete. * @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 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(), @@ -39988,63 +41228,63 @@ protected Patch(java.lang.String project, java.lang.String forwardingRule, com.g } @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. */ @@ -40058,7 +41298,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 " + @@ -40068,18 +41308,18 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the ForwardingRule resource to patch. */ + /** Name of the ForwardingRule resource to delete. */ @com.google.api.client.util.Key private java.lang.String forwardingRule; - /** Name of the ForwardingRule resource to patch. + /** Name of the ForwardingRule resource to delete. */ public java.lang.String getForwardingRule() { return forwardingRule; } - /** Name of the ForwardingRule resource to patch. */ - public Patch setForwardingRule(java.lang.String forwardingRule) { + /** 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 " + @@ -40133,137 +41373,144 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public Patch setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Sets the labels on the specified resource. To learn more about labels, read the Labeling - * resources documentation. + * Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by + * making a list() request. * - * Create a request for the method "globalForwardingRules.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @param forwardingRule Name of the ForwardingRule resource to return. * @return the request */ - public SetLabels setLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) throws java.io.IOException { - SetLabels result = new SetLabels(project, resource, content); + public Get get(java.lang.String project, java.lang.String forwardingRule) throws java.io.IOException { + Get result = new Get(project, forwardingRule); initialize(result); return result; } - public class SetLabels extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/forwardingRules/{resource}/setLabels"; + 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 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 FORWARDING_RULE_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 the specified resource. To learn more about labels, read the Labeling - * resources documentation. + * Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules + * by making a list() request. * - * Create a request for the method "globalForwardingRules.setLabels". + * 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 SetLabels#execute()} method to invoke the remote operation.

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

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

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

* * @param project Project ID for this request. - * @param resource Name or id of the resource for this request. - * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} + * @param forwardingRule Name of the ForwardingRule resource to return. * @since 1.13 */ - protected SetLabels(java.lang.String project, java.lang.String resource, com.google.api.services.compute.model.GlobalSetLabelsRequest content) { - super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + protected Get(java.lang.String project, java.lang.String 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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource 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(RESOURCE_PATTERN.matcher(resource).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(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 SetLabels set$Xgafv(java.lang.String $Xgafv) { - return (SetLabels) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetLabels setAccessToken(java.lang.String accessToken) { - return (SetLabels) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetLabels setAlt(java.lang.String alt) { - return (SetLabels) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public SetLabels setCallback(java.lang.String callback) { - return (SetLabels) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public SetLabels setFields(java.lang.String fields) { - return (SetLabels) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public SetLabels setKey(java.lang.String key) { - return (SetLabels) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public SetLabels setOauthToken(java.lang.String oauthToken) { - return (SetLabels) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public SetLabels setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetLabels) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public SetLabels setQuotaUser(java.lang.String quotaUser) { - return (SetLabels) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public SetLabels setUploadType(java.lang.String uploadType) { - return (SetLabels) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public SetLabels setUploadProtocol(java.lang.String uploadProtocol) { - return (SetLabels) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public SetLabels setUserIp(java.lang.String userIp) { - return (SetLabels) super.setUserIp(userIp); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -40277,7 +41524,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetLabels setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + @@ -40287,80 +41534,89 @@ public SetLabels setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** Name of the ForwardingRule resource to return. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String forwardingRule; - /** Name or id of the resource for this request. + /** Name of the ForwardingRule resource to return. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getForwardingRule() { + return forwardingRule; } - /** Name or id of the resource for this request. */ - public SetLabels setResource(java.lang.String resource) { + /** Name of the ForwardingRule resource to return. */ + public Get setForwardingRule(java.lang.String forwardingRule) { 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(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.resource = resource; + 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; } @Override - public SetLabels set(String parameterName, Object value) { - return (SetLabels) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Changes target URL for the GlobalForwardingRule resource. The new target should be of the same - * type as the old target. + * Creates a GlobalForwardingRule resource in the specified project using the data included in the + * request. * - * Create a request for the method "globalForwardingRules.setTarget". + * 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 SetTarget#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 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 content the {@link com.google.api.services.compute.model.ForwardingRule} * @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); + 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; } - public class SetTarget extends ComputeRequest { + public class Insert extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/forwardingRules/{forwardingRule}/setTarget"; + 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])?))"); - 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. + * Creates a GlobalForwardingRule resource in the specified project using the data included in the + * request. * - * Create a request for the method "globalForwardingRules.setTarget". + * 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 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 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 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 content the {@link com.google.api.services.compute.model.ForwardingRule} * @since 1.13 */ - protected SetTarget(java.lang.String project, java.lang.String forwardingRule, com.google.api.services.compute.model.TargetReference 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()) { @@ -40368,72 +41624,66 @@ protected SetTarget(java.lang.String project, java.lang.String forwardingRule, c "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public SetTarget setAccessToken(java.lang.String accessToken) { - return (SetTarget) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public SetTarget setAlt(java.lang.String alt) { - return (SetTarget) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public SetTarget setCallback(java.lang.String callback) { - return (SetTarget) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public SetTarget setFields(java.lang.String fields) { - return (SetTarget) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public SetTarget setKey(java.lang.String key) { - return (SetTarget) super.setKey(key); - } + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } @Override - public SetTarget setOauthToken(java.lang.String oauthToken) { - return (SetTarget) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public SetTarget setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetTarget) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public SetTarget setQuotaUser(java.lang.String quotaUser) { - return (SetTarget) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public SetTarget setUploadType(java.lang.String uploadType) { - return (SetTarget) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public SetTarget setUploadProtocol(java.lang.String uploadProtocol) { - return (SetTarget) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public SetTarget setUserIp(java.lang.String userIp) { - return (SetTarget) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -40447,7 +41697,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public SetTarget 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 " + @@ -40457,27 +41707,6 @@ public SetTarget setProject(java.lang.String 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 @@ -40522,135 +41751,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 SetTarget setRequestId(java.lang.String requestId) { + public Insert 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 Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Retrieves a list of GlobalForwardingRule resources available to the specified project. * - * Create a request for the method "globalForwardingRules.testIamPermissions". + * 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 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/forwardingRules/{resource}/testIamPermissions"; + 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])?))"); - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Returns permissions that a caller has on the specified resource. + * Retrieves a list of GlobalForwardingRule resources available to the specified project. * - * Create a request for the method "globalForwardingRules.testIamPermissions". + * 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 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.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.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. */ @@ -40664,7 +41889,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 " + @@ -40674,171 +41899,397 @@ public TestIamPermissions setProject(java.lang.String project) { return this; } - /** Name or id of the resource for this request. */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String filter; - /** Name or id of the resource for this request. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getFilter() { + return filter; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; return this; } - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; } - } - } + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } - /** - * An accessor for creating requests from the 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(); - } + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use 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 "globalNetworkEndpointGroups" collection of methods. - */ - public class GlobalNetworkEndpointGroups { + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use 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); + } + } /** - * Attach a network endpoint to 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.attachNetworkEndpoints". + * Create a request for the method "globalForwardingRules.patch". * * 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 Patch#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 forwardingRule Name of the ForwardingRule resource to patch. + * @param content the {@link com.google.api.services.compute.model.ForwardingRule} * @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 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); initialize(result); return result; } - public class AttachNetworkEndpoints extends ComputeRequest { + public class Patch extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints"; + 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}"); + /** - * Attach a network endpoint to 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.attachNetworkEndpoints". + * 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 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 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 where you are attaching network - endpoints to. It should - * comply with RFC1035. - * @param content the {@link com.google.api.services.compute.model.GlobalNetworkEndpointGroupsAttachEndpointsRequest} + * @param forwardingRule Name of the ForwardingRule resource to patch. + * @param content the {@link com.google.api.services.compute.model.ForwardingRule} * @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); + 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 AttachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (AttachNetworkEndpoints) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public AttachNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (AttachNetworkEndpoints) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public AttachNetworkEndpoints setAlt(java.lang.String alt) { - return (AttachNetworkEndpoints) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public AttachNetworkEndpoints setCallback(java.lang.String callback) { - return (AttachNetworkEndpoints) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public AttachNetworkEndpoints setFields(java.lang.String fields) { - return (AttachNetworkEndpoints) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public AttachNetworkEndpoints setKey(java.lang.String key) { - return (AttachNetworkEndpoints) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public AttachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (AttachNetworkEndpoints) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public AttachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AttachNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public AttachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (AttachNetworkEndpoints) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public AttachNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (AttachNetworkEndpoints) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public AttachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (AttachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } @Override - public AttachNetworkEndpoints setUserIp(java.lang.String userIp) { - return (AttachNetworkEndpoints) super.setUserIp(userIp); + public Patch setUserIp(java.lang.String userIp) { + return (Patch) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -40852,7 +42303,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AttachNetworkEndpoints 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 " + @@ -40862,26 +42313,24 @@ public AttachNetworkEndpoints setProject(java.lang.String project) { return this; } - /** - * The name of the network endpoint group where you are attaching network endpoints to. 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 where you are attaching network endpoints to. 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 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 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; } @@ -40929,128 +42378,137 @@ public java.lang.String getRequestId() { * The request ID must be a valid UUID with the exception that zero UUID is not supported * (00000000-0000-0000-0000-000000000000). */ - public AttachNetworkEndpoints setRequestId(java.lang.String requestId) { + public Patch 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 Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * Deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are - * backend services referencing it. + * Sets the labels on the specified resource. To learn more about labels, read the Labeling + * resources documentation. * - * Create a request for the method "globalNetworkEndpointGroups.delete". + * 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 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 networkEndpointGroup The name of the network endpoint group to delete. It should comply with - RFC1035. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} * @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 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 Delete extends ComputeRequest { + public class SetLabels extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}"; + private static final String REST_PATH = "projects/{project}/global/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 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 network endpoint group.Note that the NEG cannot be deleted if there are - * backend services referencing it. + * Sets the labels on the specified resource. To learn more about labels, read the Labeling + * resources documentation. * - * Create a request for the method "globalNetworkEndpointGroups.delete". + * Create a request for the method "globalForwardingRules.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 networkEndpointGroup The name of the network endpoint group to delete. It should comply with - RFC1035. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalSetLabelsRequest} * @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); + 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.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup 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 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. */ @@ -41064,7 +42522,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 " + @@ -41074,128 +42532,80 @@ public Delete setProject(java.lang.String project) { return this; } - /** - * The name of the network endpoint group to delete. It should comply with RFC1035. - */ - @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; - - /** The name of the network endpoint group to delete. It should comply with RFC1035. - */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; - } - - /** - * 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; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Name or id of the resource for this request. */ + public SetLabels setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resource = resource; 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); } } /** - * Detach the network endpoint from the specified network endpoint group. + * 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 "globalNetworkEndpointGroups.detachNetworkEndpoints". + * 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 DetachNetworkEndpoints#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 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 in which target is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetReference} * @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 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 DetachNetworkEndpoints extends ComputeRequest { + public class SetTarget 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}/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}"); + /** - * Detach the network endpoint from the specified network endpoint group. + * 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 "globalNetworkEndpointGroups.detachNetworkEndpoints". + * 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 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 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 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 in which target is to be set. + * @param content the {@link com.google.api.services.compute.model.TargetReference} * @since 1.13 */ - protected DetachNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup, com.google.api.services.compute.model.GlobalNetworkEndpointGroupsDetachEndpointsRequest content) { + 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()) { @@ -41203,67 +42613,72 @@ protected DetachNetworkEndpoints(java.lang.String project, java.lang.String netw "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 SetTarget set$Xgafv(java.lang.String $Xgafv) { + return (SetTarget) super.set$Xgafv($Xgafv); } @Override - public DetachNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (DetachNetworkEndpoints) super.setAccessToken(accessToken); + public SetTarget setAccessToken(java.lang.String accessToken) { + return (SetTarget) super.setAccessToken(accessToken); } @Override - public DetachNetworkEndpoints setAlt(java.lang.String alt) { - return (DetachNetworkEndpoints) super.setAlt(alt); + public SetTarget setAlt(java.lang.String alt) { + return (SetTarget) super.setAlt(alt); } @Override - public DetachNetworkEndpoints setCallback(java.lang.String callback) { - return (DetachNetworkEndpoints) super.setCallback(callback); + public SetTarget setCallback(java.lang.String callback) { + return (SetTarget) super.setCallback(callback); } @Override - public DetachNetworkEndpoints setFields(java.lang.String fields) { - return (DetachNetworkEndpoints) super.setFields(fields); + public SetTarget setFields(java.lang.String fields) { + return (SetTarget) super.setFields(fields); } @Override - public DetachNetworkEndpoints setKey(java.lang.String key) { - return (DetachNetworkEndpoints) super.setKey(key); + public SetTarget setKey(java.lang.String key) { + return (SetTarget) super.setKey(key); } @Override - public DetachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (DetachNetworkEndpoints) super.setOauthToken(oauthToken); + public SetTarget setOauthToken(java.lang.String oauthToken) { + return (SetTarget) super.setOauthToken(oauthToken); } @Override - public DetachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DetachNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public SetTarget setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetTarget) super.setPrettyPrint(prettyPrint); } @Override - public DetachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (DetachNetworkEndpoints) super.setQuotaUser(quotaUser); + public SetTarget setQuotaUser(java.lang.String quotaUser) { + return (SetTarget) super.setQuotaUser(quotaUser); } @Override - public DetachNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (DetachNetworkEndpoints) super.setUploadType(uploadType); + public SetTarget setUploadType(java.lang.String uploadType) { + return (SetTarget) super.setUploadType(uploadType); } @Override - public DetachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (DetachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public SetTarget setUploadProtocol(java.lang.String uploadProtocol) { + return (SetTarget) super.setUploadProtocol(uploadProtocol); } @Override - public DetachNetworkEndpoints setUserIp(java.lang.String userIp) { - return (DetachNetworkEndpoints) super.setUserIp(userIp); + public SetTarget setUserIp(java.lang.String userIp) { + return (SetTarget) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -41277,7 +42692,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public DetachNetworkEndpoints 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 " + @@ -41287,26 +42702,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 in which target is to be set. */ @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 in which target is to be set. */ - 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 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; } @@ -41354,134 +42767,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 DetachNetworkEndpoints setRequestId(java.lang.String requestId) { + public SetTarget 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 SetTarget set(String parameterName, Object value) { + return (SetTarget) super.set(parameterName, value); } } /** - * Returns the specified network endpoint group. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "globalNetworkEndpointGroups.get". + * 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 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 networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @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 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}/global/networkEndpointGroups/{networkEndpointGroup}"; + 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 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 endpoint group. + * Returns permissions that a caller has on the specified resource. * - * Create a request for the method "globalNetworkEndpointGroups.get". + * 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 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 networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. + * @param resource Name or id of the resource for this request. + * @param content the {@link com.google.api.services.compute.model.TestPermissionsRequest} * @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 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.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.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public 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. */ @@ -41495,7 +42909,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 " + @@ -41505,81 +42919,103 @@ public Get setProject(java.lang.String project) { return this; } - /** The name of the network endpoint group. It should comply with RFC1035. */ + /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String networkEndpointGroup; + private java.lang.String resource; - /** The name of the network endpoint group. It should comply with RFC1035. + /** Name or id of the resource for this request. */ - public java.lang.String getNetworkEndpointGroup() { - return networkEndpointGroup; + public java.lang.String getResource() { + return resource; } - /** The name of the network endpoint group. It should comply with RFC1035. */ - public Get setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { - this.networkEndpointGroup = 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; 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 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 { + /** - * 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 + * Attach a network endpoint to the specified network endpoint group. * - * Create a request for the method "globalNetworkEndpointGroups.insert". + * 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 Insert#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 content the {@link com.google.api.services.compute.model.NetworkEndpointGroup} + * @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 Insert insert(java.lang.String project, com.google.api.services.compute.model.NetworkEndpointGroup content) throws java.io.IOException { - Insert result = new Insert(project, content); + 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 Insert extends ComputeRequest { + public class AttachNetworkEndpoints extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups"; + 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])?))"); /** - * 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 + * Attach a network endpoint to the specified network endpoint group. * - * Create a request for the method "globalNetworkEndpointGroups.insert". + * 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 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 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 content the {@link com.google.api.services.compute.model.NetworkEndpointGroup} + * @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 Insert(java.lang.String project, com.google.api.services.compute.model.NetworkEndpointGroup content) { + 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()) { @@ -41587,66 +43023,67 @@ protected Insert(java.lang.String project, com.google.api.services.compute.model "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.networkEndpointGroup = com.google.api.client.util.Preconditions.checkNotNull(networkEndpointGroup, "Required parameter networkEndpointGroup must be specified."); } @Override - public Insert set$Xgafv(java.lang.String $Xgafv) { - return (Insert) super.set$Xgafv($Xgafv); + public AttachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (AttachNetworkEndpoints) super.set$Xgafv($Xgafv); } @Override - public Insert setAccessToken(java.lang.String accessToken) { - return (Insert) super.setAccessToken(accessToken); + public AttachNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (AttachNetworkEndpoints) super.setAccessToken(accessToken); } @Override - public Insert setAlt(java.lang.String alt) { - return (Insert) super.setAlt(alt); + public AttachNetworkEndpoints setAlt(java.lang.String alt) { + return (AttachNetworkEndpoints) super.setAlt(alt); } @Override - public Insert setCallback(java.lang.String callback) { - return (Insert) super.setCallback(callback); + public AttachNetworkEndpoints setCallback(java.lang.String callback) { + return (AttachNetworkEndpoints) super.setCallback(callback); } @Override - public Insert setFields(java.lang.String fields) { - return (Insert) super.setFields(fields); + public AttachNetworkEndpoints setFields(java.lang.String fields) { + return (AttachNetworkEndpoints) super.setFields(fields); } @Override - public Insert setKey(java.lang.String key) { - return (Insert) super.setKey(key); + public AttachNetworkEndpoints setKey(java.lang.String key) { + return (AttachNetworkEndpoints) super.setKey(key); } @Override - public Insert setOauthToken(java.lang.String oauthToken) { - return (Insert) super.setOauthToken(oauthToken); + public AttachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (AttachNetworkEndpoints) super.setOauthToken(oauthToken); } @Override - public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Insert) super.setPrettyPrint(prettyPrint); + public AttachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AttachNetworkEndpoints) super.setPrettyPrint(prettyPrint); } @Override - public Insert setQuotaUser(java.lang.String quotaUser) { - return (Insert) super.setQuotaUser(quotaUser); + public AttachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (AttachNetworkEndpoints) super.setQuotaUser(quotaUser); } @Override - public Insert setUploadType(java.lang.String uploadType) { - return (Insert) super.setUploadType(uploadType); + public AttachNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (AttachNetworkEndpoints) super.setUploadType(uploadType); } @Override - public Insert setUploadProtocol(java.lang.String uploadProtocol) { - return (Insert) super.setUploadProtocol(uploadProtocol); + public AttachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (AttachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); } @Override - public Insert setUserIp(java.lang.String userIp) { - return (Insert) super.setUserIp(userIp); + public AttachNetworkEndpoints setUserIp(java.lang.String userIp) { + return (AttachNetworkEndpoints) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -41660,7 +43097,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Insert 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 " + @@ -41670,6 +43107,29 @@ public Insert setProject(java.lang.String project) { return this; } + /** + * 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 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 where you are attaching network endpoints to. It + * should comply with RFC1035. + */ + 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 @@ -41714,131 +43174,128 @@ 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 AttachNetworkEndpoints 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 AttachNetworkEndpoints set(String parameterName, Object value) { + return (AttachNetworkEndpoints) super.set(parameterName, value); } } /** - * Retrieves the list of network endpoint groups that are located in 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 "globalNetworkEndpointGroups.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/networkEndpointGroups"; + 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 the list of network endpoint groups that are located in 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 "globalNetworkEndpointGroups.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.NetworkEndpointGroupList.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(); - } - - @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. */ @@ -41852,7 +43309,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 " + @@ -41863,321 +43320,128 @@ 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; + 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 Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; 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); + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Lists the network endpoints in the specified network endpoint group. + * Detach the network endpoint from the specified network endpoint group. * - * Create a request for the method "globalNetworkEndpointGroups.listNetworkEndpoints". + * 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 ListNetworkEndpoints#execute()} method to invoke the remote + * parameters, call the {@link DetachNetworkEndpoints#execute()} method to invoke the remote * operation. * * @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 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 ListNetworkEndpoints listNetworkEndpoints(java.lang.String project, java.lang.String networkEndpointGroup) throws java.io.IOException { - ListNetworkEndpoints result = new ListNetworkEndpoints(project, networkEndpointGroup); + 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 ListNetworkEndpoints extends ComputeRequest { + public class DetachNetworkEndpoints extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints"; + 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])?))"); /** - * Lists the network endpoints in the specified network endpoint group. + * Detach the network endpoint from the specified network endpoint group. * - * Create a request for the method "globalNetworkEndpointGroups.listNetworkEndpoints". + * 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 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 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 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 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 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 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(), @@ -42188,63 +43452,63 @@ protected ListNetworkEndpoints(java.lang.String project, java.lang.String networ } @Override - public ListNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { - return (ListNetworkEndpoints) super.set$Xgafv($Xgafv); + public DetachNetworkEndpoints set$Xgafv(java.lang.String $Xgafv) { + return (DetachNetworkEndpoints) super.set$Xgafv($Xgafv); } @Override - public ListNetworkEndpoints setAccessToken(java.lang.String accessToken) { - return (ListNetworkEndpoints) super.setAccessToken(accessToken); + public DetachNetworkEndpoints setAccessToken(java.lang.String accessToken) { + return (DetachNetworkEndpoints) super.setAccessToken(accessToken); } @Override - public ListNetworkEndpoints setAlt(java.lang.String alt) { - return (ListNetworkEndpoints) super.setAlt(alt); + public DetachNetworkEndpoints setAlt(java.lang.String alt) { + return (DetachNetworkEndpoints) super.setAlt(alt); } @Override - public ListNetworkEndpoints setCallback(java.lang.String callback) { - return (ListNetworkEndpoints) super.setCallback(callback); + public DetachNetworkEndpoints setCallback(java.lang.String callback) { + return (DetachNetworkEndpoints) super.setCallback(callback); } @Override - public ListNetworkEndpoints setFields(java.lang.String fields) { - return (ListNetworkEndpoints) super.setFields(fields); + public DetachNetworkEndpoints setFields(java.lang.String fields) { + return (DetachNetworkEndpoints) super.setFields(fields); } @Override - public ListNetworkEndpoints setKey(java.lang.String key) { - return (ListNetworkEndpoints) super.setKey(key); + public DetachNetworkEndpoints setKey(java.lang.String key) { + return (DetachNetworkEndpoints) super.setKey(key); } @Override - public ListNetworkEndpoints setOauthToken(java.lang.String oauthToken) { - return (ListNetworkEndpoints) super.setOauthToken(oauthToken); + public DetachNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (DetachNetworkEndpoints) super.setOauthToken(oauthToken); } @Override - public ListNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ListNetworkEndpoints) super.setPrettyPrint(prettyPrint); + public DetachNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (DetachNetworkEndpoints) super.setPrettyPrint(prettyPrint); } @Override - public ListNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { - return (ListNetworkEndpoints) super.setQuotaUser(quotaUser); + public DetachNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (DetachNetworkEndpoints) super.setQuotaUser(quotaUser); } @Override - public ListNetworkEndpoints setUploadType(java.lang.String uploadType) { - return (ListNetworkEndpoints) super.setUploadType(uploadType); + public DetachNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (DetachNetworkEndpoints) super.setUploadType(uploadType); } @Override - public ListNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { - return (ListNetworkEndpoints) super.setUploadProtocol(uploadProtocol); + public DetachNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (DetachNetworkEndpoints) super.setUploadProtocol(uploadProtocol); } @Override - public ListNetworkEndpoints setUserIp(java.lang.String userIp) { - return (ListNetworkEndpoints) super.setUserIp(userIp); + public DetachNetworkEndpoints setUserIp(java.lang.String userIp) { + return (DetachNetworkEndpoints) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -42258,7 +43522,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public ListNetworkEndpoints 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 " + @@ -42269,372 +43533,130 @@ public ListNetworkEndpoints setProject(java.lang.String project) { } /** - * 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 removing 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. + /** The name of the network endpoint group where you are removing 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. + * The name of the network endpoint group where you are removing network endpoints. It should + * comply with RFC1035. */ - public ListNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + public DetachNetworkEndpoints 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. - * - * For example, to filter for 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 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. + * An optional request ID to identify requests. Specify a unique 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 ListNetworkEndpoints 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 ListNetworkEndpoints 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 ListNetworkEndpoints setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; + public DetachNetworkEndpoints setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public ListNetworkEndpoints set(String parameterName, Object value) { - return (ListNetworkEndpoints) super.set(parameterName, value); + public DetachNetworkEndpoints set(String parameterName, Object value) { + return (DetachNetworkEndpoints) 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`. + * Returns the specified network endpoint group. * - * Create a request for the method "globalOperations.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Project ID for this request. + * @param networkEndpointGroup The name of the network endpoint group. 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 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 AggregatedList extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/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 an aggregated list of all operations. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Returns the specified network endpoint group. * - * Create a request for the method "globalOperations.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. - *

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

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

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

* * @param project Project ID for this request. + * @param networkEndpointGroup The name of the network endpoint group. 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.OperationAggregatedList.class); + 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(PROJECT_PATTERN.matcher(project).matches(), "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 @@ -42648,63 +43670,63 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public AggregatedList set$Xgafv(java.lang.String $Xgafv) { - return (AggregatedList) super.set$Xgafv($Xgafv); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); - } + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -42718,7 +43740,364 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 network endpoint group. It should comply with RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String networkEndpointGroup; + + /** The name of the network endpoint group. It should comply with RFC1035. + */ + 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); + } + } + /** + * 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 "globalNetworkEndpointGroups.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} + * @return the request + */ + 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 Insert extends ComputeRequest { + + 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])?))"); + + /** + * 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 "globalNetworkEndpointGroups.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.NetworkEndpointGroup} + * @since 1.13 + */ + 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(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 network endpoint groups that are located in the specified project. + * + * 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(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/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. + * + * 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(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 + 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 " + @@ -42859,45 +44238,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 @@ -42922,7 +44267,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; } @@ -42966,7 +44311,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; } @@ -42989,7 +44334,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; } @@ -43021,338 +44366,130 @@ 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 Operations resource. + * Lists the network endpoints in the specified network endpoint group. * - * Create a request for the method "globalOperations.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 operation Name of the Operations resource to delete, or its unique numeric - identifier. + * @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 operation) throws java.io.IOException { - Delete result = new Delete(project, operation); + 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/operations/{operation}"; + 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 OPERATION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - /** - * Deletes the specified Operations resource. + * Lists the network endpoints in the specified network endpoint group. * - * Create a request for the method "globalOperations.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 operation Name of the Operations resource to delete, or its unique numeric - identifier. + * @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 operation) { - super(Compute.this, "DELETE", REST_PATH, null, Void.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.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 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); - } - - @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 Operations resource to delete, or its unique numeric identifier. - */ - @com.google.api.client.util.Key - private java.lang.String operation; - - /** Name of the Operations resource to delete, or its unique numeric identifier. - */ - public java.lang.String getOperation() { - return operation; - } - - /** - * 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(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); - } - } - /** - * 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. - * - * Create a request for the method "globalOperations.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 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); + public ListNetworkEndpoints setFields(java.lang.String fields) { + return (ListNetworkEndpoints) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public ListNetworkEndpoints setKey(java.lang.String key) { + return (ListNetworkEndpoints) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public ListNetworkEndpoints setOauthToken(java.lang.String oauthToken) { + return (ListNetworkEndpoints) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public ListNetworkEndpoints setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListNetworkEndpoints) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public ListNetworkEndpoints setQuotaUser(java.lang.String quotaUser) { + return (ListNetworkEndpoints) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public ListNetworkEndpoints setUploadType(java.lang.String uploadType) { + return (ListNetworkEndpoints) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public ListNetworkEndpoints setUploadProtocol(java.lang.String uploadProtocol) { + return (ListNetworkEndpoints) super.setUploadProtocol(uploadProtocol); } @Override - public Get setUserIp(java.lang.String userIp) { - return (Get) super.setUserIp(userIp); + public ListNetworkEndpoints setUserIp(java.lang.String userIp) { + return (ListNetworkEndpoints) super.setUserIp(userIp); } /** Project ID for this request. */ @@ -43366,7 +44503,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Get 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 " + @@ -43377,170 +44514,25 @@ 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 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 operation; - - /** Name of the Operations resource to return, or its unique numeric identifier. - */ - public java.lang.String getOperation() { - return 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 from which you want to generate a list of included network + endpoints. 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; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public java.lang.String getNetworkEndpointGroup() { + return networkEndpointGroup; } - } - /** - * Retrieves a list of Operation resources contained within the specified project. - * - * 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 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/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 a list of Operation resources contained within the specified project. - * - * 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 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.OperationList.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - } - } - - @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. + * 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 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; + public ListNetworkEndpoints setNetworkEndpointGroup(java.lang.String networkEndpointGroup) { + this.networkEndpointGroup = networkEndpointGroup; return this; } @@ -43675,7 +44667,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public ListNetworkEndpoints setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -43704,7 +44696,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 ListNetworkEndpoints setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -43748,7 +44740,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public ListNetworkEndpoints setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -43771,7 +44763,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 ListNetworkEndpoints setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -43803,152 +44795,161 @@ 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 ListNetworkEndpoints 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 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 { + /** - * 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. + * Retrieves an aggregated list of all operations. * - * 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`. + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. * - * Create a request for the method "globalOperations.wait". + * 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 Wait#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 operation Name of the Operations resource to return, or its unique numeric - identifier. * @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 AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { + AggregatedList result = new AggregatedList(project); initialize(result); return result; } - public class Wait extends ComputeRequest { + public class AggregatedList extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/global/operations/{operation}/wait"; + 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 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. + * Retrieves an aggregated list of all operations. * - * 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`. + * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to + * `true`. * - * Create a request for the method "globalOperations.wait". + * 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 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 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 operation Name of the Operations resource to return, or its unique numeric - identifier. * @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 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.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 Wait set$Xgafv(java.lang.String $Xgafv) { - return (Wait) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Wait setAccessToken(java.lang.String accessToken) { - return (Wait) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Wait setAlt(java.lang.String alt) { - return (Wait) super.setAlt(alt); + public AggregatedList set$Xgafv(java.lang.String $Xgafv) { + return (AggregatedList) super.set$Xgafv($Xgafv); } @Override - public Wait setCallback(java.lang.String callback) { - return (Wait) super.setCallback(callback); + public AggregatedList setAccessToken(java.lang.String accessToken) { + return (AggregatedList) super.setAccessToken(accessToken); } @Override - public Wait setFields(java.lang.String fields) { - return (Wait) super.setFields(fields); + public AggregatedList setAlt(java.lang.String alt) { + return (AggregatedList) super.setAlt(alt); } @Override - public Wait setKey(java.lang.String key) { - return (Wait) super.setKey(key); + public AggregatedList setCallback(java.lang.String callback) { + return (AggregatedList) super.setCallback(callback); } @Override - public Wait setOauthToken(java.lang.String oauthToken) { - return (Wait) super.setOauthToken(oauthToken); + public AggregatedList setFields(java.lang.String fields) { + return (AggregatedList) super.setFields(fields); } @Override - public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Wait) super.setPrettyPrint(prettyPrint); + public AggregatedList setKey(java.lang.String key) { + return (AggregatedList) super.setKey(key); } @Override - public Wait setQuotaUser(java.lang.String quotaUser) { - return (Wait) super.setQuotaUser(quotaUser); + public AggregatedList setOauthToken(java.lang.String oauthToken) { + return (AggregatedList) super.setOauthToken(oauthToken); } @Override - public Wait setUploadType(java.lang.String uploadType) { - return (Wait) super.setUploadType(uploadType); + public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { + return (AggregatedList) super.setPrettyPrint(prettyPrint); } @Override - public Wait setUploadProtocol(java.lang.String uploadProtocol) { - return (Wait) super.setUploadProtocol(uploadProtocol); + public AggregatedList setQuotaUser(java.lang.String quotaUser) { + return (AggregatedList) super.setQuotaUser(quotaUser); } @Override - public Wait setUserIp(java.lang.String userIp) { - return (Wait) 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. */ @@ -43962,7 +44963,7 @@ public java.lang.String getProject() { } /** Project ID for this request. */ - public Wait 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 " + @@ -43973,79 +44974,356 @@ public Wait setProject(java.lang.String project) { } /** - * Name of the Operations resource to return, or its unique numeric identifier. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for 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 operation; + private java.lang.String filter; - /** Name of the Operations resource to return, or its unique numeric identifier. + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for 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 getOperation() { - return operation; + public java.lang.String getFilter() { + return filter; } /** - * Name of the Operations resource to return, or its unique numeric identifier. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for 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 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; return this; } - @Override - public Wait set(String parameterName, Object value) { - return (Wait) super.set(parameterName, value); + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + @com.google.api.client.util.Key + private java.lang.Boolean includeAllScopes; + + /** Indicates whether every visible scope for each scope type (zone, region, global) should be included + in the response. For new resource types added after this field, the flag has no effect as new + resource types will always include every visible scope for each scope type in response. For + resource types which predate this field, if this flag is omitted or false, only scopes of the scope + types where the resource type is expected to be found will be included. + */ + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; } - } - } + /** + * Indicates whether every visible scope for each scope type (zone, region, global) should be + * included in the response. For new resource types added after this field, the flag has no + * effect as new resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is omitted or false, + * only scopes of the scope types where the resource type is expected to be found will be + * included. + */ + public AggregatedList setIncludeAllScopes(java.lang.Boolean includeAllScopes) { + this.includeAllScopes = includeAllScopes; + return this; + } - /** - * An accessor for creating requests from the 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 maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` 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 "globalOrganizationOperations" collection of methods. - */ - public class GlobalOrganizationOperations { + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public AggregatedList setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public AggregatedList setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public AggregatedList setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public AggregatedList setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + @com.google.api.client.util.Key + private java.lang.Long serviceProjectNumber; + /** The Shared VPC service project id or service project number for which aggregated list request is + invoked for subnetworks list-usable api. + */ + public java.lang.Long getServiceProjectNumber() { + return serviceProjectNumber; + } + + /** + * The Shared VPC service project id or service project number for which aggregated list + * request is invoked for subnetworks list-usable api. + */ + public AggregatedList setServiceProjectNumber(java.lang.Long serviceProjectNumber) { + this.serviceProjectNumber = serviceProjectNumber; + return this; + } + + @Override + public AggregatedList set(String parameterName, Object value) { + return (AggregatedList) super.set(parameterName, value); + } + } /** * Deletes the specified Operations resource. * - * Create a request for the method "globalOrganizationOperations.delete". + * 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 Delete#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. * @return the request */ - public Delete delete(java.lang.String operation) throws java.io.IOException { - Delete result = new Delete(operation); + 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 Delete extends ComputeRequest { - private static final String REST_PATH = "locations/global/operations/{operation}"; + 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}"); @@ -44053,19 +45331,26 @@ public class Delete extends ComputeRequest { /** * Deletes the specified Operations resource. * - * Create a request for the method "globalOrganizationOperations.delete". + * 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 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 operation Name of the Operations resource to delete, or its unique numeric identifier. * @since 1.13 */ - protected Delete(java.lang.String operation) { + 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.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(), @@ -44134,6 +45419,27 @@ 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 Operations resource to delete, or its unique numeric identifier. */ @@ -44159,70 +45465,63 @@ public Delete setOperation(java.lang.String operation) { 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 Delete setParentId(java.lang.String parentId) { - this.parentId = parentId; - return this; - } - @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** - * Retrieves the specified Operations resource. Gets a list of operations by making a `list()` - * request. + * Retrieves the specified Operations resource. * - * Create a request for the method "globalOrganizationOperations.get". + * 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 operation Name of the Operations resource to return. Parent is derived from this - field. + * @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 operation) throws java.io.IOException { - Get result = new Get(operation); + 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 = "locations/global/operations/{operation}"; + 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. Gets a list of operations by making a `list()` - * request. + * Retrieves the specified Operations resource. * - * Create a request for the method "globalOrganizationOperations.get". + * Create a request for the method "globalOperations.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 operation Name of the Operations resource to return. Parent is derived from this - field. + * @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 operation) { + 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(), @@ -44301,20 +45600,41 @@ 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 Operations resource to return. Parent is derived from this field. + * Name of the Operations resource to return, or its unique numeric identifier. */ @com.google.api.client.util.Key private java.lang.String operation; - /** Name of the Operations resource to return. Parent is derived from this field. + /** Name of the Operations resource to return, or its unique numeric identifier. */ public java.lang.String getOperation() { return operation; } /** - * Name of the Operations resource to return. Parent is derived from this field. + * Name of the Operations resource to return, or its unique numeric identifier. */ public Get setOperation(java.lang.String operation) { if (!getSuppressPatternChecks()) { @@ -44326,61 +45646,56 @@ public Get setOperation(java.lang.String 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 parentId; - - /** Parent ID for this request. Not used. Parent is derived from resource_id. - */ - public java.lang.String getParentId() { - return parentId; - } - - /** 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Retrieves a list of Operation resources contained within the specified organization. + * Retrieves a list of Operation resources contained within the specified project. * - * Create a request for the method "globalOrganizationOperations.list". + * 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 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 { - private static final String REST_PATH = "locations/global/operations"; + 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 a list of Operation resources contained within the specified organization. + * Retrieves a list of Operation resources contained within the specified project. * - * Create a request for the method "globalOrganizationOperations.list". + * 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 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() { + 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(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-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 @@ -44453,6 +45768,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 @@ -44685,22 +46021,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. @@ -44738,83 +46058,263 @@ public List set(String parameterName, Object value) { return (List) 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`. + * + * 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 Wait#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 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 Wait extends ComputeRequest { + + 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}"); + + /** + * 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`. + * + * 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 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 operation Name of the Operations resource to return, or its unique numeric + identifier. + * @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); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 Wait set$Xgafv(java.lang.String $Xgafv) { + return (Wait) super.set$Xgafv($Xgafv); + } + + @Override + public Wait setAccessToken(java.lang.String accessToken) { + return (Wait) super.setAccessToken(accessToken); + } + + @Override + public Wait setAlt(java.lang.String alt) { + return (Wait) super.setAlt(alt); + } + + @Override + public Wait setCallback(java.lang.String callback) { + return (Wait) super.setCallback(callback); + } + + @Override + public Wait setFields(java.lang.String fields) { + return (Wait) super.setFields(fields); + } + + @Override + public Wait setKey(java.lang.String key) { + return (Wait) super.setKey(key); + } + + @Override + public Wait setOauthToken(java.lang.String oauthToken) { + return (Wait) super.setOauthToken(oauthToken); + } + + @Override + public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Wait) super.setPrettyPrint(prettyPrint); + } + + @Override + public Wait setQuotaUser(java.lang.String quotaUser) { + return (Wait) super.setQuotaUser(quotaUser); + } + + @Override + public Wait setUploadType(java.lang.String uploadType) { + return (Wait) super.setUploadType(uploadType); + } + + @Override + public Wait setUploadProtocol(java.lang.String uploadProtocol) { + return (Wait) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Wait setUserIp(java.lang.String userIp) { + return (Wait) 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 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 " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 Operations resource to return, or its unique numeric identifier. + */ + @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; + } + + /** + * Name of the Operations resource to return, or its unique numeric identifier. + */ + 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 Wait set(String parameterName, Object value) { + return (Wait) super.set(parameterName, value); + } + } } /** - * An accessor for creating requests from the GlobalPublicDelegatedPrefixes collection. + * An accessor for creating requests from the GlobalOrganizationOperations collection. * *

The typical use is:

*
    *   {@code Compute compute = new Compute(...);}
-   *   {@code Compute.GlobalPublicDelegatedPrefixes.List request = compute.globalPublicDelegatedPrefixes().list(parameters ...)}
+   *   {@code Compute.GlobalOrganizationOperations.List request = compute.globalOrganizationOperations().list(parameters ...)}
    * 
* * @return the resource collection */ - public GlobalPublicDelegatedPrefixes globalPublicDelegatedPrefixes() { - return new GlobalPublicDelegatedPrefixes(); + public GlobalOrganizationOperations globalOrganizationOperations() { + return new GlobalOrganizationOperations(); } /** - * The "globalPublicDelegatedPrefixes" collection of methods. + * The "globalOrganizationOperations" collection of methods. */ - public class GlobalPublicDelegatedPrefixes { + public class GlobalOrganizationOperations { /** - * Deletes the specified global PublicDelegatedPrefix. + * Deletes the specified Operations resource. * - * Create a request for the method "globalPublicDelegatedPrefixes.delete". + * 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 Delete#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to delete. + * @param operation Name of the Operations resource to delete, or its unique numeric + identifier. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String publicDelegatedPrefix) throws java.io.IOException { - Delete result = new Delete(project, publicDelegatedPrefix); + public Delete delete(java.lang.String operation) throws java.io.IOException { + Delete result = new Delete(operation); initialize(result); return result; } - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}"; + 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 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}"); /** - * Deletes the specified global PublicDelegatedPrefix. + * Deletes the specified Operations resource. * - * Create a request for the method "globalPublicDelegatedPrefixes.delete". + * 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 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 delete. + * @param operation Name of the Operations resource to delete, or its unique numeric + identifier. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String 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."); + 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(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}"); } } @@ -44879,94 +46379,44 @@ 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. + /** + * Name of the Operations resource to delete, or its unique numeric identifier. */ - 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 PublicDelegatedPrefix resource to delete. */ @com.google.api.client.util.Key - private java.lang.String publicDelegatedPrefix; + private java.lang.String operation; - /** Name of the PublicDelegatedPrefix resource to delete. + /** 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 delete. */ - public Delete 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. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ + /** Parent ID 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 parentId; - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). + /** Parent ID for this request. */ - public java.lang.String getRequestId() { - return requestId; + public java.lang.String getParentId() { + return 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 Delete setRequestId(java.lang.String requestId) { - this.requestId = requestId; + /** Parent ID for this request. */ + public Delete setParentId(java.lang.String parentId) { + this.parentId = parentId; return this; } @@ -44976,59 +46426,52 @@ public Delete set(String parameterName, Object value) { } } /** - * Returns the specified global PublicDelegatedPrefix resource. + * Retrieves the specified Operations resource. Gets a list of operations by making a `list()` + * request. * - * Create a request for the method "globalPublicDelegatedPrefixes.get". + * 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 Get#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to return. + * @param operation Name of the Operations resource to return. Parent is derived from this + field. * @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 Get get(java.lang.String operation) throws java.io.IOException { + Get result = new Get(operation); initialize(result); return result; } - public class Get extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}"; + 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 = "locations/global/operations/{operation}"; - 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}"); /** - * Returns the specified global PublicDelegatedPrefix resource. + * Retrieves the specified Operations resource. Gets a list of operations by making a `list()` + * request. * - * Create a request for the method "globalPublicDelegatedPrefixes.get". + * 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 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 publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to return. + * @param operation Name of the Operations resource to return. Parent is derived from this + field. * @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); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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."); + 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(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}"); } } @@ -45103,45 +46546,44 @@ 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 Get 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; } - /** Name of the PublicDelegatedPrefix resource to return. */ + /** Parent ID for this request. Not used. Parent is derived from resource_id. */ @com.google.api.client.util.Key - private java.lang.String publicDelegatedPrefix; + private java.lang.String parentId; - /** Name of the PublicDelegatedPrefix resource to return. + /** Parent ID for this request. Not used. Parent is derived from resource_id. */ - public java.lang.String getPublicDelegatedPrefix() { - return publicDelegatedPrefix; + public java.lang.String getParentId() { + return parentId; } - /** 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; + /** 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; } @@ -45151,236 +46593,39 @@ public Get set(String parameterName, Object value) { } } /** - * Creates a global PublicDelegatedPrefix in the specified project using the parameters that are - * included in the request. + * Retrieves a list of Operation resources contained within the specified organization. * - * Create a request for the method "globalPublicDelegatedPrefixes.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.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); + public List list() throws java.io.IOException { + List result = new List(); initialize(result); return result; } - public class List extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/global/publicDelegatedPrefixes"; + 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"; /** - * Lists the global PublicDelegatedPrefixes for a project. + * Retrieves a list of Operation resources contained within the specified organization. * - * Create a request for the method "globalPublicDelegatedPrefixes.list". + * 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 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])?))"); - } + protected List() { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OperationList.class); } @Override @@ -45453,27 +46698,6 @@ 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 @@ -45706,6 +46930,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. @@ -45743,28 +46983,48 @@ 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 { + /** - * 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 global PublicDelegatedPrefix. * - * Create a request for the method "globalPublicDelegatedPrefixes.patch". + * 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 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 publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to delete. * @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 publicDelegatedPrefix) throws java.io.IOException { + Delete result = new Delete(project, publicDelegatedPrefix); 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}"; @@ -45775,24 +47035,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 publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to patch. - * @param content the {@link com.google.api.services.compute.model.PublicDelegatedPrefix} + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to delete. * @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 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(), @@ -45808,63 +47065,63 @@ protected Patch(java.lang.String project, java.lang.String publicDelegatedPrefix } @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. */ @@ -45878,7 +47135,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 " + @@ -45888,18 +47145,18 @@ public Patch setProject(java.lang.String project) { return this; } - /** Name of the PublicDelegatedPrefix resource to patch. */ + /** Name of the PublicDelegatedPrefix resource to delete. */ @com.google.api.client.util.Key private java.lang.String publicDelegatedPrefix; - /** Name of the PublicDelegatedPrefix resource to patch. + /** Name of the PublicDelegatedPrefix resource to delete. */ public java.lang.String getPublicDelegatedPrefix() { return publicDelegatedPrefix; } - /** Name of the PublicDelegatedPrefix resource to patch. */ - public Patch setPublicDelegatedPrefix(java.lang.String 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 " + @@ -45953,90 +47210,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 Patch setRequestId(java.lang.String requestId) { + public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } - - } - - /** - * An accessor for creating requests from the 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`. + * Returns the specified global PublicDelegatedPrefix resource. * - * Create a request for the method "globalVmExtensionPolicies.aggregatedList". + * 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 AggregatedList#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param project Name of the project scoping this request. + * @param project Project ID for this request. + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to return. * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + public Get get(java.lang.String project, java.lang.String publicDelegatedPrefix) throws java.io.IOException { + Get result = new Get(project, publicDelegatedPrefix); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class Get extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/vmExtensionPolicies"; + 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}"); + /** - * 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`. + * Returns the specified global PublicDelegatedPrefix resource. * - * Create a request for the method "globalVmExtensionPolicies.aggregatedList". + * Create a request for the method "globalPublicDelegatedPrefixes.get". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link AggregatedList#execute()} method to invoke the remote operation. - *

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

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

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

* - * @param project Name of the project scoping this request. + * @param project Project ID for this request. + * @param publicDelegatedPrefix Name of the PublicDelegatedPrefix resource to return. * @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 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}"); + } } @Override @@ -46050,77 +47289,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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public AggregatedList setAccessToken(java.lang.String accessToken) { - return (AggregatedList) super.setAccessToken(accessToken); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public AggregatedList setAlt(java.lang.String alt) { - return (AggregatedList) super.setAlt(alt); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public AggregatedList setCallback(java.lang.String callback) { - return (AggregatedList) super.setCallback(callback); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public AggregatedList setFields(java.lang.String fields) { - return (AggregatedList) super.setFields(fields); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public AggregatedList setKey(java.lang.String key) { - return (AggregatedList) super.setKey(key); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public AggregatedList setOauthToken(java.lang.String oauthToken) { - return (AggregatedList) super.setOauthToken(oauthToken); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public AggregatedList setPrettyPrint(java.lang.Boolean prettyPrint) { - return (AggregatedList) super.setPrettyPrint(prettyPrint); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public AggregatedList setQuotaUser(java.lang.String quotaUser) { - return (AggregatedList) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public AggregatedList setUploadType(java.lang.String uploadType) { - return (AggregatedList) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public AggregatedList setUploadProtocol(java.lang.String uploadProtocol) { - return (AggregatedList) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } @Override - public AggregatedList setUserIp(java.lang.String userIp) { - return (AggregatedList) super.setUserIp(userIp); + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); } - /** 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 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 " + @@ -46130,22 +47369,372 @@ 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:* ``` - * + /** 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) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 @@ -46261,45 +47850,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 @@ -46324,7 +47879,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; } @@ -46368,7 +47923,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; } @@ -46391,7 +47946,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; } @@ -46423,157 +47978,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); } } /** - * 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. + * 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 "globalVmExtensionPolicies.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 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 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 globalVmExtensionPolicy, com.google.api.services.compute.model.GlobalVmExtensionPolicyRolloutOperationRolloutInput content) throws java.io.IOException { - Delete result = new Delete(project, globalVmExtensionPolicy, content); + 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}/global/vmExtensionPolicies/{globalVmExtensionPolicy}/delete"; + 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}"); + /** - * 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. + * 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 "globalVmExtensionPolicies.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 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 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 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 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.globalVmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(globalVmExtensionPolicy, "Required parameter globalVmExtensionPolicy 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(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 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. */ @@ -46587,7 +48123,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 " + @@ -46597,19 +48133,24 @@ public Delete setProject(java.lang.String project) { return this; } - /** Name of the global VM extension policy to purge scoped resources for. */ + /** Name of the PublicDelegatedPrefix resource to patch. */ @com.google.api.client.util.Key - private java.lang.String globalVmExtensionPolicy; + private java.lang.String publicDelegatedPrefix; - /** Name of the global VM extension policy to purge scoped resources for. + /** Name of the PublicDelegatedPrefix resource to patch. */ - public java.lang.String getGlobalVmExtensionPolicy() { - return globalVmExtensionPolicy; + public java.lang.String getPublicDelegatedPrefix() { + return publicDelegatedPrefix; } - /** Name of the global VM extension policy to purge scoped resources for. */ - public Delete setGlobalVmExtensionPolicy(java.lang.String globalVmExtensionPolicy) { - this.globalVmExtensionPolicy = globalVmExtensionPolicy; + /** Name of the PublicDelegatedPrefix resource to patch. */ + public Patch setPublicDelegatedPrefix(java.lang.String publicDelegatedPrefix) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PUBLIC_DELEGATED_PREFIX_PATTERN.matcher(publicDelegatedPrefix).matches(), + "Parameter publicDelegatedPrefix must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.publicDelegatedPrefix = publicDelegatedPrefix; return this; } @@ -46657,72 +48198,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 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 { + /** - * Gets details of a global VM extension policy. + * Retrieves the list of all VM Extension Policy resources available to the specified project. * - * Create a request for the method "globalVmExtensionPolicies.get". + * 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 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 globalVmExtensionPolicy Name of the GlobalVmExtensionPolicy resource to return. + * @param project Name of the project scoping this request. * @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 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/vmExtensionPolicies/{globalVmExtensionPolicy}"; + 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 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}"); - /** - * Gets details of a global VM extension policy. + * Retrieves the list of all VM Extension Policy resources available to the specified project. * - * Create a request for the method "globalVmExtensionPolicies.get". + * 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 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 globalVmExtensionPolicy Name of the GlobalVmExtensionPolicy resource to return. + * @param project Name of the project scoping this request. * @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); + 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.globalVmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(globalVmExtensionPolicy, "Required parameter globalVmExtensionPolicy 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 " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } } @Override @@ -46736,77 +48295,77 @@ 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. */ + /** 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 Get 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 " + @@ -46816,234 +48375,382 @@ public Get setProject(java.lang.String project) { return this; } - /** Name of the GlobalVmExtensionPolicy resource to return. */ - @com.google.api.client.util.Key - private java.lang.String globalVmExtensionPolicy; - - /** Name of the GlobalVmExtensionPolicy resource to return. - */ - public java.lang.String getGlobalVmExtensionPolicy() { - return globalVmExtensionPolicy; - } - - /** 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; - 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])?))"); - /** - * Retrieves details of a specific VM extension. + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that 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 "globalVmExtensionPolicies.getVmExtension". + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value 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 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.

+ * 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 extensionName - * @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 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."); - } - - @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 GetVmExtension set$Xgafv(java.lang.String $Xgafv) { - return (GetVmExtension) 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 GetVmExtension setAccessToken(java.lang.String accessToken) { - return (GetVmExtension) 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 GetVmExtension setAlt(java.lang.String alt) { - return (GetVmExtension) 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 GetVmExtension setCallback(java.lang.String callback) { - return (GetVmExtension) 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 GetVmExtension setFields(java.lang.String fields) { - return (GetVmExtension) 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 GetVmExtension setKey(java.lang.String key) { - return (GetVmExtension) 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 GetVmExtension setOauthToken(java.lang.String oauthToken) { - return (GetVmExtension) 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 GetVmExtension setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetVmExtension) 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 GetVmExtension setQuotaUser(java.lang.String quotaUser) { - return (GetVmExtension) 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 GetVmExtension setUploadType(java.lang.String uploadType) { - return (GetVmExtension) super.setUploadType(uploadType); - } + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. - @Override - public GetVmExtension setUploadProtocol(java.lang.String uploadProtocol) { - return (GetVmExtension) super.setUploadProtocol(uploadProtocol); + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; } - @Override - public GetVmExtension setUserIp(java.lang.String userIp) { - return (GetVmExtension) 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 AggregatedList setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - /** Project ID 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 project; + private java.lang.Boolean includeAllScopes; - /** Project ID 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 getProject() { - return project; + public java.lang.Boolean getIncludeAllScopes() { + return includeAllScopes; } - /** 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; + /** + * 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; } - @com.google.api.client.util.Key - private java.lang.String extensionName; - /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` 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.String getExtensionName() { - return extensionName; + public java.lang.Long getMaxResults() { + return maxResults; } - public GetVmExtension setExtensionName(java.lang.String extensionName) { - this.extensionName = extensionName; + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` 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 GetVmExtension set(String parameterName, Object value) { - return (GetVmExtension) super.set(parameterName, value); - } - } - /** - * Creates a new project level GlobalVmExtensionPolicy. - * - * 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 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.GlobalVmExtensionPolicy} + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use 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); + } + } + /** + * 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 "globalVmExtensionPolicies.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 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, com.google.api.services.compute.model.GlobalVmExtensionPolicy content) throws java.io.IOException { - Insert result = new Insert(project, 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}/global/vmExtensionPolicies"; + 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])?))"); /** - * Creates a new project level GlobalVmExtensionPolicy. + * 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 "globalVmExtensionPolicies.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 content the {@link com.google.api.services.compute.model.GlobalVmExtensionPolicy} + * @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, com.google.api.services.compute.model.GlobalVmExtensionPolicy 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()) { @@ -47051,66 +48758,67 @@ protected Insert(java.lang.String project, com.google.api.services.compute.model "Parameter project must conform to the pattern " + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); } + this.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. */ @@ -47124,7 +48832,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 " + @@ -47134,6 +48842,22 @@ public Insert 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 @@ -47178,61 +48902,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 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 global VM extension policies. + * Gets details of a global VM extension policy. * - * Create a request for the method "globalVmExtensionPolicies.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 globalVmExtensionPolicy Name of the GlobalVmExtensionPolicy resource to return. * @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 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}/global/vmExtensionPolicies"; + 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 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 global VM extension policies. + * Gets details of a global VM extension policy. * - * Create a request for the method "globalVmExtensionPolicies.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 globalVmExtensionPolicy Name of the GlobalVmExtensionPolicy resource to return. * @since 1.13 */ - protected List(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalVmExtensionPolicyList.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.globalVmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(globalVmExtensionPolicy, "Required parameter globalVmExtensionPolicy 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 " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } } @Override @@ -47246,63 +48981,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. */ @@ -47316,7 +49051,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 " + @@ -47326,97 +49061,607 @@ public List setProject(java.lang.String project) { return this; } + /** Name of the GlobalVmExtensionPolicy resource to return. */ + @com.google.api.client.util.Key + private java.lang.String globalVmExtensionPolicy; + + /** Name of the GlobalVmExtensionPolicy resource to return. + */ + public java.lang.String getGlobalVmExtensionPolicy() { + return globalVmExtensionPolicy; + } + + /** 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; + 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. + 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 AIP-160, your expression must specify the field name, an operator, and the value - 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 GetVmExtension set$Xgafv(java.lang.String $Xgafv) { + return (GetVmExtension) 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 GetVmExtension setAccessToken(java.lang.String accessToken) { + return (GetVmExtension) 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 GetVmExtension setAlt(java.lang.String alt) { + return (GetVmExtension) 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 GetVmExtension setCallback(java.lang.String callback) { + return (GetVmExtension) 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 GetVmExtension setFields(java.lang.String fields) { + return (GetVmExtension) 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 GetVmExtension setKey(java.lang.String key) { + return (GetVmExtension) super.setKey(key); + } - For example, to filter for instances that do not end with name "instance", you would use `name ne - .*instance`. + @Override + public GetVmExtension setOauthToken(java.lang.String oauthToken) { + return (GetVmExtension) super.setOauthToken(oauthToken); + } - You cannot combine constraints on multiple fields using regular expressions. - */ - public java.lang.String getFilter() { - return filter; + @Override + public GetVmExtension setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetVmExtension) super.setPrettyPrint(prettyPrint); } - /** - * A filter expression that filters resources listed in the response. Most Compute resources + @Override + public GetVmExtension setQuotaUser(java.lang.String quotaUser) { + return (GetVmExtension) super.setQuotaUser(quotaUser); + } + + @Override + public GetVmExtension setUploadType(java.lang.String uploadType) { + return (GetVmExtension) super.setUploadType(uploadType); + } + + @Override + public GetVmExtension setUploadProtocol(java.lang.String uploadProtocol) { + return (GetVmExtension) super.setUploadProtocol(uploadProtocol); + } + + @Override + public GetVmExtension setUserIp(java.lang.String userIp) { + return (GetVmExtension) 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 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; + } + + @com.google.api.client.util.Key + private java.lang.String extensionName; + + /** + + */ + public java.lang.String getExtensionName() { + return extensionName; + } + + public GetVmExtension setExtensionName(java.lang.String extensionName) { + this.extensionName = extensionName; + return this; + } + + @Override + public GetVmExtension set(String parameterName, Object value) { + return (GetVmExtension) super.set(parameterName, value); + } + } + /** + * Creates a new project level GlobalVmExtensionPolicy. + * + * 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 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.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); + initialize(result); + return result; + } + + public class Insert 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])?))"); + + /** + * Creates a new project level GlobalVmExtensionPolicy. + * + * 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 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.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])?))"); + } + } + + @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 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; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for 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. @@ -132974,204 +135219,3145 @@ public GetIamPolicy setRegion(java.lang.String region) { @com.google.api.client.util.Key private java.lang.String resource; - /** Name or id of the resource for this request. + /** 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 OrganizationGlobalVmExtensionPolicies collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.OrganizationGlobalVmExtensionPolicies.List request = compute.organizationGlobalVmExtensionPolicies().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public OrganizationGlobalVmExtensionPolicies organizationGlobalVmExtensionPolicies() { + return new OrganizationGlobalVmExtensionPolicies(); + } + + /** + * The "organizationGlobalVmExtensionPolicies" collection of methods. + */ + public class OrganizationGlobalVmExtensionPolicies { + + /** + * Retrieves the list of all organization level VM Extension Policy resources available to the + * specified organization. + * + * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to `true`. + * + * Create a request for the method "organizationGlobalVmExtensionPolicies.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 organization Organization ID for this request. + * @return the request + */ + public AggregatedList aggregatedList(java.lang.String organization) throws java.io.IOException { + AggregatedList result = new AggregatedList(organization); + initialize(result); + return result; + } + + public class AggregatedList extends ComputeRequest { + + private static final String REST_PATH = "{+organization}/aggregated/vmExtensionPolicies"; + + private final java.util.regex.Pattern ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); + + /** + * Retrieves the list of all organization level VM Extension Policy resources available to the + * specified organization. + * + * To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to + * `true`. + * + * Create a request for the method "organizationGlobalVmExtensionPolicies.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 organization Organization ID for this request. + * @since 1.13 + */ + protected AggregatedList(java.lang.String organization) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.OrganizationVmExtensionPolicyAggregatedListResponse.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 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); + } + + /** 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 AggregatedList 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 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.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 NodeTemplate resource in the specified project using the data included in the request. + * Purge scoped resources (zonal policies) from an organization level 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 "nodeTemplates.insert". + * Create a request for the method "organizationGlobalVmExtensionPolicies.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 The name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.NodeTemplate} + * @param organization Organization 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} * @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 Delete delete(java.lang.String organization, java.lang.String globalVmExtensionPolicy, com.google.api.services.compute.model.GlobalVmExtensionPolicyRolloutOperationRolloutInput content) throws java.io.IOException { + Delete result = new Delete(organization, globalVmExtensionPolicy, content); initialize(result); return result; } - public class Insert extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/regions/{region}/nodeTemplates"; + 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 = "{+organization}/global/vmExtensionPolicies/{globalVmExtensionPolicy}/delete"; - 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 ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); /** - * Creates a NodeTemplate resource in the specified project using the data included in the - * request. + * Purge scoped resources (zonal policies) from an organization level 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 "nodeTemplates.insert". + * Create a request for the method "organizationGlobalVmExtensionPolicies.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 The name of the region for this request. - * @param content the {@link com.google.api.services.compute.model.NodeTemplate} + * @param organization Organization 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} * @since 1.13 */ - protected Insert(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.NodeTemplate content) { + protected Delete(java.lang.String organization, 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()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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.organization = com.google.api.client.util.Preconditions.checkNotNull(organization, "Required parameter organization 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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); } + 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. */ + /** Organization ID for this request. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String organization; - /** Project ID for this request. + /** Organization ID for this request. */ - public java.lang.String getProject() { - return project; + public java.lang.String getOrganization() { + return organization; } - /** Project ID for this request. */ - public Insert setProject(java.lang.String project) { + /** Organization ID for this request. */ + public Delete setOrganization(java.lang.String organization) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); } - this.project = project; + this.organization = organization; return this; } - /** The 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; - /** The 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; } - /** 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; + /** Name of the global VM extension policy to purge scoped resources for. */ + public Delete setGlobalVmExtensionPolicy(java.lang.String globalVmExtensionPolicy) { + this.globalVmExtensionPolicy = globalVmExtensionPolicy; return this; } @@ -133219,71 +138405,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 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 a list of node templates available to the specified project. + * Gets details of an organization level GlobalVmExtensionPolicy. * - * Create a request for the method "nodeTemplates.list". + * Create a request for the method "organizationGlobalVmExtensionPolicies.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 The name of the region for this request. + * @param organization Organization ID 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 organization, java.lang.String globalVmExtensionPolicy) throws java.io.IOException { + Get result = new Get(organization, 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}/nodeTemplates"; + private static final String REST_PATH = "{+organization}/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 ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); - 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}"); /** - * Retrieves a list of node templates available to the specified project. + * Gets details of an organization level GlobalVmExtensionPolicy. * - * Create a request for the method "nodeTemplates.list". + * Create a request for the method "organizationGlobalVmExtensionPolicies.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 The name of the region for this request. + * @param organization Organization ID 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.NodeTemplateList.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + protected Get(java.lang.String organization, java.lang.String globalVmExtensionPolicy) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalVmExtensionPolicy.class); + this.organization = com.google.api.client.util.Preconditions.checkNotNull(organization, "Required parameter organization must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); } - 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}"); } } @@ -133298,850 +138484,502 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @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); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @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; + 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`) - */ - public List setMaxResults(java.lang.Long maxResults) { - this.maxResults = maxResults; - return this; + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) 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 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. + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) 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 Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - Currently, only sorting by `name` or `creationTimestamp desc` is supported. - */ - public java.lang.String getOrderBy() { - return orderBy; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) 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 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. - */ + /** Organization ID for this request. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String organization; - /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list - request to get the next page of results. + /** Organization ID for this request. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getOrganization() { + return organization; } - /** - * 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; + /** 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; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial 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 GlobalVmExtensionPolicy 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 globalVmExtensionPolicy; - For example, when partial 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 GlobalVmExtensionPolicy resource to return. */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; + public java.lang.String getGlobalVmExtensionPolicy() { + return globalVmExtensionPolicy; } - /** - * Opt-in for partial success behavior which provides partial results in case of failure. The - * default value is false. - * - * For example, when partial 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 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; 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. + * Retrieves details of a specific VM extension. * - * Create a request for the method "nodeTemplates.setIamPolicy". + * Create a request for the method "organizationGlobalVmExtensionPolicies.getVmExtension". * * 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 GetVmExtension#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 organization Organization ID for this request. + * @param extensionName * @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 GetVmExtension getVmExtension(java.lang.String organization, java.lang.String extensionName) throws java.io.IOException { + GetVmExtension result = new GetVmExtension(organization, extensionName); 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])?))"); + public class GetVmExtension extends ComputeRequest { - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private static final String REST_PATH = "{+organization}/global/vmExtensions/{extensionName}"; - 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 ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Retrieves details of a specific VM extension. * - * Create a request for the method "nodeTemplates.setIamPolicy". + * Create a request for the method "organizationGlobalVmExtensionPolicies.getVmExtension". * * 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 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 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 organization Organization ID for this request. + * @param extensionName * @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."); + protected GetVmExtension(java.lang.String organization, java.lang.String extensionName) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalVmExtension.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(RESOURCE_PATTERN.matcher(resource).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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); } + this.extensionName = com.google.api.client.util.Preconditions.checkNotNull(extensionName, "Required parameter extensionName must be specified."); } @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 GetVmExtension set$Xgafv(java.lang.String $Xgafv) { + return (GetVmExtension) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public GetVmExtension setAccessToken(java.lang.String accessToken) { + return (GetVmExtension) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public GetVmExtension setAlt(java.lang.String alt) { + return (GetVmExtension) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public GetVmExtension setCallback(java.lang.String callback) { + return (GetVmExtension) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public GetVmExtension setFields(java.lang.String fields) { + return (GetVmExtension) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public GetVmExtension setKey(java.lang.String key) { + return (GetVmExtension) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public GetVmExtension setOauthToken(java.lang.String oauthToken) { + return (GetVmExtension) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public GetVmExtension setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetVmExtension) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + public GetVmExtension setQuotaUser(java.lang.String quotaUser) { + return (GetVmExtension) super.setQuotaUser(quotaUser); } @Override - public SetIamPolicy setUserIp(java.lang.String userIp) { - return (SetIamPolicy) super.setUserIp(userIp); + public GetVmExtension setUploadType(java.lang.String uploadType) { + return (GetVmExtension) 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 GetVmExtension setUploadProtocol(java.lang.String uploadProtocol) { + return (GetVmExtension) super.setUploadProtocol(uploadProtocol); } - /** 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; + @Override + public GetVmExtension setUserIp(java.lang.String userIp) { + return (GetVmExtension) super.setUserIp(userIp); } - /** The name of the region for this request. */ + /** Organization ID for this request. */ @com.google.api.client.util.Key - private java.lang.String region; + private java.lang.String organization; - /** The name of the region for this request. + /** Organization ID for this request. */ - public java.lang.String getRegion() { - return region; + public java.lang.String getOrganization() { + return organization; } - /** The name of the region for this request. */ - public SetIamPolicy setRegion(java.lang.String region) { + /** Organization ID for this request. */ + public GetVmExtension setOrganization(java.lang.String organization) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); } - this.region = region; + this.organization = organization; return this; } - /** Name or id of the resource for this request. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String extensionName; + + /** - /** Name or id of the resource for this request. */ - public java.lang.String getResource() { - return resource; + public java.lang.String getExtensionName() { + return extensionName; } - /** 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; + public GetVmExtension setExtensionName(java.lang.String extensionName) { + this.extensionName = extensionName; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public GetVmExtension set(String parameterName, Object value) { + return (GetVmExtension) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. + * Creates a new organization level GlobalVmExtensionPolicy. * - * Create a request for the method "nodeTemplates.testIamPermissions". + * Create a request for the method "organizationGlobalVmExtensionPolicies.insert". * * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. * - * @param project Project ID for this request. - * @param 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 organization Organization ID for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalVmExtensionPolicy} * @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 Insert insert(java.lang.String organization, com.google.api.services.compute.model.GlobalVmExtensionPolicy content) throws java.io.IOException { + Insert result = new Insert(organization, 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])?))"); + public class Insert extends ComputeRequest { - private final java.util.regex.Pattern REGION_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + private static final String REST_PATH = "{+organization}/global/vmExtensionPolicies"; - 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 ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); /** - * Returns permissions that a caller has on the specified resource. + * Creates a new organization level GlobalVmExtensionPolicy. * - * Create a request for the method "nodeTemplates.testIamPermissions". + * Create a request for the method "organizationGlobalVmExtensionPolicies.insert". * * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

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

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

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

* - * @param project Project ID for this request. - * @param 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 organization Organization ID for this request. + * @param content the {@link com.google.api.services.compute.model.GlobalVmExtensionPolicy} * @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."); + protected Insert(java.lang.String organization, com.google.api.services.compute.model.GlobalVmExtensionPolicy 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(RESOURCE_PATTERN.matcher(resource).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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); } @Override - public TestIamPermissions setUserIp(java.lang.String userIp) { - return (TestIamPermissions) super.setUserIp(userIp); + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); } - /** Project ID for this request. */ + /** Organization ID for this request. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String organization; - /** Project ID for this request. + /** Organization ID for this request. */ - public java.lang.String getProject() { - return project; + public java.lang.String getOrganization() { + return organization; } - /** Project ID for this request. */ - public TestIamPermissions setProject(java.lang.String project) { + /** Organization ID for this request. */ + public Insert setOrganization(java.lang.String organization) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); } - this.project = project; + this.organization = organization; 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. + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). */ - public java.lang.String getRegion() { - return region; - } + @com.google.api.client.util.Key + private java.lang.String requestId; - /** 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; - } + /** An optional request ID to identify requests. Specify a unique 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; + public java.lang.String getRequestId() { + return requestId; } - /** Name or id of the resource for this request. */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - } - this.resource = resource; + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); } } - - } - - /** - * 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`. + * Lists organization level GlobalVmExtensionPolicies. * - * Create a request for the method "nodeTypes.aggregatedList". + * Create a request for the method "organizationGlobalVmExtensionPolicies.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 organization Organization ID for this request. * @return the request */ - public AggregatedList aggregatedList(java.lang.String project) throws java.io.IOException { - AggregatedList result = new AggregatedList(project); + public List list(java.lang.String organization) throws java.io.IOException { + List result = new List(organization); initialize(result); return result; } - public class AggregatedList extends ComputeRequest { + public class List extends ComputeRequest { - private static final String REST_PATH = "projects/{project}/aggregated/nodeTypes"; + private static final String REST_PATH = "{+organization}/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 ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); /** - * Retrieves an aggregated list of node types. - * - * To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to - * `true`. + * Lists organization level GlobalVmExtensionPolicies. * - * Create a request for the method "nodeTypes.aggregatedList". + * Create a request for the method "organizationGlobalVmExtensionPolicies.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 organization Organization ID for this request. * @since 1.13 */ - protected AggregatedList(java.lang.String project) { - super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.NodeTypeAggregatedList.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + protected List(java.lang.String organization) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalVmExtensionPolicyList.class); + this.organization = com.google.api.client.util.Preconditions.checkNotNull(organization, "Required parameter organization must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); } } @@ -134156,83 +138994,83 @@ 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. */ + /** Organization ID for this request. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String organization; - /** Project ID for this request. + /** Organization ID for this request. */ - public java.lang.String getProject() { - return project; + public java.lang.String getOrganization() { + return organization; } - /** Project ID for this request. */ - public AggregatedList setProject(java.lang.String project) { + /** Organization ID for this request. */ + public List setOrganization(java.lang.String organization) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), - "Parameter project must conform to the pattern " + - "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + com.google.api.client.util.Preconditions.checkArgument(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); } - this.project = project; + this.organization = organization; return this; } @@ -134316,514 +139154,240 @@ public AggregatedList setProject(java.lang.String project) { The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The literal value must match the entire field. - For example, to filter for 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); - } + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) 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 List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) 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 Get setUserIp(java.lang.String userIp) { - return (Get) 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 List 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 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; + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use 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; } - /** 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. + */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String pageToken; - /** 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; + public java.lang.String getPageToken() { + return pageToken; } - /** 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; + /** + * 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 node type 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 nodeType; + private java.lang.Boolean returnPartialSuccess; - /** Name of the node type 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 getNodeType() { - return nodeType; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } - /** 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; + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial 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); } } /** - * Retrieves a list of node types available to the specified project. + * Lists all VM extensions within an organization. This is a read-only API. * - * Create a request for the method "nodeTypes.list". + * Create a request for the method "organizationGlobalVmExtensionPolicies.listVmExtensions". * * 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 ListVmExtensions#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 organization Required. Organization ID 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 ListVmExtensions listVmExtensions(java.lang.String organization) throws java.io.IOException { + ListVmExtensions result = new ListVmExtensions(organization); initialize(result); return result; } - public class List extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/nodeTypes"; + public class ListVmExtensions 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 = "{+organization}/global/vmExtensions"; - 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 ORGANIZATION_PATTERN = + java.util.regex.Pattern.compile("organizations/[0-9]{0,20}"); /** - * Retrieves a list of node types available to the specified project. + * Lists all VM extensions within an organization. This is a read-only API. * - * Create a request for the method "nodeTypes.list". + * Create a request for the method "organizationGlobalVmExtensionPolicies.listVmExtensions". * * 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 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 zone The name of the zone for this request. + * @param organization Required. Organization ID 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."); + protected ListVmExtensions(java.lang.String organization) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.GlobalListVmExtensionsResponse.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(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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); } } @@ -134838,104 +139402,83 @@ 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 ListVmExtensions set$Xgafv(java.lang.String $Xgafv) { + return (ListVmExtensions) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public ListVmExtensions setAccessToken(java.lang.String accessToken) { + return (ListVmExtensions) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public ListVmExtensions setAlt(java.lang.String alt) { + return (ListVmExtensions) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public ListVmExtensions setCallback(java.lang.String callback) { + return (ListVmExtensions) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public ListVmExtensions setFields(java.lang.String fields) { + return (ListVmExtensions) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public ListVmExtensions setKey(java.lang.String key) { + return (ListVmExtensions) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public ListVmExtensions setOauthToken(java.lang.String oauthToken) { + return (ListVmExtensions) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public ListVmExtensions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListVmExtensions) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public ListVmExtensions setQuotaUser(java.lang.String quotaUser) { + return (ListVmExtensions) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public ListVmExtensions setUploadType(java.lang.String uploadType) { + return (ListVmExtensions) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public ListVmExtensions setUploadProtocol(java.lang.String uploadProtocol) { + return (ListVmExtensions) 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; + public ListVmExtensions setUserIp(java.lang.String userIp) { + return (ListVmExtensions) super.setUserIp(userIp); } - /** The name of the zone for this request. */ + /** Required. Organization ID for this request. */ @com.google.api.client.util.Key - private java.lang.String zone; + private java.lang.String organization; - /** The name of the zone for this request. + /** Required. Organization ID for this request. */ - public java.lang.String getZone() { - return zone; + public java.lang.String getOrganization() { + return organization; } - /** The name of the zone for this request. */ - public List setZone(java.lang.String zone) { + /** Required. Organization ID for this request. */ + public ListVmExtensions setOrganization(java.lang.String organization) { 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(ORGANIZATION_PATTERN.matcher(organization).matches(), + "Parameter organization must conform to the pattern " + + "organizations/[0-9]{0,20}"); } - this.zone = zone; + this.organization = organization; return this; } @@ -135070,7 +139613,7 @@ public java.lang.String getFilter() { * * You cannot combine constraints on multiple fields using regular expressions. */ - public List setFilter(java.lang.String filter) { + public ListVmExtensions setFilter(java.lang.String filter) { this.filter = filter; return this; } @@ -135099,7 +139642,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 ListVmExtensions setMaxResults(java.lang.Long maxResults) { this.maxResults = maxResults; return this; } @@ -135143,7 +139686,7 @@ public java.lang.String getOrderBy() { * * Currently, only sorting by `name` or `creationTimestamp desc` is supported. */ - public List setOrderBy(java.lang.String orderBy) { + public ListVmExtensions setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } @@ -135166,7 +139709,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 ListVmExtensions setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @@ -135198,158 +139741,126 @@ 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 ListVmExtensions 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 ListVmExtensions set(String parameterName, Object value) { + return (ListVmExtensions) 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. + * Updates an organization level GlobalVmExtensionPolicy. * - * Create a request for the method "orgVmExtensionPolicies.delete". + * Create a request for the method "organizationGlobalVmExtensionPolicies.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 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. + * @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 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); + public Update update(java.lang.String organization, java.lang.String globalVmExtensionPolicy, com.google.api.services.compute.model.GlobalVmExtensionPolicy content) throws java.io.IOException { + Update result = new Update(organization, globalVmExtensionPolicy, content); initialize(result); return result; } - public class Delete extends ComputeRequest { + public class Update extends ComputeRequest { - private static final String REST_PATH = "{+organization}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}"; + private static final String REST_PATH = "{+organization}/global/vmExtensionPolicies/{globalVmExtensionPolicy}"; 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. + * Updates an organization level GlobalVmExtensionPolicy. * - * Create a request for the method "orgVmExtensionPolicies.delete". + * Create a request for the method "organizationGlobalVmExtensionPolicies.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 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. + * @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 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); + protected Update(java.lang.String organization, 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.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."); + this.globalVmExtensionPolicy = com.google.api.client.util.Preconditions.checkNotNull(globalVmExtensionPolicy, "Required parameter globalVmExtensionPolicy 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); } /** Organization ID for this request. */ @@ -135363,7 +139874,7 @@ public java.lang.String getOrganization() { } /** Organization ID for this request. */ - public Delete 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 " + @@ -135373,40 +139884,19 @@ public Delete 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 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. */ + /** Name of the global VM extension policy to update. */ @com.google.api.client.util.Key - private java.lang.String vmExtensionPolicy; + private java.lang.String globalVmExtensionPolicy; - /** Name of the zone VM extension policy to delete. + /** Name of the global VM extension policy to update. */ - public java.lang.String getVmExtensionPolicy() { - return vmExtensionPolicy; + public java.lang.String getGlobalVmExtensionPolicy() { + return globalVmExtensionPolicy; } - /** Name of the zone VM extension policy to delete. */ - public Delete setVmExtensionPolicy(java.lang.String vmExtensionPolicy) { - this.vmExtensionPolicy = vmExtensionPolicy; + /** Name of the global VM extension policy to update. */ + public Update setGlobalVmExtensionPolicy(java.lang.String globalVmExtensionPolicy) { + this.globalVmExtensionPolicy = globalVmExtensionPolicy; return this; } @@ -135454,14 +139944,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 Delete setRequestId(java.lang.String requestId) { + public Update 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 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/Commitment.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Commitment.java index eb0f3c32b4e..4026bbbbe98 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Commitment.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Commitment.java @@ -143,6 +143,14 @@ public final class Commitment extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private CommitmentParams params; + /** + * Optional. Used when category is PERSISTENT_DISK. Each entry in the list represents a commitment + * to a specific Persistent Disk product type and dimension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List persistentDiskResources; + /** * The minimum time duration that you commit to purchasing resources. The plan that you choose * determines the preset term length of the commitment (which is 1 year or 3 years) and affects @@ -512,6 +520,25 @@ public Commitment setParams(CommitmentParams params) { return this; } + /** + * Optional. Used when category is PERSISTENT_DISK. Each entry in the list represents a commitment + * to a specific Persistent Disk product type and dimension. + * @return value or {@code null} for none + */ + public java.util.List getPersistentDiskResources() { + return persistentDiskResources; + } + + /** + * Optional. Used when category is PERSISTENT_DISK. Each entry in the list represents a commitment + * to a specific Persistent Disk product type and dimension. + * @param persistentDiskResources persistentDiskResources or {@code null} for none + */ + public Commitment setPersistentDiskResources(java.util.List persistentDiskResources) { + this.persistentDiskResources = persistentDiskResources; + return this; + } + /** * The minimum time duration that you commit to purchasing resources. The plan that you choose * determines the preset term length of the commitment (which is 1 year or 3 years) and affects diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FolderVmExtensionPolicyAggregatedListResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FolderVmExtensionPolicyAggregatedListResponse.java new file mode 100644 index 00000000000..ff5f08e669a --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FolderVmExtensionPolicyAggregatedListResponse.java @@ -0,0 +1,425 @@ +/* + * 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 FolderVmExtensionPolicyAggregatedListResponse. + * + *

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 FolderVmExtensionPolicyAggregatedListResponse 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 VmExtensionPoliciesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. + * Alwayscompute#FolderVmExtensionPolicyAggregatedList for lists of VmExtensionPolicies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] Unreachable resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + + /** + * [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public FolderVmExtensionPolicyAggregatedListResponse 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 FolderVmExtensionPolicyAggregatedListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of VmExtensionPoliciesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of VmExtensionPoliciesScopedList resources. + * @param items items or {@code null} for none + */ + public FolderVmExtensionPolicyAggregatedListResponse setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. + * Alwayscompute#FolderVmExtensionPolicyAggregatedList for lists of VmExtensionPolicies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. + * Alwayscompute#FolderVmExtensionPolicyAggregatedList for lists of VmExtensionPolicies. + * @param kind kind or {@code null} for none + */ + public FolderVmExtensionPolicyAggregatedListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public FolderVmExtensionPolicyAggregatedListResponse 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 FolderVmExtensionPolicyAggregatedListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. + * @param unreachables unreachables or {@code null} for none + */ + public FolderVmExtensionPolicyAggregatedListResponse 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 FolderVmExtensionPolicyAggregatedListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public FolderVmExtensionPolicyAggregatedListResponse set(String fieldName, Object value) { + return (FolderVmExtensionPolicyAggregatedListResponse) super.set(fieldName, value); + } + + @Override + public FolderVmExtensionPolicyAggregatedListResponse clone() { + return (FolderVmExtensionPolicyAggregatedListResponse) 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 FolderVmExtensionPolicyAggregatedListResponseWarningData. + */ + 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/GlobalVmExtension.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtension.java index a13fc0abe95..8e86717c994 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtension.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtension.java @@ -29,18 +29,124 @@ @SuppressWarnings("javadoc") public final class GlobalVmExtension extends com.google.api.client.json.GenericJson { + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * Output only. [Output Only] An optional textual description of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger id; + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#globalVmExtension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + /** * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; + /** + * Output only. [Output Only] Server-defined URL for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + /** * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List versions; + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public GlobalVmExtension setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * Output only. [Output Only] An optional textual description of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Output only. [Output Only] An optional textual description of the resource. + * @param description description or {@code null} for none + */ + public GlobalVmExtension setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. [Output Only] The unique identifier for the resource. This identifier is defined + * by the server. + * @param id id or {@code null} for none + */ + public GlobalVmExtension setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#globalVmExtension. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#globalVmExtension. + * @param kind kind or {@code null} for none + */ + public GlobalVmExtension setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + /** * @return value or {@code null} for none */ @@ -56,6 +162,23 @@ public GlobalVmExtension setName(java.lang.String name) { return this; } + /** + * Output only. [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public GlobalVmExtension setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + /** * @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/HaController.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaController.java index f08342a3d02..04c40c09030 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaController.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HaController.java @@ -55,7 +55,8 @@ public final class HaController extends com.google.api.client.json.GenericJson { /** * Capacity guarantee settings for the event of a failover. This determines whether capacity is - * guaranteed to be available in the zones used by the HaController. + * guaranteed to be available in the zones used by the HaController. Deprecated: This field is + * deprecated and has no effect. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -216,7 +217,8 @@ public HaController setDescription(java.lang.String description) { /** * Capacity guarantee settings for the event of a failover. This determines whether capacity is - * guaranteed to be available in the zones used by the HaController. + * guaranteed to be available in the zones used by the HaController. Deprecated: This field is + * deprecated and has no effect. * @return value or {@code null} for none */ public java.lang.String getFailoverCapacity() { @@ -225,7 +227,8 @@ public java.lang.String getFailoverCapacity() { /** * Capacity guarantee settings for the event of a failover. This determines whether capacity is - * guaranteed to be available in the zones used by the HaController. + * guaranteed to be available in the zones used by the HaController. Deprecated: This field is + * deprecated and has no effect. * @param failoverCapacity failoverCapacity or {@code null} for none */ public HaController setFailoverCapacity(java.lang.String failoverCapacity) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Interconnect.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Interconnect.java index ffc13d222d2..40b0e7f2468 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Interconnect.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Interconnect.java @@ -100,8 +100,8 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * Output only. [Output Only] URL of the InterconnectLocation object that represents where this - * connection is to be provisioned. By default it will be the same as the location field. + * Output only. URL of the InterconnectLocation object that represents where this connection is to + * be provisioned. By default it will be the same as the location field. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -524,8 +524,8 @@ public Interconnect setDescription(java.lang.String description) { } /** - * Output only. [Output Only] URL of the InterconnectLocation object that represents where this - * connection is to be provisioned. By default it will be the same as the location field. + * Output only. URL of the InterconnectLocation object that represents where this connection is to + * be provisioned. By default it will be the same as the location field. * @return value or {@code null} for none */ public java.lang.String getEffectiveLocation() { @@ -533,8 +533,8 @@ public java.lang.String getEffectiveLocation() { } /** - * Output only. [Output Only] URL of the InterconnectLocation object that represents where this - * connection is to be provisioned. By default it will be the same as the location field. + * Output only. URL of the InterconnectLocation object that represents where this connection is to + * be provisioned. By default it will be the same as the location field. * @param effectiveLocation effectiveLocation or {@code null} for none */ public Interconnect setEffectiveLocation(java.lang.String effectiveLocation) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OrganizationVmExtensionPolicyAggregatedListResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OrganizationVmExtensionPolicyAggregatedListResponse.java new file mode 100644 index 00000000000..7457906e536 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OrganizationVmExtensionPolicyAggregatedListResponse.java @@ -0,0 +1,425 @@ +/* + * 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 OrganizationVmExtensionPolicyAggregatedListResponse. + * + *

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 OrganizationVmExtensionPolicyAggregatedListResponse 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 VmExtensionPoliciesScopedList resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map items; + + /** + * Output only. [Output Only] Type of resource. + * Alwayscompute#OrganizationVmExtensionPolicyAggregatedList for lists of VmExtensionPolicies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] Unreachable resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + + /** + * [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public OrganizationVmExtensionPolicyAggregatedListResponse 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 OrganizationVmExtensionPolicyAggregatedListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of VmExtensionPoliciesScopedList resources. + * @return value or {@code null} for none + */ + public java.util.Map getItems() { + return items; + } + + /** + * A list of VmExtensionPoliciesScopedList resources. + * @param items items or {@code null} for none + */ + public OrganizationVmExtensionPolicyAggregatedListResponse setItems(java.util.Map items) { + this.items = items; + return this; + } + + /** + * Output only. [Output Only] Type of resource. + * Alwayscompute#OrganizationVmExtensionPolicyAggregatedList for lists of VmExtensionPolicies. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. + * Alwayscompute#OrganizationVmExtensionPolicyAggregatedList for lists of VmExtensionPolicies. + * @param kind kind or {@code null} for none + */ + public OrganizationVmExtensionPolicyAggregatedListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public OrganizationVmExtensionPolicyAggregatedListResponse 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 OrganizationVmExtensionPolicyAggregatedListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. + * @param unreachables unreachables or {@code null} for none + */ + public OrganizationVmExtensionPolicyAggregatedListResponse 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 OrganizationVmExtensionPolicyAggregatedListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public OrganizationVmExtensionPolicyAggregatedListResponse set(String fieldName, Object value) { + return (OrganizationVmExtensionPolicyAggregatedListResponse) super.set(fieldName, value); + } + + @Override + public OrganizationVmExtensionPolicyAggregatedListResponse clone() { + return (OrganizationVmExtensionPolicyAggregatedListResponse) 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 OrganizationVmExtensionPolicyAggregatedListResponseWarningData. + */ + 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/PersistentDiskResourceCommitment.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PersistentDiskResourceCommitment.java new file mode 100644 index 00000000000..dd36ac44a24 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PersistentDiskResourceCommitment.java @@ -0,0 +1,117 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Commitment for a particular persistent disk resource. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PersistentDiskResourceCommitment extends com.google.api.client.json.GenericJson { + + /** + * Required. The amount of the resource to commit to, in GiB. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long amount; + + /** + * The specific dimension of the product for this amount. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dimensionType; + + /** + * The PD product being committed to. All entries in a Commitment.persistent_disk_resources list + * must have the same product_type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String productType; + + /** + * Required. The amount of the resource to commit to, in GiB. + * @return value or {@code null} for none + */ + public java.lang.Long getAmount() { + return amount; + } + + /** + * Required. The amount of the resource to commit to, in GiB. + * @param amount amount or {@code null} for none + */ + public PersistentDiskResourceCommitment setAmount(java.lang.Long amount) { + this.amount = amount; + return this; + } + + /** + * The specific dimension of the product for this amount. + * @return value or {@code null} for none + */ + public java.lang.String getDimensionType() { + return dimensionType; + } + + /** + * The specific dimension of the product for this amount. + * @param dimensionType dimensionType or {@code null} for none + */ + public PersistentDiskResourceCommitment setDimensionType(java.lang.String dimensionType) { + this.dimensionType = dimensionType; + return this; + } + + /** + * The PD product being committed to. All entries in a Commitment.persistent_disk_resources list + * must have the same product_type. + * @return value or {@code null} for none + */ + public java.lang.String getProductType() { + return productType; + } + + /** + * The PD product being committed to. All entries in a Commitment.persistent_disk_resources list + * must have the same product_type. + * @param productType productType or {@code null} for none + */ + public PersistentDiskResourceCommitment setProductType(java.lang.String productType) { + this.productType = productType; + return this; + } + + @Override + public PersistentDiskResourceCommitment set(String fieldName, Object value) { + return (PersistentDiskResourceCommitment) super.set(fieldName, value); + } + + @Override + public PersistentDiskResourceCommitment clone() { + return (PersistentDiskResourceCommitment) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotOriginalSnapshot.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotOriginalSnapshot.java index e7976e0d973..d3ea0115c54 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotOriginalSnapshot.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RecoverableSnapshotOriginalSnapshot.java @@ -44,13 +44,6 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl @com.google.api.client.util.Key private java.lang.Boolean autoCreated; - /** - * ResourceKey of the resource policy or flow which created this auto snapshot - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String autoCreatedBy; - /** * Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name * must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for @@ -112,13 +105,6 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl @com.google.api.client.util.Key private java.lang.Boolean enableConfidentialCompute; - /** - * Indicates the created snapshot is a full snapshot. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean full; - /** * Output only. [Output Only] A list of features to enable on the guest operating system. * Applicable only for bootable images. Read Enabling guest operating system features to see a @@ -348,10 +334,11 @@ public final class RecoverableSnapshotOriginalSnapshot extends com.google.api.cl private java.lang.Long storageBytes; /** - * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is - * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, - * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the - * snapshot is up-to-date. + * Output only. [Deprecated] Instead, check the storageBytes field. After snapshot creation, the + * storageBytesStatus field is alwaysUP_TO_DATE. [Output Only] An indicator whether storageBytes + * is in a stable state or it is being adjusted as a result of shared storage reallocation. This + * status can either be unset, meaning the snapshot is being created, or UP_TO_DATE, meaning the + * size of the snapshot is up-to-date. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -400,23 +387,6 @@ public RecoverableSnapshotOriginalSnapshot setAutoCreated(java.lang.Boolean auto return this; } - /** - * ResourceKey of the resource policy or flow which created this auto snapshot - * @return value or {@code null} for none - */ - public java.lang.String getAutoCreatedBy() { - return autoCreatedBy; - } - - /** - * ResourceKey of the resource policy or flow which created this auto snapshot - * @param autoCreatedBy autoCreatedBy or {@code null} for none - */ - public RecoverableSnapshotOriginalSnapshot setAutoCreatedBy(java.lang.String autoCreatedBy) { - this.autoCreatedBy = autoCreatedBy; - return this; - } - /** * Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name * must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for @@ -563,23 +533,6 @@ public RecoverableSnapshotOriginalSnapshot setEnableConfidentialCompute(java.lan return this; } - /** - * Indicates the created snapshot is a full snapshot. - * @return value or {@code null} for none - */ - public java.lang.Boolean getFull() { - return full; - } - - /** - * Indicates the created snapshot is a full snapshot. - * @param full full or {@code null} for none - */ - public RecoverableSnapshotOriginalSnapshot setFull(java.lang.Boolean full) { - this.full = full; - return this; - } - /** * Output only. [Output Only] A list of features to enable on the guest operating system. * Applicable only for bootable images. Read Enabling guest operating system features to see a @@ -1146,10 +1099,11 @@ public RecoverableSnapshotOriginalSnapshot setStorageBytes(java.lang.Long storag } /** - * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is - * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, - * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the - * snapshot is up-to-date. + * Output only. [Deprecated] Instead, check the storageBytes field. After snapshot creation, the + * storageBytesStatus field is alwaysUP_TO_DATE. [Output Only] An indicator whether storageBytes + * is in a stable state or it is being adjusted as a result of shared storage reallocation. This + * status can either be unset, meaning the snapshot is being created, or UP_TO_DATE, meaning the + * size of the snapshot is up-to-date. * @return value or {@code null} for none */ public java.lang.String getStorageBytesStatus() { @@ -1157,10 +1111,11 @@ public java.lang.String getStorageBytesStatus() { } /** - * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is - * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, - * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the - * snapshot is up-to-date. + * Output only. [Deprecated] Instead, check the storageBytes field. After snapshot creation, the + * storageBytesStatus field is alwaysUP_TO_DATE. [Output Only] An indicator whether storageBytes + * is in a stable state or it is being adjusted as a result of shared storage reallocation. This + * status can either be unset, meaning the snapshot is being created, or UP_TO_DATE, meaning the + * size of the snapshot is up-to-date. * @param storageBytesStatus storageBytesStatus or {@code null} for none */ public RecoverableSnapshotOriginalSnapshot setStorageBytesStatus(java.lang.String storageBytesStatus) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegexRewrite.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegexRewrite.java new file mode 100644 index 00000000000..304469dd16c --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegexRewrite.java @@ -0,0 +1,111 @@ +/* + * 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 spec for modifying the path using a regular expression. + * + *

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 RegexRewrite extends com.google.api.client.json.GenericJson { + + /** + * The regular expression used to match against the URL path. It uses RE2 syntax with the + * following constraints: - Any single character operators - Groups are allowed + * to have only submatch operator inside - Groups are allowed only without any char + * repetition, e.g. .* - Any char repetition, e.g. .*, is only allowed to be used + * in a single regex together with: - Empty string operators + * - Other repetitions - Ranges - Repetitions of ranges + * - Ranges are only allowed to have: - Character range - + * Digits range - Symbols listed in characters allowed for ranges + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pathPattern; + + /** + * Required when path pattern is specified. Used to rewrite matching parts of the path. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pathSubstitution; + + /** + * The regular expression used to match against the URL path. It uses RE2 syntax with the + * following constraints: - Any single character operators - Groups are allowed + * to have only submatch operator inside - Groups are allowed only without any char + * repetition, e.g. .* - Any char repetition, e.g. .*, is only allowed to be used + * in a single regex together with: - Empty string operators + * - Other repetitions - Ranges - Repetitions of ranges + * - Ranges are only allowed to have: - Character range - + * Digits range - Symbols listed in characters allowed for ranges + * @return value or {@code null} for none + */ + public java.lang.String getPathPattern() { + return pathPattern; + } + + /** + * The regular expression used to match against the URL path. It uses RE2 syntax with the + * following constraints: - Any single character operators - Groups are allowed + * to have only submatch operator inside - Groups are allowed only without any char + * repetition, e.g. .* - Any char repetition, e.g. .*, is only allowed to be used + * in a single regex together with: - Empty string operators + * - Other repetitions - Ranges - Repetitions of ranges + * - Ranges are only allowed to have: - Character range - + * Digits range - Symbols listed in characters allowed for ranges + * @param pathPattern pathPattern or {@code null} for none + */ + public RegexRewrite setPathPattern(java.lang.String pathPattern) { + this.pathPattern = pathPattern; + return this; + } + + /** + * Required when path pattern is specified. Used to rewrite matching parts of the path. + * @return value or {@code null} for none + */ + public java.lang.String getPathSubstitution() { + return pathSubstitution; + } + + /** + * Required when path pattern is specified. Used to rewrite matching parts of the path. + * @param pathSubstitution pathSubstitution or {@code null} for none + */ + public RegexRewrite setPathSubstitution(java.lang.String pathSubstitution) { + this.pathSubstitution = pathSubstitution; + return this; + } + + @Override + public RegexRewrite set(String fieldName, Object value) { + return (RegexRewrite) super.set(fieldName, value); + } + + @Override + public RegexRewrite clone() { + return (RegexRewrite) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Snapshot.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Snapshot.java index 30d1c1645e8..b0893fa3415 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Snapshot.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Snapshot.java @@ -385,10 +385,11 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.Long storageBytes; /** - * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is - * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, - * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the - * snapshot is up-to-date. + * Output only. [Deprecated] Instead, check the storageBytes field. After snapshot creation, the + * storageBytesStatus field is alwaysUP_TO_DATE. [Output Only] An indicator whether storageBytes + * is in a stable state or it is being adjusted as a result of shared storage reallocation. This + * status can either be unset, meaning the snapshot is being created, or UP_TO_DATE, meaning the + * size of the snapshot is up-to-date. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -1260,10 +1261,11 @@ public Snapshot setStorageBytes(java.lang.Long storageBytes) { } /** - * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is - * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, - * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the - * snapshot is up-to-date. + * Output only. [Deprecated] Instead, check the storageBytes field. After snapshot creation, the + * storageBytesStatus field is alwaysUP_TO_DATE. [Output Only] An indicator whether storageBytes + * is in a stable state or it is being adjusted as a result of shared storage reallocation. This + * status can either be unset, meaning the snapshot is being created, or UP_TO_DATE, meaning the + * size of the snapshot is up-to-date. * @return value or {@code null} for none */ public java.lang.String getStorageBytesStatus() { @@ -1271,10 +1273,11 @@ public java.lang.String getStorageBytesStatus() { } /** - * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is - * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, - * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the - * snapshot is up-to-date. + * Output only. [Deprecated] Instead, check the storageBytes field. After snapshot creation, the + * storageBytesStatus field is alwaysUP_TO_DATE. [Output Only] An indicator whether storageBytes + * is in a stable state or it is being adjusted as a result of shared storage reallocation. This + * status can either be unset, meaning the snapshot is being created, or UP_TO_DATE, meaning the + * size of the snapshot is up-to-date. * @param storageBytesStatus storageBytesStatus or {@code null} for none */ public Snapshot setStorageBytesStatus(java.lang.String storageBytesStatus) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlRewrite.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlRewrite.java index 366b4052086..dd2f055a789 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlRewrite.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/UrlRewrite.java @@ -72,6 +72,14 @@ public final class UrlRewrite extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String pathTemplateRewrite; + /** + * The regex rewrite to be applied to the URL. Only one ofpathPrefixRewrite, pathTemplateRewrite, + * orregexRewrite may be specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RegexRewrite regexRewrite; + /** * Before forwarding the request to the selected service, the request's host header is replaced * with contents of hostRewrite. @@ -167,6 +175,25 @@ public UrlRewrite setPathTemplateRewrite(java.lang.String pathTemplateRewrite) { return this; } + /** + * The regex rewrite to be applied to the URL. Only one ofpathPrefixRewrite, pathTemplateRewrite, + * orregexRewrite may be specified. + * @return value or {@code null} for none + */ + public RegexRewrite getRegexRewrite() { + return regexRewrite; + } + + /** + * The regex rewrite to be applied to the URL. Only one ofpathPrefixRewrite, pathTemplateRewrite, + * orregexRewrite may be specified. + * @param regexRewrite regexRewrite or {@code null} for none + */ + public UrlRewrite setRegexRewrite(RegexRewrite regexRewrite) { + this.regexRewrite = regexRewrite; + return this; + } + @Override public UrlRewrite set(String fieldName, Object value) { return (UrlRewrite) 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 fc29cae3228..d5ad37dbb7c 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-rev20260520-2.0.0 - Compute Engine API alpha-rev20260520-2.0.0 + alpha-rev20260530-2.0.0 + Compute Engine API alpha-rev20260530-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 5ef25cf0443..cca829aac70 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-rev20260520-2.0.0 + alpha-rev20260530-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:alpha-rev20260520-2.0.0' + implementation 'com.google.apis:google-api-services-compute:alpha-rev20260530-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 d4dea6fe705..42fa3a28507 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-rev20260520-2.0.0 + beta-rev20260530-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:beta-rev20260520-2.0.0' + implementation 'com.google.apis:google-api-services-compute:beta-rev20260530-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 8d7df2dece4..90cd2ab7038 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 @@ -46112,6 +46112,944 @@ public Update set(String parameterName, Object 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. + * + * 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 Get#execute()} method to invoke the remote operation. + * + * @param project The project ID for this request. + * @param zone The name of the zone for this request, formatted as RFC1035. + * @param 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 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 Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/zones/{zone}/{association}/hosts/{host}"; + + /** + * Retrieves information about the specified host. + * + * 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 Get#execute()} method to invoke the remote operation.

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

+ * + * @param project The project ID for this request. + * @param zone The name of the zone for this request, formatted as RFC1035. + * @param 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 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."); + 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(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); + } + + /** The project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** The project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** The project ID for this request. */ + public Get setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** The name of the zone for this request, formatted as RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request, formatted as RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request, formatted as RFC1035. */ + public Get setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The 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 Get 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 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. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for 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 HttpHealthChecks collection. * @@ -133581,6 +134519,204 @@ public Update set(String parameterName, Object value) { } + /** + * An accessor for creating requests from the ProjectViews collection. + * + *

The typical use is:

+ *
+   *   {@code Compute compute = new Compute(...);}
+   *   {@code Compute.ProjectViews.List request = compute.projectViews().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public ProjectViews projectViews() { + return new ProjectViews(); + } + + /** + * The "projectViews" collection of methods. + */ + public class ProjectViews { + + /** + * Returns the specified global ProjectViews resource, with a regional context. + * + * Create a request for the method "projectViews.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. This is part of the URL path. + * @param region Required. Name of the region for this request. This is part of the URL path. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String region) throws java.io.IOException { + Get result = new Get(project, region); + initialize(result); + return result; + } + + public class Get extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/projectViews"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Returns the specified global ProjectViews resource, with a regional context. + * + * Create a request for the method "projectViews.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. This is part of the URL path. + * @param region Required. Name of the region for this request. This is part of the URL path. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ProjectView.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-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 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. This is part of the URL path. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Required. Project ID for this request. This is part of the URL path. + */ + public java.lang.String getProject() { + return project; + } + + /** Required. Project ID for this request. This is part of the URL path. */ + 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. This is part of the URL path. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Required. Name of the region for this request. This is part of the URL path. + */ + public java.lang.String getRegion() { + return region; + } + + /** Required. Name of the region for this request. This is part of the URL path. */ + 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; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + + } + /** * An accessor for creating requests from the Projects collection. * diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Host.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Host.java new file mode 100644 index 00000000000..755248a69f3 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Host.java @@ -0,0 +1,309 @@ +/* + * 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 host resource. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Host extends com.google.api.client.json.GenericJson { + + /** + * Output only. All aliases for this resource. e.g. projects/123/zones/us- + * centra1-a/reservation/r1/reservationBlock/b1/hosts/h1 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List aliasLinks; + + /** + * Output only. The creation timestamp, formatted asRFC3339 text. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional description of this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. The unique identifier for this resource. This identifier is defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger id; + + /** + * Output only. The type of resource. Alwayscompute#host for hosts. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Output only. The name of the host. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The self link of the host. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. The self link with id of the host. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Output only. The state of the host. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. The status of the host + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HostStatus status; + + /** + * Output only. The zone in which the host resides. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** + * Output only. All aliases for this resource. e.g. projects/123/zones/us- + * centra1-a/reservation/r1/reservationBlock/b1/hosts/h1 + * @return value or {@code null} for none + */ + public java.util.List getAliasLinks() { + return aliasLinks; + } + + /** + * Output only. All aliases for this resource. e.g. projects/123/zones/us- + * centra1-a/reservation/r1/reservationBlock/b1/hosts/h1 + * @param aliasLinks aliasLinks or {@code null} for none + */ + public Host setAliasLinks(java.util.List aliasLinks) { + this.aliasLinks = aliasLinks; + return this; + } + + /** + * Output only. The creation timestamp, formatted asRFC3339 text. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. The creation timestamp, formatted asRFC3339 text. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public Host setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional description of this resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional description of this resource. + * @param description description or {@code null} for none + */ + public Host setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. The unique identifier for this resource. This identifier is defined by the server. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * Output only. The unique identifier for this resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public Host setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. The type of resource. Alwayscompute#host for hosts. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. The type of resource. Alwayscompute#host for hosts. + * @param kind kind or {@code null} for none + */ + public Host setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Output only. The name of the host. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. The name of the host. + * @param name name or {@code null} for none + */ + public Host setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The self link of the host. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. The self link of the host. + * @param selfLink selfLink or {@code null} for none + */ + public Host setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. The self link with id of the host. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. The self link with id of the host. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public Host setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + /** + * Output only. The state of the host. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The state of the host. + * @param state state or {@code null} for none + */ + public Host setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. The status of the host + * @return value or {@code null} for none + */ + public HostStatus getStatus() { + return status; + } + + /** + * Output only. The status of the host + * @param status status or {@code null} for none + */ + public Host setStatus(HostStatus status) { + this.status = status; + return this; + } + + /** + * Output only. The zone in which the host resides. + * @return value or {@code null} for none + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Output only. The zone in which the host resides. + * @param zone zone or {@code null} for none + */ + public Host setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + @Override + public Host set(String fieldName, Object value) { + return (Host) super.set(fieldName, value); + } + + @Override + public Host clone() { + return (Host) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HostPhysicalTopology.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HostPhysicalTopology.java new file mode 100644 index 00000000000..6633288c1e0 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HostPhysicalTopology.java @@ -0,0 +1,138 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for HostPhysicalTopology. + * + *

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

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 HostStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. The physical topology of the reservation sub-block, if present + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private HostPhysicalTopology physicalTopology; + + /** + * Output only. The URIs of the instances currently running on this host. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List runningInstances; + + /** + * Output only. The physical topology of the reservation sub-block, if present + * @return value or {@code null} for none + */ + public HostPhysicalTopology getPhysicalTopology() { + return physicalTopology; + } + + /** + * Output only. The physical topology of the reservation sub-block, if present + * @param physicalTopology physicalTopology or {@code null} for none + */ + public HostStatus setPhysicalTopology(HostPhysicalTopology physicalTopology) { + this.physicalTopology = physicalTopology; + return this; + } + + /** + * Output only. The URIs of the instances currently running on this host. + * @return value or {@code null} for none + */ + public java.util.List getRunningInstances() { + return runningInstances; + } + + /** + * Output only. The URIs of the instances currently running on this host. + * @param runningInstances runningInstances or {@code null} for none + */ + public HostStatus setRunningInstances(java.util.List runningInstances) { + this.runningInstances = runningInstances; + return this; + } + + @Override + public HostStatus set(String fieldName, Object value) { + return (HostStatus) super.set(fieldName, value); + } + + @Override + public HostStatus clone() { + return (HostStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HostsGetVersionRequest.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HostsGetVersionRequest.java new file mode 100644 index 00000000000..06e2a3264c9 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HostsGetVersionRequest.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for HostsGetVersionRequest. + * + *

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 HostsGetVersionRequest extends com.google.api.client.json.GenericJson { + + /** + * The SBOM selection to return. Duplicate values in the list will be ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sbomSelections; + + /** + * The SBOM selection to return. Duplicate values in the list will be ignored. + * @return value or {@code null} for none + */ + public java.util.List getSbomSelections() { + return sbomSelections; + } + + /** + * The SBOM selection to return. Duplicate values in the list will be ignored. + * @param sbomSelections sbomSelections or {@code null} for none + */ + public HostsGetVersionRequest setSbomSelections(java.util.List sbomSelections) { + this.sbomSelections = sbomSelections; + return this; + } + + @Override + public HostsGetVersionRequest set(String fieldName, Object value) { + return (HostsGetVersionRequest) super.set(fieldName, value); + } + + @Override + public HostsGetVersionRequest clone() { + return (HostsGetVersionRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HostsListResponse.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HostsListResponse.java new file mode 100644 index 00000000000..9497f393be8 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HostsListResponse.java @@ -0,0 +1,428 @@ +/* + * 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 HostsListResponse. + * + *

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 HostsListResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * The unique identifier for the resource; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * A list of host resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider Host 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(Host.class); + } + + /** + * The type of resource. Always compute#host for a list of hosts. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + + /** + * An 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 HostsListResponse setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * The unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * The unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public HostsListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of host resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of host resources. + * @param items items or {@code null} for none + */ + public HostsListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * The type of resource. Always compute#host for a list of hosts. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * The type of resource. Always compute#host for a list of hosts. + * @param kind kind or {@code null} for none + */ + public HostsListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public HostsListResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * The server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public HostsListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public HostsListResponse setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * An informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * An informational warning message. + * @param warning warning or {@code null} for none + */ + public HostsListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HostsListResponse set(String fieldName, Object value) { + return (HostsListResponse) super.set(fieldName, value); + } + + @Override + public HostsListResponse clone() { + return (HostsListResponse) super.clone(); + } + + /** + * An informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for HostsListResponseWarningData. + */ + 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/Interconnect.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Interconnect.java index 6aca3c94a5a..d87adf78d15 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Interconnect.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Interconnect.java @@ -100,8 +100,8 @@ public final class Interconnect extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * Output only. [Output Only] URL of the InterconnectLocation object that represents where this - * connection is to be provisioned. By default it will be the same as the location field. + * Output only. URL of the InterconnectLocation object that represents where this connection is to + * be provisioned. By default it will be the same as the location field. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -517,8 +517,8 @@ public Interconnect setDescription(java.lang.String description) { } /** - * Output only. [Output Only] URL of the InterconnectLocation object that represents where this - * connection is to be provisioned. By default it will be the same as the location field. + * Output only. URL of the InterconnectLocation object that represents where this connection is to + * be provisioned. By default it will be the same as the location field. * @return value or {@code null} for none */ public java.lang.String getEffectiveLocation() { @@ -526,8 +526,8 @@ public java.lang.String getEffectiveLocation() { } /** - * Output only. [Output Only] URL of the InterconnectLocation object that represents where this - * connection is to be provisioned. By default it will be the same as the location field. + * Output only. URL of the InterconnectLocation object that represents where this connection is to + * be provisioned. By default it will be the same as the location field. * @param effectiveLocation effectiveLocation or {@code null} for none */ public Interconnect setEffectiveLocation(java.lang.String effectiveLocation) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ProjectView.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ProjectView.java new file mode 100644 index 00000000000..8aa6ad5f99c --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ProjectView.java @@ -0,0 +1,68 @@ +/* + * 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 ProjectView resource. + * + * A ProjectView resource contains read-only project data which is available globally. + * + *

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 ProjectView extends com.google.api.client.json.GenericJson { + + /** + * The project data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Project project; + + /** + * The project data. + * @return value or {@code null} for none + */ + public Project getProject() { + return project; + } + + /** + * The project data. + * @param project project or {@code null} for none + */ + public ProjectView setProject(Project project) { + this.project = project; + return this; + } + + @Override + public ProjectView set(String fieldName, Object value) { + return (ProjectView) super.set(fieldName, value); + } + + @Override + public ProjectView clone() { + return (ProjectView) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShareSettings.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShareSettings.java index ac7e1cacc09..34ce93ad3a6 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShareSettings.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShareSettings.java @@ -29,6 +29,15 @@ @SuppressWarnings("javadoc") public final class ShareSettings extends com.google.api.client.json.GenericJson { + /** + * A map of folder id and folder config to specify consumer projects for this shared-reservation. + * This is only valid when share_type's value is DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS. Folder id + * should be a string of number, and without "folders/" prefix. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map folderMap; + /** * A map of project id and project config. This is only valid when share_type's value is * SPECIFIC_PROJECTS. @@ -52,6 +61,27 @@ public final class ShareSettings extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private java.lang.String shareType; + /** + * A map of folder id and folder config to specify consumer projects for this shared-reservation. + * This is only valid when share_type's value is DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS. Folder id + * should be a string of number, and without "folders/" prefix. + * @return value or {@code null} for none + */ + public java.util.Map getFolderMap() { + return folderMap; + } + + /** + * A map of folder id and folder config to specify consumer projects for this shared-reservation. + * This is only valid when share_type's value is DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS. Folder id + * should be a string of number, and without "folders/" prefix. + * @param folderMap folderMap or {@code null} for none + */ + public ShareSettings setFolderMap(java.util.Map folderMap) { + this.folderMap = folderMap; + return this; + } + /** * A map of project id and project config. This is only valid when share_type's value is * SPECIFIC_PROJECTS. diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShareSettingsFolderConfig.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShareSettingsFolderConfig.java new file mode 100644 index 00000000000..0db863c58ba --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShareSettingsFolderConfig.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; + +/** + * Config for each folder in the share settings. + * + *

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 ShareSettingsFolderConfig extends com.google.api.client.json.GenericJson { + + /** + * The folder ID, should be same as the key of this folder config in the parent map. Folder id + * should be a string of number, and without "folders/" prefix. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String folderId; + + /** + * The folder ID, should be same as the key of this folder config in the parent map. Folder id + * should be a string of number, and without "folders/" prefix. + * @return value or {@code null} for none + */ + public java.lang.String getFolderId() { + return folderId; + } + + /** + * The folder ID, should be same as the key of this folder config in the parent map. Folder id + * should be a string of number, and without "folders/" prefix. + * @param folderId folderId or {@code null} for none + */ + public ShareSettingsFolderConfig setFolderId(java.lang.String folderId) { + this.folderId = folderId; + return this; + } + + @Override + public ShareSettingsFolderConfig set(String fieldName, Object value) { + return (ShareSettingsFolderConfig) super.set(fieldName, value); + } + + @Override + public ShareSettingsFolderConfig clone() { + return (ShareSettingsFolderConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Snapshot.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Snapshot.java index 59fb873f8b6..aadca6047e1 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Snapshot.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Snapshot.java @@ -364,10 +364,11 @@ public final class Snapshot extends com.google.api.client.json.GenericJson { private java.lang.Long storageBytes; /** - * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is - * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, - * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the - * snapshot is up-to-date. + * Output only. [Deprecated] Instead, check the storageBytes field. After snapshot creation, the + * storageBytesStatus field is alwaysUP_TO_DATE. [Output Only] An indicator whether storageBytes + * is in a stable state or it is being adjusted as a result of shared storage reallocation. This + * status can either be unset, meaning the snapshot is being created, or UP_TO_DATE, meaning the + * size of the snapshot is up-to-date. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -1188,10 +1189,11 @@ public Snapshot setStorageBytes(java.lang.Long storageBytes) { } /** - * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is - * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, - * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the - * snapshot is up-to-date. + * Output only. [Deprecated] Instead, check the storageBytes field. After snapshot creation, the + * storageBytesStatus field is alwaysUP_TO_DATE. [Output Only] An indicator whether storageBytes + * is in a stable state or it is being adjusted as a result of shared storage reallocation. This + * status can either be unset, meaning the snapshot is being created, or UP_TO_DATE, meaning the + * size of the snapshot is up-to-date. * @return value or {@code null} for none */ public java.lang.String getStorageBytesStatus() { @@ -1199,10 +1201,11 @@ public java.lang.String getStorageBytesStatus() { } /** - * Output only. [Output Only] An indicator whether storageBytes is in a stable state or it is - * being adjusted as a result of shared storage reallocation. This status can either be UPDATING, - * meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the - * snapshot is up-to-date. + * Output only. [Deprecated] Instead, check the storageBytes field. After snapshot creation, the + * storageBytesStatus field is alwaysUP_TO_DATE. [Output Only] An indicator whether storageBytes + * is in a stable state or it is being adjusted as a result of shared storage reallocation. This + * status can either be unset, meaning the snapshot is being created, or UP_TO_DATE, meaning the + * size of the snapshot is up-to-date. * @param storageBytesStatus storageBytesStatus or {@code null} for none */ public Snapshot setStorageBytesStatus(java.lang.String storageBytesStatus) { 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 e9294c10c7a..abf792cd1d9 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-rev20260520-2.0.0 - Compute Engine API beta-rev20260520-2.0.0 + beta-rev20260530-2.0.0 + Compute Engine API beta-rev20260530-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 d4dea6fe705..42fa3a28507 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-rev20260520-2.0.0 + beta-rev20260530-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:beta-rev20260520-2.0.0' + implementation 'com.google.apis:google-api-services-compute:beta-rev20260530-2.0.0' } ```