From c5c628885d471638c941a1ea04514fec5dbc6b01 Mon Sep 17 00:00:00 2001
From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Date: Fri, 12 Jun 2026 18:46:37 -0700
Subject: [PATCH] chore: regenerate compute client
---
.../alpha/2.0.0/README.md | 4 +-
.../google/api/services/compute/Compute.java | 19444 ++++++++++------
.../services/compute/model/Commitment.java | 27 +
...ExtensionPolicyAggregatedListResponse.java | 425 +
.../compute/model/GlobalVmExtension.java | 123 +
.../services/compute/model/HaController.java | 9 +-
.../services/compute/model/Interconnect.java | 12 +-
...ExtensionPolicyAggregatedListResponse.java | 425 +
.../PersistentDiskResourceCommitment.java | 117 +
.../RecoverableSnapshotOriginalSnapshot.java | 75 +-
.../services/compute/model/RegexRewrite.java | 111 +
.../api/services/compute/model/Snapshot.java | 27 +-
.../services/compute/model/UrlRewrite.java | 27 +
.../alpha/2.0.0/pom.xml | 4 +-
.../alpha/README.md | 4 +-
.../beta/2.0.0/README.md | 4 +-
.../google/api/services/compute/Compute.java | 1136 +
.../api/services/compute/model/Host.java | 309 +
.../compute/model/HostPhysicalTopology.java | 138 +
.../services/compute/model/HostStatus.java | 90 +
.../compute/model/HostsGetVersionRequest.java | 66 +
.../compute/model/HostsListResponse.java | 428 +
.../services/compute/model/Interconnect.java | 12 +-
.../services/compute/model/ProjectView.java | 68 +
.../services/compute/model/ShareSettings.java | 30 +
.../model/ShareSettingsFolderConfig.java | 69 +
.../api/services/compute/model/Snapshot.java | 27 +-
.../beta/2.0.0/pom.xml | 4 +-
.../beta/README.md | 4 +-
29 files changed, 15631 insertions(+), 7588 deletions(-)
create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FolderVmExtensionPolicyAggregatedListResponse.java
create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/OrganizationVmExtensionPolicyAggregatedListResponse.java
create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/PersistentDiskResourceCommitment.java
create mode 100644 clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RegexRewrite.java
create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Host.java
create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HostPhysicalTopology.java
create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HostStatus.java
create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HostsGetVersionRequest.java
create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/HostsListResponse.java
create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ProjectView.java
create mode 100644 clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ShareSettingsFolderConfig.java
diff --git a/clients/google-api-services-compute/alpha/2.0.0/README.md b/clients/google-api-services-compute/alpha/2.0.0/README.md
index 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:
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{@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{@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{@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 {@link
@@ -30717,11 +31086,10 @@ public class Insert extends ComputeRequest {@link
@@ -30932,23 +31269,16 @@ public class List extends ComputeRequest {@link
@@ -31813,12 +32086,11 @@ public class Update extends ComputeRequest The typical use is: {@link
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. The typical use is: {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
- * ientRequest)} must be called to initialize this instance immediately after invoking the
- * constructor. {@link
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link GetVmExtension#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
+ * ientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@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. {@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. {@link
- * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor. {@link
- * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor. {@link ListVmExtensions#initialize(com.google.api.client.googleapis.services.AbstractGoogle
+ * ClientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@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. The typical use is:
- * {@link
- * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor. {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
+ * ientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@link
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
+ * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
- * ientRequest)} must be called to initialize this instance immediately after invoking the
- * constructor. {@link
+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
- * 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. {@link
- * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor.
+ * {@link
+ * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link
- * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor.
+ * {@link
+ * SetTarget#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link
- * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. The typical use is: {@link
- * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor. {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
+ * ientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@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. The typical use is: {@link
@@ -36641,10 +37576,11 @@ public class Delete extends ComputeRequest {@link
@@ -36855,23 +37796,20 @@ public class Get extends ComputeRequest {@link GetOwnerInstance#initialize(com.google.api.client.googleapis.services.AbstractGoogle
- * ClientRequest)} must be called to initialize this instance immediately after invoking the
- * constructor. {@link
@@ -37187,10 +37977,11 @@ public class Insert extends ComputeRequest {@link
@@ -37370,16 +38181,18 @@ public class List extends ComputeRequest {@link
- * Move#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor. {@link
+ * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. The typical use is:
- * {@link
- * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor. {@link
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
- * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
- * invoking the constructor. {@link
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
- * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor. {@link GetOwnerInstance#initialize(com.google.api.client.googleapis.services.AbstractGoogle
+ * ClientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@link
+ * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
* List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
* called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
- * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor. {@link
+ * Move#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
- * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor.
+ * {@link
+ * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link
- * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. The typical use is: {@link
- * 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. {@link
+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor.
- * {@link
- * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor. {@link
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor.
- * {@link
- * SetTarget#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor. {@link
+ * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
- * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
- * invoking the constructor. {@link
+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. The typical use is: {@link AttachNetworkEndpoints#initialize(com.google.api.client.googleapis.servic
- * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
- * invoking the constructor. {@link
+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
- * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor.
+ * {@link
+ * SetLabels#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link DetachNetworkEndpoints#initialize(com.google.api.client.googleapis.servic
- * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
- * invoking the constructor.
+ * {@link
+ * SetTarget#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link
- * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. The typical use is: {@link
- * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor. {@link AttachNetworkEndpoints#initialize(com.google.api.client.googleapis.servic
+ * es.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. {@link
- * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor. {@link
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@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. The typical use is: {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
- * ientRequest)} must be called to initialize this instance immediately after invoking the
- * constructor. {@link
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
+ * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
- * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor. {@link ListNetworkEndpoints#initialize(com.google.api.client.googleapis.services
+ * .AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. {@link
- * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor. {@link
- * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
- * Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor. {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
+ * ientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. The typical use is: {@link
* Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor. {@link
* Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
* called to initialize this instance immediately after invoking the constructor. {@link
* List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
* called to initialize this instance immediately after invoking the constructor. {@link
+ * Wait#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
* Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor. {@link
* Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
* called to initialize this instance immediately after invoking the constructor. {@link
- * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor. {@link
* List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
* called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor. The typical use is: {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
- * ientRequest)} must be called to initialize this instance immediately after invoking the
- * constructor. {@link
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
+ * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
- * 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. The typical use is: {@link
- * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor. {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
+ * ientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@link GetVmExtension#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
- * ientRequest)} must be called to initialize this instance immediately after invoking the
- * constructor. {@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. {@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. {@link GetVmExtension#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
+ * ientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@link
+ * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
+ * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor.
+ * {@link
+ * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. The typical use is: {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
+ * ientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@link
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. The typical use is: {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
+ * ientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@link
- * 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. {@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.
- * {@link
- * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor. {@link GetVmExtension#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
+ * ientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. {@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A
- * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
- * invoking the constructor. {@link
+ * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. The typical use is: {@link AggregatedList#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
- * ientRequest)} must be called to initialize this instance immediately after invoking the
- * constructor. {@link
+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. {@link
- * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor. {@link
- * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
- * called to initialize this instance immediately after invoking the constructor. {@link ListVmExtensions#initialize(com.google.api.client.googleapis.services.AbstractGoogle
+ * ClientRequest)} must be called to initialize this instance immediately after invoking the
+ * constructor. The typical use is: {@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. This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * The typical use is: {@link
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor.
+ * {@link
+ * GetVersion#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link
+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. The typical use is: {@link
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be
+ * called to initialize this instance immediately after invoking the constructor. This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ * This is the Java data model class that specifies how to parse/serialize into the JSON that is
+ * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see:
+ * https://developers.google.com/api-client-library/java/google-http-java-client/json
+ *
+ * {@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
- * {@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
+ * {@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
- * {@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
+ * {@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
- * {@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
+ * {@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
- * {@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
- * {@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
+ * {@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
+ * {@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
- * {@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
+ * {@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
- * {@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
+ * {@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
- * {@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
* {@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
+ * {@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
- * {@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
+ * {@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
+ * {@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
+ * {@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
+ * {@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
- * {@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
- * {@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
+ * {@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
+ * {@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