+ * {@link + * SetName#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param project Project ID for this request. + * @param interconnect Name of the interconnect to update. + * @param content the {@link com.google.api.services.compute.model.InterconnectsSetNameRequest} + * @since 1.13 + */ + protected SetName(java.lang.String project, java.lang.String interconnect, com.google.api.services.compute.model.InterconnectsSetNameRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.interconnect = com.google.api.client.util.Preconditions.checkNotNull(interconnect, "Required parameter interconnect must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public SetName set$Xgafv(java.lang.String $Xgafv) { + return (SetName) super.set$Xgafv($Xgafv); + } + + @Override + public SetName setAccessToken(java.lang.String accessToken) { + return (SetName) super.setAccessToken(accessToken); + } + + @Override + public SetName setAlt(java.lang.String alt) { + return (SetName) super.setAlt(alt); + } + + @Override + public SetName setCallback(java.lang.String callback) { + return (SetName) super.setCallback(callback); + } + + @Override + public SetName setFields(java.lang.String fields) { + return (SetName) super.setFields(fields); + } + + @Override + public SetName setKey(java.lang.String key) { + return (SetName) super.setKey(key); + } + + @Override + public SetName setOauthToken(java.lang.String oauthToken) { + return (SetName) super.setOauthToken(oauthToken); + } + + @Override + public SetName setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetName) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetName setQuotaUser(java.lang.String quotaUser) { + return (SetName) super.setQuotaUser(quotaUser); + } + + @Override + public SetName setUploadType(java.lang.String uploadType) { + return (SetName) super.setUploadType(uploadType); + } + + @Override + public SetName setUploadProtocol(java.lang.String uploadProtocol) { + return (SetName) super.setUploadProtocol(uploadProtocol); + } + + @Override + public SetName setUserIp(java.lang.String userIp) { + return (SetName) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public SetName setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the interconnect to update. */ + @com.google.api.client.util.Key + private java.lang.String interconnect; + + /** Name of the interconnect to update. + */ + public java.lang.String getInterconnect() { + return interconnect; + } + + /** Name of the interconnect to update. */ + public SetName setInterconnect(java.lang.String interconnect) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INTERCONNECT_PATTERN.matcher(interconnect).matches(), + "Parameter interconnect must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.interconnect = interconnect; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating 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 SetName setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public SetName set(String parameterName, Object value) { + return (SetName) super.set(parameterName, value); + } + } /** * Returns permissions that a caller has on the specified resource. * diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Commitment.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Commitment.java index 083dc68b719..7bb5ae5152b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Commitment.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/Commitment.java @@ -248,10 +248,10 @@ public final class Commitment extends com.google.api.client.json.GenericJson { * GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, * GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, * MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, - * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. For example, type MEMORY_OPTIMIZED specifies a - * commitment that applies only to eligible resources of memory optimized M1 and M2 machine - * series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of - * general purpose N1 machine series. + * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T,STORAGE_OPTIMIZED_Z4M. For example, type + * MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory + * optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies + * only to eligible resources of general purpose N1 machine series. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -745,10 +745,10 @@ public Commitment setStatusMessage(java.lang.String statusMessage) { * GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, * GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, * MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, - * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. For example, type MEMORY_OPTIMIZED specifies a - * commitment that applies only to eligible resources of memory optimized M1 and M2 machine - * series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of - * general purpose N1 machine series. + * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T,STORAGE_OPTIMIZED_Z4M. For example, type + * MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory + * optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies + * only to eligible resources of general purpose N1 machine series. * @return value or {@code null} for none */ public java.lang.String getType() { @@ -767,10 +767,10 @@ public java.lang.String getType() { * GENERAL_PURPOSE_N2D,GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D,GRAPHICS_OPTIMIZED, * GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, * MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, - * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. For example, type MEMORY_OPTIMIZED specifies a - * commitment that applies only to eligible resources of memory optimized M1 and M2 machine - * series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of - * general purpose N1 machine series. + * STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T,STORAGE_OPTIMIZED_Z4M. For example, type + * MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory + * optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies + * only to eligible resources of general purpose N1 machine series. * @param type type or {@code null} for none */ public Commitment setType(java.lang.String type) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectsSetNameRequest.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectsSetNameRequest.java new file mode 100644 index 00000000000..8d5a4ff0620 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InterconnectsSetNameRequest.java @@ -0,0 +1,96 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Request to rename an interconnect. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class InterconnectsSetNameRequest extends com.google.api.client.json.GenericJson { + + /** + * The current name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String currentName; + + /** + * The new name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The current name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getCurrentName() { + return currentName; + } + + /** + * The current name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * @param currentName currentName or {@code null} for none + */ + public InterconnectsSetNameRequest setCurrentName(java.lang.String currentName) { + this.currentName = currentName; + return this; + } + + /** + * The new name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The new name of the interconnect. The name must be 1-63 characters long, and comply with + * RFC1035. + * @param name name or {@code null} for none + */ + public InterconnectsSetNameRequest setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public InterconnectsSetNameRequest set(String fieldName, Object value) { + return (InterconnectsSetNameRequest) super.set(fieldName, value); + } + + @Override + public InterconnectsSetNameRequest clone() { + return (InterconnectsSetNameRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterNatRule.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterNatRule.java index b7d2abe99d6..7475fb9fb60 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterNatRule.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterNatRule.java @@ -53,10 +53,14 @@ public final class RouterNatRule extends com.google.api.client.json.GenericJson * * `destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'` * - * The following example is a valid match expression for private NAT: + * The following examples are valid match expressions for private NAT: * - * `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- + * (NAT 44) `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- * project/locations/global/hubs/hub-1'` + * + * `nexthop.is_hybrid` + * + * (NAT 64) `isIPv6(source.ip)` * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -121,10 +125,14 @@ public RouterNatRule setDescription(java.lang.String description) { * * `destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'` * - * The following example is a valid match expression for private NAT: + * The following examples are valid match expressions for private NAT: * - * `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- + * (NAT 44) `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- * project/locations/global/hubs/hub-1'` + * + * `nexthop.is_hybrid` + * + * (NAT 64) `isIPv6(source.ip)` * @return value or {@code null} for none */ public java.lang.String getMatch() { @@ -141,10 +149,14 @@ public java.lang.String getMatch() { * * `destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'` * - * The following example is a valid match expression for private NAT: + * The following examples are valid match expressions for private NAT: * - * `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- + * (NAT 44) `nexthop.hub == '//networkconnectivity.googleapis.com/projects/my- * project/locations/global/hubs/hub-1'` + * + * `nexthop.is_hybrid` + * + * (NAT 64) `isIPv6(source.ip)` * @param match match or {@code null} for none */ public RouterNatRule setMatch(java.lang.String match) { diff --git a/clients/google-api-services-compute/beta/2.0.0/pom.xml b/clients/google-api-services-compute/beta/2.0.0/pom.xml index 708d033e425..049398038c5 100644 --- a/clients/google-api-services-compute/beta/2.0.0/pom.xml +++ b/clients/google-api-services-compute/beta/2.0.0/pom.xml @@ -8,8 +8,8 @@The typical use is:
+ *
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.AcceleratorInterconnectMemberInstances.List request = compute.acceleratorInterconnectMemberInstances().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public AcceleratorInterconnectMemberInstances acceleratorInterconnectMemberInstances() {
+ return new AcceleratorInterconnectMemberInstances();
+ }
+
+ /**
+ * The "acceleratorInterconnectMemberInstances" collection of methods.
+ */
+ public class AcceleratorInterconnectMemberInstances {
+
+ /**
+ * Lists member instances of the AcceleratorInterconnect.
+ *
+ * Create a request for the method "acceleratorInterconnectMemberInstances.list".
+ *
+ * This request holds the parameters needed by the compute server. After setting any optional
+ * parameters, call the {@link List#execute()} method to invoke the remote operation.
+ *
+ * @param project Project ID for the request.
+ * @param zone Zone where the AcceleratorInterconnect is located. Zone name should conform
+ to RFC1035.
+ * @param acceleratorInterconnect Name of the parent AcceleratorInterconnect. The name should conform to
+ RFC1035 or be a resource ID.
+ * @return the request
+ */
+ public List list(java.lang.String project, java.lang.String zone, java.lang.String acceleratorInterconnect) throws java.io.IOException {
+ List result = new List(project, zone, acceleratorInterconnect);
+ initialize(result);
+ return result;
+ }
+
+ public class List extends ComputeRequest{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param project Project ID for the request. + * @param zone Zone where the AcceleratorInterconnect is located. Zone name should conform + to RFC1035. + * @param acceleratorInterconnect Name of the parent AcceleratorInterconnect. The name should conform to + RFC1035 or be a resource ID. + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String zone, java.lang.String acceleratorInterconnect) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.AcceleratorInterconnectMemberInstancesListResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.acceleratorInterconnect = com.google.api.client.util.Preconditions.checkNotNull(acceleratorInterconnect, "Required parameter acceleratorInterconnect must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); + } + + /** Project ID for the request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for the request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for the request. */ + public List setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * Zone where the AcceleratorInterconnect is located. Zone name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** Zone where the AcceleratorInterconnect is located. Zone name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * Zone where the AcceleratorInterconnect is located. Zone name should conform to RFC1035. + */ + public List setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * Name of the parent AcceleratorInterconnect. The name should conform to RFC1035 or be a + * resource ID. + */ + @com.google.api.client.util.Key + private java.lang.String acceleratorInterconnect; + + /** Name of the parent AcceleratorInterconnect. The name should conform to RFC1035 or be a resource ID. + */ + public java.lang.String getAcceleratorInterconnect() { + return acceleratorInterconnect; + } + + /** + * Name of the parent AcceleratorInterconnect. The name should conform to RFC1035 or be a + * resource ID. + */ + public List setAcceleratorInterconnect(java.lang.String acceleratorInterconnect) { + this.acceleratorInterconnect = acceleratorInterconnect; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the AcceleratorInterconnects collection. + * + *The typical use is:
+ *
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.AcceleratorInterconnects.List request = compute.acceleratorInterconnects().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public AcceleratorInterconnects acceleratorInterconnects() {
+ return new AcceleratorInterconnects();
+ }
+
+ /**
+ * The "acceleratorInterconnects" collection of methods.
+ */
+ public class AcceleratorInterconnects {
+
+ /**
+ * Deletes the specified accelerator interconnect.
+ *
+ * Create a request for the method "acceleratorInterconnects.delete".
+ *
+ * This request holds the parameters needed by the compute server. After setting any optional
+ * parameters, call the {@link Delete#execute()} method to invoke the remote operation.
+ *
+ * @param project Project ID for this request.
+ * @param zone The name of thezone where the
+ accelerator interconnect is located. Zone name should conform to
+ * RFC1035.
+ * @param acceleratorInterconnect The name of the accelerator interconnect to delete. Name should conform to
+ RFC1035.
+ * @return the request
+ */
+ public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String acceleratorInterconnect) throws java.io.IOException {
+ Delete result = new Delete(project, zone, acceleratorInterconnect);
+ initialize(result);
+ return result;
+ }
+
+ public class Delete extends ComputeRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param project Project ID for this request. + * @param zone The name of thezone where the + accelerator interconnect is located. Zone name should conform to + * RFC1035. + * @param acceleratorInterconnect The name of the accelerator interconnect to delete. Name should conform to + RFC1035. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String acceleratorInterconnect) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.acceleratorInterconnect = com.google.api.client.util.Preconditions.checkNotNull(acceleratorInterconnect, "Required parameter acceleratorInterconnect must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Delete setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * The name of thezone where the accelerator interconnect is located. Zone name should conform + * to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the accelerator interconnect is located. Zone name should conform to + RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the accelerator interconnect is located. Zone name should conform + * to RFC1035. + */ + public Delete setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the accelerator interconnect to delete. Name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String acceleratorInterconnect; + + /** The name of the accelerator interconnect to delete. Name should conform to RFC1035. + */ + public java.lang.String getAcceleratorInterconnect() { + return acceleratorInterconnect; + } + + /** + * The name of the accelerator interconnect to delete. Name should conform to RFC1035. + */ + public Delete setAcceleratorInterconnect(java.lang.String acceleratorInterconnect) { + this.acceleratorInterconnect = acceleratorInterconnect; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Returns all of the details about the specified accelerator interconnect. + * + * Create a request for the method "acceleratorInterconnects.get". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone where the + accelerator interconnect is located. Zone name should conform to + * RFC1035. + * @param acceleratorInterconnect The name of the accelerator interconnect. Name should conform to RFC1035. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String zone, java.lang.String acceleratorInterconnect) throws java.io.IOException { + Get result = new Get(project, zone, acceleratorInterconnect); + initialize(result); + return result; + } + + public class Get extends ComputeRequest{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param project Project ID for this request. + * @param zone The name of thezone where the + accelerator interconnect is located. Zone name should conform to + * RFC1035. + * @param acceleratorInterconnect The name of the accelerator interconnect. Name should conform to RFC1035. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String zone, java.lang.String acceleratorInterconnect) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.AcceleratorInterconnect.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.acceleratorInterconnect = com.google.api.client.util.Preconditions.checkNotNull(acceleratorInterconnect, "Required parameter acceleratorInterconnect must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Get setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * The name of thezone where the accelerator interconnect is located. Zone name should conform + * to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the accelerator interconnect is located. Zone name should conform to + RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the accelerator interconnect is located. Zone name should conform + * to RFC1035. + */ + public Get setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** The name of the accelerator interconnect. Name should conform to RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String acceleratorInterconnect; + + /** The name of the accelerator interconnect. Name should conform to RFC1035. + */ + public java.lang.String getAcceleratorInterconnect() { + return acceleratorInterconnect; + } + + /** The name of the accelerator interconnect. Name should conform to RFC1035. */ + public Get setAcceleratorInterconnect(java.lang.String acceleratorInterconnect) { + this.acceleratorInterconnect = acceleratorInterconnect; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Creates an accelerator interconnect using the information that you specify in the request. + * + * Create a request for the method "acceleratorInterconnects.insert". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link Insert#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of the zone + where you want to create the accelerator interconnect. Zone name should + conform + * to RFC1035. + * @param content the {@link com.google.api.services.compute.model.AcceleratorInterconnectsInsertRequest} + * @return the request + */ + public Insert insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.AcceleratorInterconnectsInsertRequest content) throws java.io.IOException { + Insert result = new Insert(project, zone, content); + initialize(result); + return result; + } + + public class Insert extends ComputeRequest{@link + * Insert#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param project Project ID for this request. + * @param zone The name of the zone + where you want to create the accelerator interconnect. Zone name should + conform + * to RFC1035. + * @param content the {@link com.google.api.services.compute.model.AcceleratorInterconnectsInsertRequest} + * @since 1.13 + */ + protected Insert(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.AcceleratorInterconnectsInsertRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public Insert set$Xgafv(java.lang.String $Xgafv) { + return (Insert) super.set$Xgafv($Xgafv); + } + + @Override + public Insert setAccessToken(java.lang.String accessToken) { + return (Insert) super.setAccessToken(accessToken); + } + + @Override + public Insert setAlt(java.lang.String alt) { + return (Insert) super.setAlt(alt); + } + + @Override + public Insert setCallback(java.lang.String callback) { + return (Insert) super.setCallback(callback); + } + + @Override + public Insert setFields(java.lang.String fields) { + return (Insert) super.setFields(fields); + } + + @Override + public Insert setKey(java.lang.String key) { + return (Insert) super.setKey(key); + } + + @Override + public Insert setOauthToken(java.lang.String oauthToken) { + return (Insert) super.setOauthToken(oauthToken); + } + + @Override + public Insert setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Insert) super.setPrettyPrint(prettyPrint); + } + + @Override + public Insert setQuotaUser(java.lang.String quotaUser) { + return (Insert) super.setQuotaUser(quotaUser); + } + + @Override + public Insert setUploadType(java.lang.String uploadType) { + return (Insert) super.setUploadType(uploadType); + } + + @Override + public Insert setUploadProtocol(java.lang.String uploadProtocol) { + return (Insert) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Insert setUserIp(java.lang.String userIp) { + return (Insert) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Insert setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * The name of the zone where you want to create the accelerator interconnect. Zone name + * should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone where you want to create the accelerator interconnect. Zone name should + conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of the zone where you want to create the accelerator interconnect. Zone name + * should conform to RFC1035. + */ + public Insert setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry + your request, the server will know to ignore the request if it has already been completed. + + For example, consider a situation where you make an initial request and the request times out. If + you make the request again with the same request ID, the server can check if original operation + with the same request ID was received, and if so, will ignore the second request. This prevents + clients from accidentally creating duplicate commitments. + + The request ID must be a valid UUID with the exception that zero UUID is not supported + (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you + * must retry your request, the server will know to ignore the request if it has already been + * completed. + * + * For example, consider a situation where you make an initial request and the request times + * out. If you make the request again with the same request ID, the server can check if + * original operation with the same request ID was received, and if so, will ignore the second + * request. This prevents clients from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + public Insert setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Insert set(String parameterName, Object value) { + return (Insert) super.set(parameterName, value); + } + } + /** + * Retrieves a list of accelerator interconnects that are contained within the specified project and + * zone. + * + * Create a request for the method "acceleratorInterconnects.list". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone where the + accelerator interconnect is located. Zone 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); + initialize(result); + return result; + } + + public class List extends ComputeRequest{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param project Project ID for this request. + * @param zone The name of thezone where the + accelerator interconnect is located. Zone name should conform to + * RFC1035. + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String zone) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.AcceleratorInterconnectsList.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public List setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * The name of thezone where the accelerator interconnect is located. Zone name should conform + * to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the accelerator interconnect is located. Zone name should conform to + RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the accelerator interconnect is located. Zone name should conform + * to RFC1035. + */ + public List setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Queries hierarchical formability over dense reservations. + * + * Create a request for the method "acceleratorInterconnects.queryFormability". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link QueryFormability#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @param zone The name of thezone where the + request is located. Zone name should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.QueryFormabilityRequest} + * @return the request + */ + public QueryFormability queryFormability(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.QueryFormabilityRequest content) throws java.io.IOException { + QueryFormability result = new QueryFormability(project, zone, content); + initialize(result); + return result; + } + + public class QueryFormability extends ComputeRequest{@link QueryFormability#initialize(com.google.api.client.googleapis.services.AbstractGoogle + * ClientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.
+ * + * @param project Project ID for this request. + * @param zone The name of thezone where the + request is located. Zone name should conform to RFC1035. + * @param content the {@link com.google.api.services.compute.model.QueryFormabilityRequest} + * @since 1.13 + */ + protected QueryFormability(java.lang.String project, java.lang.String zone, com.google.api.services.compute.model.QueryFormabilityRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.QueryFormabilityResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + // Does not override the API_VERSION if already configured + com.google.api.client.http.HttpHeaders headers = getRequestHeaders(); + if (headers.get(API_VERSION_HEADER) == null) { + headers.set(API_VERSION_HEADER, API_VERSION); + } + } + + @Override + public QueryFormability set$Xgafv(java.lang.String $Xgafv) { + return (QueryFormability) super.set$Xgafv($Xgafv); + } + + @Override + public QueryFormability setAccessToken(java.lang.String accessToken) { + return (QueryFormability) super.setAccessToken(accessToken); + } + + @Override + public QueryFormability setAlt(java.lang.String alt) { + return (QueryFormability) super.setAlt(alt); + } + + @Override + public QueryFormability setCallback(java.lang.String callback) { + return (QueryFormability) super.setCallback(callback); + } + + @Override + public QueryFormability setFields(java.lang.String fields) { + return (QueryFormability) super.setFields(fields); + } + + @Override + public QueryFormability setKey(java.lang.String key) { + return (QueryFormability) super.setKey(key); + } + + @Override + public QueryFormability setOauthToken(java.lang.String oauthToken) { + return (QueryFormability) super.setOauthToken(oauthToken); + } + + @Override + public QueryFormability setPrettyPrint(java.lang.Boolean prettyPrint) { + return (QueryFormability) super.setPrettyPrint(prettyPrint); + } + + @Override + public QueryFormability setQuotaUser(java.lang.String quotaUser) { + return (QueryFormability) super.setQuotaUser(quotaUser); + } + + @Override + public QueryFormability setUploadType(java.lang.String uploadType) { + return (QueryFormability) super.setUploadType(uploadType); + } + + @Override + public QueryFormability setUploadProtocol(java.lang.String uploadProtocol) { + return (QueryFormability) super.setUploadProtocol(uploadProtocol); + } + + @Override + public QueryFormability setUserIp(java.lang.String userIp) { + return (QueryFormability) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public QueryFormability setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * The name of thezone where the request is located. Zone name should conform to RFC1035. + */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of thezone where the request is located. Zone name should conform to RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** + * The name of thezone where the request is located. Zone name should conform to RFC1035. + */ + public QueryFormability setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public QueryFormability setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public QueryFormability 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 QueryFormability 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 QueryFormability setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public QueryFormability set(String parameterName, Object value) { + return (QueryFormability) super.set(parameterName, value); + } + } + + } + /** * An accessor for creating requests from the AcceleratorTypes collection. * @@ -173,7 +2133,7 @@ public AggregatedList aggregatedList(java.lang.String project) throws java.io.IO return result; } - public class AggregatedList extends ComputeRequest