diff --git a/.kokoro/build.sh b/.kokoro/build.sh
index 44b91746f..d500a9a91 100755
--- a/.kokoro/build.sh
+++ b/.kokoro/build.sh
@@ -20,17 +20,22 @@ scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}"))
## cd to the parent directory, i.e. the root of the git repo
cd ${scriptDir}/..
+# include common functions
+source ${scriptDir}/common.sh
+
# Print out Java version
java -version
echo ${JOB_TYPE}
-mvn install -B -V \
- -DskipTests=true \
- -Dclirr.skip=true \
- -Denforcer.skip=true \
- -Dmaven.javadoc.skip=true \
- -Dgcloud.download.skip=true \
- -T 1C
+# attempt to install 3 times with exponential backoff (starting with 10 seconds)
+retry_with_backoff 3 10 \
+ mvn install -B -V \
+ -DskipTests=true \
+ -Dclirr.skip=true \
+ -Denforcer.skip=true \
+ -Dmaven.javadoc.skip=true \
+ -Dgcloud.download.skip=true \
+ -T 1C
# if GOOGLE_APPLICATION_CREDIENTIALS is specified as a relative path prepend Kokoro root directory onto it
if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then
diff --git a/.kokoro/common.sh b/.kokoro/common.sh
new file mode 100644
index 000000000..a3bbc5f67
--- /dev/null
+++ b/.kokoro/common.sh
@@ -0,0 +1,44 @@
+#!/bin/bash
+# Copyright 2020 Google LLC
+#
+# 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.
+
+# set -eo pipefail
+
+function retry_with_backoff {
+ attempts_left=$1
+ sleep_seconds=$2
+ shift 2
+ command=$@
+
+ echo "${command}"
+ ${command}
+ exit_code=$?
+
+ if [[ $exit_code == 0 ]]
+ then
+ return 0
+ fi
+
+ # failure
+ if [[ ${attempts_left} > 0 ]]
+ then
+ echo "failure (${exit_code}), sleeping ${sleep_seconds}..."
+ sleep ${sleep_seconds}
+ new_attempts=$((${attempts_left} - 1))
+ new_sleep=$((${sleep_seconds} * 2))
+ retry_with_backoff ${new_attempts} ${new_sleep} ${command}
+ fi
+
+ return $exit_code
+}
diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh
index 067a72222..0aade871c 100755
--- a/.kokoro/dependencies.sh
+++ b/.kokoro/dependencies.sh
@@ -15,7 +15,13 @@
set -eo pipefail
-cd github/java-compute/
+## Get the directory of the build script
+scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}"))
+## cd to the parent directory, i.e. the root of the git repo
+cd ${scriptDir}/..
+
+# include common functions
+source ${scriptDir}/common.sh
# Print out Java
java -version
@@ -24,8 +30,9 @@ echo $JOB_TYPE
export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m"
# this should run maven enforcer
-mvn install -B -V \
- -DskipTests=true \
- -Dclirr.skip=true
+retry_with_backoff 3 10 \
+ mvn install -B -V \
+ -DskipTests=true \
+ -Dclirr.skip=true
mvn -B dependency:analyze -DfailOnWarning=true
diff --git a/.kokoro/linkage-monitor.sh b/.kokoro/linkage-monitor.sh
index 364b36d00..759ab4e2c 100755
--- a/.kokoro/linkage-monitor.sh
+++ b/.kokoro/linkage-monitor.sh
@@ -17,18 +17,26 @@ set -eo pipefail
# Display commands being run.
set -x
-cd github/java-compute/
+## Get the directory of the build script
+scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}"))
+## cd to the parent directory, i.e. the root of the git repo
+cd ${scriptDir}/..
+
+# include common functions
+source ${scriptDir}/common.sh
# Print out Java version
java -version
echo ${JOB_TYPE}
-mvn install -B -V \
- -DskipTests=true \
- -Dclirr.skip=true \
- -Denforcer.skip=true \
- -Dmaven.javadoc.skip=true \
- -Dgcloud.download.skip=true
+# attempt to install 3 times with exponential backoff (starting with 10 seconds)
+retry_with_backoff 3 10 \
+ mvn install -B -V \
+ -DskipTests=true \
+ -Dclirr.skip=true \
+ -Denforcer.skip=true \
+ -Dmaven.javadoc.skip=true \
+ -Dgcloud.download.skip=true
# Kokoro job cloud-opensource-java/ubuntu/linkage-monitor-gcs creates this JAR
JAR=linkage-monitor-latest-all-deps.jar
diff --git a/README.md b/README.md
index 72c308623..6a25e2837 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
* try (AcceleratorTypeClient acceleratorTypeClient = AcceleratorTypeClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (AcceleratorTypesScopedList element : acceleratorTypeClient.aggregatedListAcceleratorTypes(project).iterateAll()) {
+ * for (AcceleratorTypesScopedList element : acceleratorTypeClient.aggregatedListAcceleratorTypes(includeAllScopes, project).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Project ID for this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
public final AggregatedListAcceleratorTypesPagedResponse aggregatedListAcceleratorTypes(
- ProjectName project) {
+ Boolean includeAllScopes, ProjectName project) {
AggregatedListAcceleratorTypesHttpRequest request =
AggregatedListAcceleratorTypesHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
.setProject(project == null ? null : project.toString())
.build();
return aggregatedListAcceleratorTypes(request);
@@ -190,21 +198,31 @@ public final AggregatedListAcceleratorTypesPagedResponse aggregatedListAccelerat
*
*
* try (AcceleratorTypeClient acceleratorTypeClient = AcceleratorTypeClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (AcceleratorTypesScopedList element : acceleratorTypeClient.aggregatedListAcceleratorTypes(project.toString()).iterateAll()) {
+ * for (AcceleratorTypesScopedList element : acceleratorTypeClient.aggregatedListAcceleratorTypes(includeAllScopes, project.toString()).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Project ID for this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
public final AggregatedListAcceleratorTypesPagedResponse aggregatedListAcceleratorTypes(
- String project) {
+ Boolean includeAllScopes, String project) {
AggregatedListAcceleratorTypesHttpRequest request =
- AggregatedListAcceleratorTypesHttpRequest.newBuilder().setProject(project).build();
+ AggregatedListAcceleratorTypesHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
+ .setProject(project)
+ .build();
return aggregatedListAcceleratorTypes(request);
}
@@ -216,8 +234,10 @@ public final AggregatedListAcceleratorTypesPagedResponse aggregatedListAccelerat
*
*
* try (AcceleratorTypeClient acceleratorTypeClient = AcceleratorTypeClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListAcceleratorTypesHttpRequest request = AggregatedListAcceleratorTypesHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* for (AcceleratorTypesScopedList element : acceleratorTypeClient.aggregatedListAcceleratorTypes(request).iterateAll()) {
@@ -243,8 +263,10 @@ public final AggregatedListAcceleratorTypesPagedResponse aggregatedListAccelerat
*
*
* try (AcceleratorTypeClient acceleratorTypeClient = AcceleratorTypeClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListAcceleratorTypesHttpRequest request = AggregatedListAcceleratorTypesHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* ApiFuture<AggregatedListAcceleratorTypesPagedResponse> future = acceleratorTypeClient.aggregatedListAcceleratorTypesPagedCallable().futureCall(request);
@@ -270,8 +292,10 @@ public final AggregatedListAcceleratorTypesPagedResponse aggregatedListAccelerat
*
*
* try (AcceleratorTypeClient acceleratorTypeClient = AcceleratorTypeClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListAcceleratorTypesHttpRequest request = AggregatedListAcceleratorTypesHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* while (true) {
diff --git a/src/main/java/com/google/cloud/compute/v1/AddResourcePoliciesInstanceHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AddResourcePoliciesInstanceHttpRequest.java
new file mode 100644
index 000000000..bf454e0b0
--- /dev/null
+++ b/src/main/java/com/google/cloud/compute/v1/AddResourcePoliciesInstanceHttpRequest.java
@@ -0,0 +1,547 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+package com.google.cloud.compute.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.ApiMessage;
+import java.util.List;
+import java.util.Objects;
+import javax.annotation.Generated;
+import javax.annotation.Nullable;
+
+@Generated("by GAPIC")
+@BetaApi
+/**
+ * Request object for method compute.instances.addResourcePolicies. Adds existing resource policies
+ * to an instance. You can only add one policy right now which will be applied to this instance for
+ * scheduling live migrations.
+ */
+public final class AddResourcePoliciesInstanceHttpRequest implements ApiMessage {
+ private final String access_token;
+ private final String callback;
+ private final String fields;
+ private final String instance;
+ private final InstancesAddResourcePoliciesRequest instancesAddResourcePoliciesRequestResource;
+ private final String key;
+ private final String prettyPrint;
+ private final String quotaUser;
+ private final String requestId;
+ private final String userIp;
+
+ private AddResourcePoliciesInstanceHttpRequest() {
+ this.access_token = null;
+ this.callback = null;
+ this.fields = null;
+ this.instance = null;
+ this.instancesAddResourcePoliciesRequestResource = null;
+ this.key = null;
+ this.prettyPrint = null;
+ this.quotaUser = null;
+ this.requestId = null;
+ this.userIp = null;
+ }
+
+ private AddResourcePoliciesInstanceHttpRequest(
+ String access_token,
+ String callback,
+ String fields,
+ String instance,
+ InstancesAddResourcePoliciesRequest instancesAddResourcePoliciesRequestResource,
+ String key,
+ String prettyPrint,
+ String quotaUser,
+ String requestId,
+ String userIp) {
+ this.access_token = access_token;
+ this.callback = callback;
+ this.fields = fields;
+ this.instance = instance;
+ this.instancesAddResourcePoliciesRequestResource = instancesAddResourcePoliciesRequestResource;
+ this.key = key;
+ this.prettyPrint = prettyPrint;
+ this.quotaUser = quotaUser;
+ this.requestId = requestId;
+ this.userIp = userIp;
+ }
+
+ @Override
+ public Object getFieldValue(String fieldName) {
+ if ("access_token".equals(fieldName)) {
+ return access_token;
+ }
+ if ("callback".equals(fieldName)) {
+ return callback;
+ }
+ if ("fields".equals(fieldName)) {
+ return fields;
+ }
+ if ("instance".equals(fieldName)) {
+ return instance;
+ }
+ if ("instancesAddResourcePoliciesRequestResource".equals(fieldName)) {
+ return instancesAddResourcePoliciesRequestResource;
+ }
+ if ("key".equals(fieldName)) {
+ return key;
+ }
+ if ("prettyPrint".equals(fieldName)) {
+ return prettyPrint;
+ }
+ if ("quotaUser".equals(fieldName)) {
+ return quotaUser;
+ }
+ if ("requestId".equals(fieldName)) {
+ return requestId;
+ }
+ if ("userIp".equals(fieldName)) {
+ return userIp;
+ }
+ return null;
+ }
+
+ @Nullable
+ @Override
+ public InstancesAddResourcePoliciesRequest getApiMessageRequestBody() {
+ return instancesAddResourcePoliciesRequestResource;
+ }
+
+ @Nullable
+ @Override
+ /**
+ * The fields that should be serialized (even if they have empty values). If the containing
+ * message object has a non-null fieldmask, then all the fields in the field mask (and only those
+ * fields in the field mask) will be serialized. If the containing object does not have a
+ * fieldmask, then only non-empty fields will be serialized.
+ */
+ public List getFieldMask() {
+ return null;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ /**
+ * The instance name for this request. It must have the format
+ * `{project}/zones/{zone}/instances/{instance}/addResourcePolicies`. \`{instance}\` must start
+ * with a letter, and contain only letters (\`[A-Za-z]\`), numbers (\`[0-9]\`), dashes (\`-\`),
+ * * underscores (\`_\`), periods (\`.\`), tildes (\`~\`), plus (\`+\`) or percent * signs
+ * (\`%\`). It must be between 3 and 255 characters in length, and it * must not start with
+ * \`"goog"\`.
+ */
+ public String getInstance() {
+ return instance;
+ }
+
+ public InstancesAddResourcePoliciesRequest getInstancesAddResourcePoliciesRequestResource() {
+ return instancesAddResourcePoliciesRequestResource;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /**
+ * An optional request ID to identify requests. Specify a unique request ID so that if you must
+ * retry your request, the server will know to ignore the request if it has already been
+ * completed.
+ *
+ * For example, consider a situation where you make an initial request and the request times
+ * out. If you make the request again with the same request ID, the server can check if original
+ * operation with the same request ID was received, and if so, will ignore the second request.
+ * This prevents clients from accidentally creating duplicate commitments.
+ *
+ *
The request ID must be a valid UUID with the exception that zero UUID is not supported
+ * (00000000-0000-0000-0000-000000000000).
+ */
+ public String getRequestId() {
+ return requestId;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(AddResourcePoliciesInstanceHttpRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ public static AddResourcePoliciesInstanceHttpRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final AddResourcePoliciesInstanceHttpRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new AddResourcePoliciesInstanceHttpRequest();
+ }
+
+ public static class Builder {
+ private String access_token;
+ private String callback;
+ private String fields;
+ private String instance;
+ private InstancesAddResourcePoliciesRequest instancesAddResourcePoliciesRequestResource;
+ private String key;
+ private String prettyPrint;
+ private String quotaUser;
+ private String requestId;
+ private String userIp;
+
+ Builder() {}
+
+ public Builder mergeFrom(AddResourcePoliciesInstanceHttpRequest other) {
+ if (other == AddResourcePoliciesInstanceHttpRequest.getDefaultInstance()) return this;
+ if (other.getAccessToken() != null) {
+ this.access_token = other.access_token;
+ }
+ if (other.getCallback() != null) {
+ this.callback = other.callback;
+ }
+ if (other.getFields() != null) {
+ this.fields = other.fields;
+ }
+ if (other.getInstance() != null) {
+ this.instance = other.instance;
+ }
+ if (other.getInstancesAddResourcePoliciesRequestResource() != null) {
+ this.instancesAddResourcePoliciesRequestResource =
+ other.instancesAddResourcePoliciesRequestResource;
+ }
+ if (other.getKey() != null) {
+ this.key = other.key;
+ }
+ if (other.getPrettyPrint() != null) {
+ this.prettyPrint = other.prettyPrint;
+ }
+ if (other.getQuotaUser() != null) {
+ this.quotaUser = other.quotaUser;
+ }
+ if (other.getRequestId() != null) {
+ this.requestId = other.requestId;
+ }
+ if (other.getUserIp() != null) {
+ this.userIp = other.userIp;
+ }
+ return this;
+ }
+
+ Builder(AddResourcePoliciesInstanceHttpRequest source) {
+ this.access_token = source.access_token;
+ this.callback = source.callback;
+ this.fields = source.fields;
+ this.instance = source.instance;
+ this.instancesAddResourcePoliciesRequestResource =
+ source.instancesAddResourcePoliciesRequestResource;
+ this.key = source.key;
+ this.prettyPrint = source.prettyPrint;
+ this.quotaUser = source.quotaUser;
+ this.requestId = source.requestId;
+ this.userIp = source.userIp;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public Builder setAccessToken(String access_token) {
+ this.access_token = access_token;
+ return this;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public Builder setCallback(String callback) {
+ this.callback = callback;
+ return this;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public Builder setFields(String fields) {
+ this.fields = fields;
+ return this;
+ }
+
+ /**
+ * The instance name for this request. It must have the format
+ * `{project}/zones/{zone}/instances/{instance}/addResourcePolicies`. \`{instance}\` must start
+ * with a letter, and contain only letters (\`[A-Za-z]\`), numbers (\`[0-9]\`), dashes (\`-\`),
+ * * underscores (\`_\`), periods (\`.\`), tildes (\`~\`), plus (\`+\`) or percent *
+ * signs (\`%\`). It must be between 3 and 255 characters in length, and it * must not start
+ * with \`"goog"\`.
+ */
+ public String getInstance() {
+ return instance;
+ }
+
+ /**
+ * The instance name for this request. It must have the format
+ * `{project}/zones/{zone}/instances/{instance}/addResourcePolicies`. \`{instance}\` must start
+ * with a letter, and contain only letters (\`[A-Za-z]\`), numbers (\`[0-9]\`), dashes (\`-\`),
+ * * underscores (\`_\`), periods (\`.\`), tildes (\`~\`), plus (\`+\`) or percent *
+ * signs (\`%\`). It must be between 3 and 255 characters in length, and it * must not start
+ * with \`"goog"\`.
+ */
+ public Builder setInstance(String instance) {
+ this.instance = instance;
+ return this;
+ }
+
+ public InstancesAddResourcePoliciesRequest getInstancesAddResourcePoliciesRequestResource() {
+ return instancesAddResourcePoliciesRequestResource;
+ }
+
+ public Builder setInstancesAddResourcePoliciesRequestResource(
+ InstancesAddResourcePoliciesRequest instancesAddResourcePoliciesRequestResource) {
+ this.instancesAddResourcePoliciesRequestResource =
+ instancesAddResourcePoliciesRequestResource;
+ return this;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public Builder setKey(String key) {
+ this.key = key;
+ return this;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public Builder setPrettyPrint(String prettyPrint) {
+ this.prettyPrint = prettyPrint;
+ return this;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /** Alternative to userIp. */
+ public Builder setQuotaUser(String quotaUser) {
+ this.quotaUser = quotaUser;
+ 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).
+ */
+ public 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 Builder setRequestId(String requestId) {
+ this.requestId = requestId;
+ return this;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public Builder setUserIp(String userIp) {
+ this.userIp = userIp;
+ return this;
+ }
+
+ public AddResourcePoliciesInstanceHttpRequest build() {
+ String missing = "";
+
+ if (instance == null) {
+ missing += " instance";
+ }
+
+ if (!missing.isEmpty()) {
+ throw new IllegalStateException("Missing required properties:" + missing);
+ }
+ return new AddResourcePoliciesInstanceHttpRequest(
+ access_token,
+ callback,
+ fields,
+ instance,
+ instancesAddResourcePoliciesRequestResource,
+ key,
+ prettyPrint,
+ quotaUser,
+ requestId,
+ userIp);
+ }
+
+ public Builder clone() {
+ Builder newBuilder = new Builder();
+ newBuilder.setAccessToken(this.access_token);
+ newBuilder.setCallback(this.callback);
+ newBuilder.setFields(this.fields);
+ newBuilder.setInstance(this.instance);
+ newBuilder.setInstancesAddResourcePoliciesRequestResource(
+ this.instancesAddResourcePoliciesRequestResource);
+ newBuilder.setKey(this.key);
+ newBuilder.setPrettyPrint(this.prettyPrint);
+ newBuilder.setQuotaUser(this.quotaUser);
+ newBuilder.setRequestId(this.requestId);
+ newBuilder.setUserIp(this.userIp);
+ return newBuilder;
+ }
+ }
+
+ @Override
+ public String toString() {
+ return "AddResourcePoliciesInstanceHttpRequest{"
+ + "access_token="
+ + access_token
+ + ", "
+ + "callback="
+ + callback
+ + ", "
+ + "fields="
+ + fields
+ + ", "
+ + "instance="
+ + instance
+ + ", "
+ + "instancesAddResourcePoliciesRequestResource="
+ + instancesAddResourcePoliciesRequestResource
+ + ", "
+ + "key="
+ + key
+ + ", "
+ + "prettyPrint="
+ + prettyPrint
+ + ", "
+ + "quotaUser="
+ + quotaUser
+ + ", "
+ + "requestId="
+ + requestId
+ + ", "
+ + "userIp="
+ + userIp
+ + "}";
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof AddResourcePoliciesInstanceHttpRequest) {
+ AddResourcePoliciesInstanceHttpRequest that = (AddResourcePoliciesInstanceHttpRequest) o;
+ return Objects.equals(this.access_token, that.getAccessToken())
+ && Objects.equals(this.callback, that.getCallback())
+ && Objects.equals(this.fields, that.getFields())
+ && Objects.equals(this.instance, that.getInstance())
+ && Objects.equals(
+ this.instancesAddResourcePoliciesRequestResource,
+ that.getInstancesAddResourcePoliciesRequestResource())
+ && Objects.equals(this.key, that.getKey())
+ && Objects.equals(this.prettyPrint, that.getPrettyPrint())
+ && Objects.equals(this.quotaUser, that.getQuotaUser())
+ && Objects.equals(this.requestId, that.getRequestId())
+ && Objects.equals(this.userIp, that.getUserIp());
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ access_token,
+ callback,
+ fields,
+ instance,
+ instancesAddResourcePoliciesRequestResource,
+ key,
+ prettyPrint,
+ quotaUser,
+ requestId,
+ userIp);
+ }
+}
diff --git a/src/main/java/com/google/cloud/compute/v1/AddressClient.java b/src/main/java/com/google/cloud/compute/v1/AddressClient.java
index aa285d317..b6dd2e5b4 100644
--- a/src/main/java/com/google/cloud/compute/v1/AddressClient.java
+++ b/src/main/java/com/google/cloud/compute/v1/AddressClient.java
@@ -159,20 +159,29 @@ public AddressStub getStub() {
*
*
* try (AddressClient addressClient = AddressClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (AddressesScopedList element : addressClient.aggregatedListAddresses(project).iterateAll()) {
+ * for (AddressesScopedList element : addressClient.aggregatedListAddresses(includeAllScopes, project).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Project ID for this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
- public final AggregatedListAddressesPagedResponse aggregatedListAddresses(ProjectName project) {
+ public final AggregatedListAddressesPagedResponse aggregatedListAddresses(
+ Boolean includeAllScopes, ProjectName project) {
AggregatedListAddressesHttpRequest request =
AggregatedListAddressesHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
.setProject(project == null ? null : project.toString())
.build();
return aggregatedListAddresses(request);
@@ -186,20 +195,31 @@ public final AggregatedListAddressesPagedResponse aggregatedListAddresses(Projec
*
*
* try (AddressClient addressClient = AddressClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (AddressesScopedList element : addressClient.aggregatedListAddresses(project.toString()).iterateAll()) {
+ * for (AddressesScopedList element : addressClient.aggregatedListAddresses(includeAllScopes, project.toString()).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Project ID for this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
- public final AggregatedListAddressesPagedResponse aggregatedListAddresses(String project) {
+ public final AggregatedListAddressesPagedResponse aggregatedListAddresses(
+ Boolean includeAllScopes, String project) {
AggregatedListAddressesHttpRequest request =
- AggregatedListAddressesHttpRequest.newBuilder().setProject(project).build();
+ AggregatedListAddressesHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
+ .setProject(project)
+ .build();
return aggregatedListAddresses(request);
}
@@ -211,8 +231,10 @@ public final AggregatedListAddressesPagedResponse aggregatedListAddresses(String
*
*
* try (AddressClient addressClient = AddressClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListAddressesHttpRequest request = AggregatedListAddressesHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* for (AddressesScopedList element : addressClient.aggregatedListAddresses(request).iterateAll()) {
@@ -238,8 +260,10 @@ public final AggregatedListAddressesPagedResponse aggregatedListAddresses(
*
*
* try (AddressClient addressClient = AddressClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListAddressesHttpRequest request = AggregatedListAddressesHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* ApiFuture<AggregatedListAddressesPagedResponse> future = addressClient.aggregatedListAddressesPagedCallable().futureCall(request);
@@ -265,8 +289,10 @@ public final AggregatedListAddressesPagedResponse aggregatedListAddresses(
*
*
* try (AddressClient addressClient = AddressClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListAddressesHttpRequest request = AggregatedListAddressesHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* while (true) {
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListAcceleratorTypesHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListAcceleratorTypesHttpRequest.java
index a3024401b..567d04710 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListAcceleratorTypesHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListAcceleratorTypesHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListAcceleratorTypesHttpRequest implements ApiMessa
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListAcceleratorTypesHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListAcceleratorTypesHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListAcceleratorTypesHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListAcceleratorTypesHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListAcceleratorTypesHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListAcceleratorTypesHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -653,6 +704,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -672,6 +724,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListAddressesHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListAddressesHttpRequest.java
index 26b39fd4f..a377d590e 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListAddressesHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListAddressesHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListAddressesHttpRequest implements ApiMessage {
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListAddressesHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListAddressesHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListAddressesHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListAddressesHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListAddressesHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListAddressesHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -652,6 +703,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -671,6 +723,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListAutoscalersHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListAutoscalersHttpRequest.java
index 1ad4ef60c..a80a857c8 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListAutoscalersHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListAutoscalersHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListAutoscalersHttpRequest implements ApiMessage {
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListAutoscalersHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListAutoscalersHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListAutoscalersHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListAutoscalersHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListAutoscalersHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListAutoscalersHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -652,6 +703,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -671,6 +723,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListBackendServicesHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListBackendServicesHttpRequest.java
index 59a868652..73f7101b1 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListBackendServicesHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListBackendServicesHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListBackendServicesHttpRequest implements ApiMessag
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListBackendServicesHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListBackendServicesHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListBackendServicesHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListBackendServicesHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListBackendServicesHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListBackendServicesHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -652,6 +703,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -671,6 +723,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListDiskTypesHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListDiskTypesHttpRequest.java
index 8113424ef..4a0f85645 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListDiskTypesHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListDiskTypesHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListDiskTypesHttpRequest implements ApiMessage {
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListDiskTypesHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListDiskTypesHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListDiskTypesHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListDiskTypesHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListDiskTypesHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListDiskTypesHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -652,6 +703,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -671,6 +723,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListDisksHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListDisksHttpRequest.java
index 982ae11a7..b98116231 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListDisksHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListDisksHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListDisksHttpRequest implements ApiMessage {
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListDisksHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListDisksHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListDisksHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListDisksHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListDisksHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListDisksHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -652,6 +703,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -671,6 +723,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListForwardingRulesHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListForwardingRulesHttpRequest.java
index 223a40ebb..5efc98002 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListForwardingRulesHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListForwardingRulesHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListForwardingRulesHttpRequest implements ApiMessag
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListForwardingRulesHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListForwardingRulesHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListForwardingRulesHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListForwardingRulesHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListForwardingRulesHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListForwardingRulesHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -652,6 +703,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -671,6 +723,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListGlobalOperationsHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListGlobalOperationsHttpRequest.java
index fb876c439..4bb51dfc4 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListGlobalOperationsHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListGlobalOperationsHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListGlobalOperationsHttpRequest implements ApiMessa
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListGlobalOperationsHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListGlobalOperationsHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListGlobalOperationsHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListGlobalOperationsHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListGlobalOperationsHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListGlobalOperationsHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -653,6 +704,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -672,6 +724,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListHealthChecksHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListHealthChecksHttpRequest.java
index a4ec05cbe..807789304 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListHealthChecksHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListHealthChecksHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListHealthChecksHttpRequest implements ApiMessage {
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListHealthChecksHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListHealthChecksHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListHealthChecksHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListHealthChecksHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListHealthChecksHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListHealthChecksHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -652,6 +703,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -671,6 +723,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupManagersHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupManagersHttpRequest.java
index 615ef10c1..04ff87184 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupManagersHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupManagersHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListInstanceGroupManagersHttpRequest implements Api
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListInstanceGroupManagersHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListInstanceGroupManagersHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListInstanceGroupManagersHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListInstanceGroupManagersHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListInstanceGroupManagersHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListInstanceGroupManagersHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -653,6 +704,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -672,6 +724,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupsHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupsHttpRequest.java
index f4346051f..1577ae45c 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupsHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListInstanceGroupsHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListInstanceGroupsHttpRequest implements ApiMessage
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListInstanceGroupsHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListInstanceGroupsHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListInstanceGroupsHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListInstanceGroupsHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListInstanceGroupsHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListInstanceGroupsHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -652,6 +703,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -671,6 +723,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListInstancesHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListInstancesHttpRequest.java
index b06df624a..4134c4346 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListInstancesHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListInstancesHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListInstancesHttpRequest implements ApiMessage {
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListInstancesHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListInstancesHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListInstancesHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListInstancesHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListInstancesHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListInstancesHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -652,6 +703,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -671,6 +723,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListInterconnectAttachmentsHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListInterconnectAttachmentsHttpRequest.java
index 85f25deef..6fa121991 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListInterconnectAttachmentsHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListInterconnectAttachmentsHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListInterconnectAttachmentsHttpRequest implements A
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListInterconnectAttachmentsHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListInterconnectAttachmentsHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListInterconnectAttachmentsHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -298,6 +317,9 @@ public Builder mergeFrom(AggregatedListInterconnectAttachmentsHttpRequest other)
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -330,6 +352,7 @@ public Builder mergeFrom(AggregatedListInterconnectAttachmentsHttpRequest other)
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -422,6 +445,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -573,6 +619,7 @@ public AggregatedListInterconnectAttachmentsHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -589,6 +636,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -616,6 +664,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -654,6 +705,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -673,6 +725,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListMachineTypesHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListMachineTypesHttpRequest.java
index b5ec87e49..c0b8dea73 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListMachineTypesHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListMachineTypesHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListMachineTypesHttpRequest implements ApiMessage {
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListMachineTypesHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListMachineTypesHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListMachineTypesHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListMachineTypesHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListMachineTypesHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListMachineTypesHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -652,6 +703,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -671,6 +723,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListNetworkEndpointGroupsHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListNetworkEndpointGroupsHttpRequest.java
index 43327b931..f808ae766 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListNetworkEndpointGroupsHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListNetworkEndpointGroupsHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListNetworkEndpointGroupsHttpRequest implements Api
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListNetworkEndpointGroupsHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListNetworkEndpointGroupsHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListNetworkEndpointGroupsHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListNetworkEndpointGroupsHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListNetworkEndpointGroupsHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListNetworkEndpointGroupsHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -653,6 +704,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -672,6 +724,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeGroupsHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeGroupsHttpRequest.java
index ad34cf431..9f80ef060 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeGroupsHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeGroupsHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListNodeGroupsHttpRequest implements ApiMessage {
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListNodeGroupsHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListNodeGroupsHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListNodeGroupsHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListNodeGroupsHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListNodeGroupsHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListNodeGroupsHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -652,6 +703,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -671,6 +723,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTemplatesHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTemplatesHttpRequest.java
index 45cef9ec8..64091b789 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTemplatesHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTemplatesHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListNodeTemplatesHttpRequest implements ApiMessage
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListNodeTemplatesHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListNodeTemplatesHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListNodeTemplatesHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListNodeTemplatesHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListNodeTemplatesHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListNodeTemplatesHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -652,6 +703,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -671,6 +723,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTypesHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTypesHttpRequest.java
index b200df552..007309b72 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTypesHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListNodeTypesHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListNodeTypesHttpRequest implements ApiMessage {
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListNodeTypesHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListNodeTypesHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListNodeTypesHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListNodeTypesHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListNodeTypesHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListNodeTypesHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -652,6 +703,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -671,6 +723,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListPacketMirroringsHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListPacketMirroringsHttpRequest.java
index 2ddcaee4e..fea60e75e 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListPacketMirroringsHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListPacketMirroringsHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListPacketMirroringsHttpRequest implements ApiMessa
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListPacketMirroringsHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListPacketMirroringsHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListPacketMirroringsHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListPacketMirroringsHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListPacketMirroringsHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListPacketMirroringsHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -653,6 +704,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -672,6 +724,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListRegionCommitmentsHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListRegionCommitmentsHttpRequest.java
index 28e61e22e..daf3539b4 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListRegionCommitmentsHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListRegionCommitmentsHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListRegionCommitmentsHttpRequest implements ApiMess
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListRegionCommitmentsHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListRegionCommitmentsHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListRegionCommitmentsHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListRegionCommitmentsHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListRegionCommitmentsHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListRegionCommitmentsHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -653,6 +704,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -672,6 +724,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListReservationsHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListReservationsHttpRequest.java
index 46d49d421..ccaba7199 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListReservationsHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListReservationsHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListReservationsHttpRequest implements ApiMessage {
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListReservationsHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListReservationsHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListReservationsHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListReservationsHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListReservationsHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListReservationsHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -652,6 +703,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -671,6 +723,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListResourcePoliciesHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListResourcePoliciesHttpRequest.java
index e3b23380e..6db609491 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListResourcePoliciesHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListResourcePoliciesHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListResourcePoliciesHttpRequest implements ApiMessa
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListResourcePoliciesHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListResourcePoliciesHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListResourcePoliciesHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListResourcePoliciesHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListResourcePoliciesHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListResourcePoliciesHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -653,6 +704,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -672,6 +724,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListRoutersHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListRoutersHttpRequest.java
index ef6f2d415..3e3bee662 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListRoutersHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListRoutersHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListRoutersHttpRequest implements ApiMessage {
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListRoutersHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListRoutersHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListRoutersHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListRoutersHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListRoutersHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListRoutersHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -652,6 +703,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -671,6 +723,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListSslCertificatesHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListSslCertificatesHttpRequest.java
index 75ca39693..0e1cfebf9 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListSslCertificatesHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListSslCertificatesHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListSslCertificatesHttpRequest implements ApiMessag
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListSslCertificatesHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListSslCertificatesHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListSslCertificatesHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListSslCertificatesHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListSslCertificatesHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListSslCertificatesHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -652,6 +703,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -671,6 +723,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListSubnetworksHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListSubnetworksHttpRequest.java
index d9f6cc19d..880974ed8 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListSubnetworksHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListSubnetworksHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListSubnetworksHttpRequest implements ApiMessage {
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListSubnetworksHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListSubnetworksHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListSubnetworksHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListSubnetworksHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListSubnetworksHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListSubnetworksHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -652,6 +703,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -671,6 +723,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetHttpProxiesHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetHttpProxiesHttpRequest.java
index 65e5d2098..414da453b 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetHttpProxiesHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetHttpProxiesHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListTargetHttpProxiesHttpRequest implements ApiMess
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListTargetHttpProxiesHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListTargetHttpProxiesHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListTargetHttpProxiesHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListTargetHttpProxiesHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListTargetHttpProxiesHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListTargetHttpProxiesHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -653,6 +704,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -672,6 +724,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetHttpsProxiesHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetHttpsProxiesHttpRequest.java
index 142ac139c..d50cfd7c5 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetHttpsProxiesHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetHttpsProxiesHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListTargetHttpsProxiesHttpRequest implements ApiMes
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListTargetHttpsProxiesHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListTargetHttpsProxiesHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListTargetHttpsProxiesHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListTargetHttpsProxiesHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListTargetHttpsProxiesHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListTargetHttpsProxiesHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -653,6 +704,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -672,6 +724,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetInstancesHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetInstancesHttpRequest.java
index 1349f8bb1..ff0fd30f1 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetInstancesHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetInstancesHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListTargetInstancesHttpRequest implements ApiMessag
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListTargetInstancesHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListTargetInstancesHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListTargetInstancesHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListTargetInstancesHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListTargetInstancesHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListTargetInstancesHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -652,6 +703,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -671,6 +723,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetPoolsHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetPoolsHttpRequest.java
index b605777da..9bbd28405 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetPoolsHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetPoolsHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListTargetPoolsHttpRequest implements ApiMessage {
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListTargetPoolsHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListTargetPoolsHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListTargetPoolsHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListTargetPoolsHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListTargetPoolsHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListTargetPoolsHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -652,6 +703,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -671,6 +723,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetVpnGatewaysHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetVpnGatewaysHttpRequest.java
index 8ea5b87b4..a0ab3dd9d 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetVpnGatewaysHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListTargetVpnGatewaysHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListTargetVpnGatewaysHttpRequest implements ApiMess
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListTargetVpnGatewaysHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListTargetVpnGatewaysHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListTargetVpnGatewaysHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListTargetVpnGatewaysHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListTargetVpnGatewaysHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListTargetVpnGatewaysHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -653,6 +704,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -672,6 +724,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListUrlMapsHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListUrlMapsHttpRequest.java
index 3f454766e..fc64ee31c 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListUrlMapsHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListUrlMapsHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListUrlMapsHttpRequest implements ApiMessage {
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListUrlMapsHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListUrlMapsHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListUrlMapsHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListUrlMapsHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListUrlMapsHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListUrlMapsHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -652,6 +703,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -671,6 +723,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListVpnGatewaysHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListVpnGatewaysHttpRequest.java
index 9d3bfb3b0..53550d401 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListVpnGatewaysHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListVpnGatewaysHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListVpnGatewaysHttpRequest implements ApiMessage {
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListVpnGatewaysHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListVpnGatewaysHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListVpnGatewaysHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListVpnGatewaysHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListVpnGatewaysHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListVpnGatewaysHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -652,6 +703,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -671,6 +723,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/AggregatedListVpnTunnelsHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AggregatedListVpnTunnelsHttpRequest.java
index 801f9642e..859554cdf 100644
--- a/src/main/java/com/google/cloud/compute/v1/AggregatedListVpnTunnelsHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/AggregatedListVpnTunnelsHttpRequest.java
@@ -33,6 +33,7 @@ public final class AggregatedListVpnTunnelsHttpRequest implements ApiMessage {
private final String callback;
private final String fields;
private final String filter;
+ private final Boolean includeAllScopes;
private final String key;
private final Integer maxResults;
private final String orderBy;
@@ -47,6 +48,7 @@ private AggregatedListVpnTunnelsHttpRequest() {
this.callback = null;
this.fields = null;
this.filter = null;
+ this.includeAllScopes = null;
this.key = null;
this.maxResults = null;
this.orderBy = null;
@@ -62,6 +64,7 @@ private AggregatedListVpnTunnelsHttpRequest(
String callback,
String fields,
String filter,
+ Boolean includeAllScopes,
String key,
Integer maxResults,
String orderBy,
@@ -74,6 +77,7 @@ private AggregatedListVpnTunnelsHttpRequest(
this.callback = callback;
this.fields = fields;
this.filter = filter;
+ this.includeAllScopes = includeAllScopes;
this.key = key;
this.maxResults = maxResults;
this.orderBy = orderBy;
@@ -98,6 +102,9 @@ public Object getFieldValue(String fieldName) {
if ("filter".equals(fieldName)) {
return filter;
}
+ if ("includeAllScopes".equals(fieldName)) {
+ return includeAllScopes;
+ }
if ("key".equals(fieldName)) {
return key;
}
@@ -181,6 +188,17 @@ public String getFilter() {
return filter;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no effect
+ * as new resource types will always include every visible scope for each scope type in response.
+ * For resource types which predate this field, if this flag is omitted or false, only scopes of
+ * the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -272,6 +290,7 @@ public static class Builder {
private String callback;
private String fields;
private String filter;
+ private Boolean includeAllScopes;
private String key;
private Integer maxResults;
private String orderBy;
@@ -297,6 +316,9 @@ public Builder mergeFrom(AggregatedListVpnTunnelsHttpRequest other) {
if (other.getFilter() != null) {
this.filter = other.filter;
}
+ if (other.getIncludeAllScopes() != null) {
+ this.includeAllScopes = other.includeAllScopes;
+ }
if (other.getKey() != null) {
this.key = other.key;
}
@@ -329,6 +351,7 @@ public Builder mergeFrom(AggregatedListVpnTunnelsHttpRequest other) {
this.callback = source.callback;
this.fields = source.fields;
this.filter = source.filter;
+ this.includeAllScopes = source.includeAllScopes;
this.key = source.key;
this.maxResults = source.maxResults;
this.orderBy = source.orderBy;
@@ -421,6 +444,29 @@ public Builder setFilter(String filter) {
return this;
}
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Boolean getIncludeAllScopes() {
+ return includeAllScopes;
+ }
+
+ /**
+ * Indicates whether every visible scope for each scope type (zone, region, global) should be
+ * included in the response. For new resource types added after this field, the flag has no
+ * effect as new resource types will always include every visible scope for each scope type in
+ * response. For resource types which predate this field, if this flag is omitted or false, only
+ * scopes of the scope types where the resource type is expected to be found will be included.
+ */
+ public Builder setIncludeAllScopes(Boolean includeAllScopes) {
+ this.includeAllScopes = includeAllScopes;
+ return this;
+ }
+
/** API key. Required unless you provide an OAuth 2.0 token. */
public String getKey() {
return key;
@@ -572,6 +618,7 @@ public AggregatedListVpnTunnelsHttpRequest build() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
@@ -588,6 +635,7 @@ public Builder clone() {
newBuilder.setCallback(this.callback);
newBuilder.setFields(this.fields);
newBuilder.setFilter(this.filter);
+ newBuilder.setIncludeAllScopes(this.includeAllScopes);
newBuilder.setKey(this.key);
newBuilder.setMaxResults(this.maxResults);
newBuilder.setOrderBy(this.orderBy);
@@ -615,6 +663,9 @@ public String toString() {
+ "filter="
+ filter
+ ", "
+ + "includeAllScopes="
+ + includeAllScopes
+ + ", "
+ "key="
+ key
+ ", "
@@ -652,6 +703,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.callback, that.getCallback())
&& Objects.equals(this.fields, that.getFields())
&& Objects.equals(this.filter, that.getFilter())
+ && Objects.equals(this.includeAllScopes, that.getIncludeAllScopes())
&& Objects.equals(this.key, that.getKey())
&& Objects.equals(this.maxResults, that.getMaxResults())
&& Objects.equals(this.orderBy, that.getOrderBy())
@@ -671,6 +723,7 @@ public int hashCode() {
callback,
fields,
filter,
+ includeAllScopes,
key,
maxResults,
orderBy,
diff --git a/src/main/java/com/google/cloud/compute/v1/ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest.java
new file mode 100644
index 000000000..6236b83bd
--- /dev/null
+++ b/src/main/java/com/google/cloud/compute/v1/ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest.java
@@ -0,0 +1,487 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+package com.google.cloud.compute.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.ApiMessage;
+import java.util.List;
+import java.util.Objects;
+import javax.annotation.Generated;
+import javax.annotation.Nullable;
+
+@Generated("by GAPIC")
+@BetaApi
+/**
+ * Request object for method compute.instanceGroupManagers.applyUpdatesToInstances. Applies changes
+ * to selected instances on the managed instance group. This method can be used to apply new
+ * overrides and/or new versions.
+ */
+public final class ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest implements ApiMessage {
+ private final String access_token;
+ private final String callback;
+ private final String fields;
+ private final String instanceGroupManager;
+ private final InstanceGroupManagersApplyUpdatesRequest
+ instanceGroupManagersApplyUpdatesRequestResource;
+ private final String key;
+ private final String prettyPrint;
+ private final String quotaUser;
+ private final String userIp;
+
+ private ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest() {
+ this.access_token = null;
+ this.callback = null;
+ this.fields = null;
+ this.instanceGroupManager = null;
+ this.instanceGroupManagersApplyUpdatesRequestResource = null;
+ this.key = null;
+ this.prettyPrint = null;
+ this.quotaUser = null;
+ this.userIp = null;
+ }
+
+ private ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest(
+ String access_token,
+ String callback,
+ String fields,
+ String instanceGroupManager,
+ InstanceGroupManagersApplyUpdatesRequest instanceGroupManagersApplyUpdatesRequestResource,
+ String key,
+ String prettyPrint,
+ String quotaUser,
+ String userIp) {
+ this.access_token = access_token;
+ this.callback = callback;
+ this.fields = fields;
+ this.instanceGroupManager = instanceGroupManager;
+ this.instanceGroupManagersApplyUpdatesRequestResource =
+ instanceGroupManagersApplyUpdatesRequestResource;
+ this.key = key;
+ this.prettyPrint = prettyPrint;
+ this.quotaUser = quotaUser;
+ this.userIp = userIp;
+ }
+
+ @Override
+ public Object getFieldValue(String fieldName) {
+ if ("access_token".equals(fieldName)) {
+ return access_token;
+ }
+ if ("callback".equals(fieldName)) {
+ return callback;
+ }
+ if ("fields".equals(fieldName)) {
+ return fields;
+ }
+ if ("instanceGroupManager".equals(fieldName)) {
+ return instanceGroupManager;
+ }
+ if ("instanceGroupManagersApplyUpdatesRequestResource".equals(fieldName)) {
+ return instanceGroupManagersApplyUpdatesRequestResource;
+ }
+ if ("key".equals(fieldName)) {
+ return key;
+ }
+ if ("prettyPrint".equals(fieldName)) {
+ return prettyPrint;
+ }
+ if ("quotaUser".equals(fieldName)) {
+ return quotaUser;
+ }
+ if ("userIp".equals(fieldName)) {
+ return userIp;
+ }
+ return null;
+ }
+
+ @Nullable
+ @Override
+ public InstanceGroupManagersApplyUpdatesRequest getApiMessageRequestBody() {
+ return instanceGroupManagersApplyUpdatesRequestResource;
+ }
+
+ @Nullable
+ @Override
+ /**
+ * The fields that should be serialized (even if they have empty values). If the containing
+ * message object has a non-null fieldmask, then all the fields in the field mask (and only those
+ * fields in the field mask) will be serialized. If the containing object does not have a
+ * fieldmask, then only non-empty fields will be serialized.
+ */
+ public List getFieldMask() {
+ return null;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ /**
+ * The name of the managed instance group, should conform to RFC1035. It must have the format
+ * `{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances`.
+ * \`{instanceGroupManager}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public String getInstanceGroupManager() {
+ return instanceGroupManager;
+ }
+
+ /** InstanceGroupManagers.applyUpdatesToInstances */
+ public InstanceGroupManagersApplyUpdatesRequest
+ getInstanceGroupManagersApplyUpdatesRequestResource() {
+ return instanceGroupManagersApplyUpdatesRequestResource;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ public static ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest();
+ }
+
+ public static class Builder {
+ private String access_token;
+ private String callback;
+ private String fields;
+ private String instanceGroupManager;
+ private InstanceGroupManagersApplyUpdatesRequest
+ instanceGroupManagersApplyUpdatesRequestResource;
+ private String key;
+ private String prettyPrint;
+ private String quotaUser;
+ private String userIp;
+
+ Builder() {}
+
+ public Builder mergeFrom(ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest other) {
+ if (other == ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest.getDefaultInstance())
+ return this;
+ if (other.getAccessToken() != null) {
+ this.access_token = other.access_token;
+ }
+ if (other.getCallback() != null) {
+ this.callback = other.callback;
+ }
+ if (other.getFields() != null) {
+ this.fields = other.fields;
+ }
+ if (other.getInstanceGroupManager() != null) {
+ this.instanceGroupManager = other.instanceGroupManager;
+ }
+ if (other.getInstanceGroupManagersApplyUpdatesRequestResource() != null) {
+ this.instanceGroupManagersApplyUpdatesRequestResource =
+ other.instanceGroupManagersApplyUpdatesRequestResource;
+ }
+ if (other.getKey() != null) {
+ this.key = other.key;
+ }
+ if (other.getPrettyPrint() != null) {
+ this.prettyPrint = other.prettyPrint;
+ }
+ if (other.getQuotaUser() != null) {
+ this.quotaUser = other.quotaUser;
+ }
+ if (other.getUserIp() != null) {
+ this.userIp = other.userIp;
+ }
+ return this;
+ }
+
+ Builder(ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest source) {
+ this.access_token = source.access_token;
+ this.callback = source.callback;
+ this.fields = source.fields;
+ this.instanceGroupManager = source.instanceGroupManager;
+ this.instanceGroupManagersApplyUpdatesRequestResource =
+ source.instanceGroupManagersApplyUpdatesRequestResource;
+ this.key = source.key;
+ this.prettyPrint = source.prettyPrint;
+ this.quotaUser = source.quotaUser;
+ this.userIp = source.userIp;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public Builder setAccessToken(String access_token) {
+ this.access_token = access_token;
+ return this;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public Builder setCallback(String callback) {
+ this.callback = callback;
+ return this;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public Builder setFields(String fields) {
+ this.fields = fields;
+ return this;
+ }
+
+ /**
+ * The name of the managed instance group, should conform to RFC1035. It must have the format
+ * `{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances`.
+ * \`{instanceGroupManager}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public String getInstanceGroupManager() {
+ return instanceGroupManager;
+ }
+
+ /**
+ * The name of the managed instance group, should conform to RFC1035. It must have the format
+ * `{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances`.
+ * \`{instanceGroupManager}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public Builder setInstanceGroupManager(String instanceGroupManager) {
+ this.instanceGroupManager = instanceGroupManager;
+ return this;
+ }
+
+ /** InstanceGroupManagers.applyUpdatesToInstances */
+ public InstanceGroupManagersApplyUpdatesRequest
+ getInstanceGroupManagersApplyUpdatesRequestResource() {
+ return instanceGroupManagersApplyUpdatesRequestResource;
+ }
+
+ /** InstanceGroupManagers.applyUpdatesToInstances */
+ public Builder setInstanceGroupManagersApplyUpdatesRequestResource(
+ InstanceGroupManagersApplyUpdatesRequest instanceGroupManagersApplyUpdatesRequestResource) {
+ this.instanceGroupManagersApplyUpdatesRequestResource =
+ instanceGroupManagersApplyUpdatesRequestResource;
+ return this;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public Builder setKey(String key) {
+ this.key = key;
+ return this;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public Builder setPrettyPrint(String prettyPrint) {
+ this.prettyPrint = prettyPrint;
+ return this;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /** Alternative to userIp. */
+ public Builder setQuotaUser(String quotaUser) {
+ this.quotaUser = quotaUser;
+ return this;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public Builder setUserIp(String userIp) {
+ this.userIp = userIp;
+ return this;
+ }
+
+ public ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest build() {
+ String missing = "";
+
+ if (instanceGroupManager == null) {
+ missing += " instanceGroupManager";
+ }
+
+ if (!missing.isEmpty()) {
+ throw new IllegalStateException("Missing required properties:" + missing);
+ }
+ return new ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest(
+ access_token,
+ callback,
+ fields,
+ instanceGroupManager,
+ instanceGroupManagersApplyUpdatesRequestResource,
+ key,
+ prettyPrint,
+ quotaUser,
+ userIp);
+ }
+
+ public Builder clone() {
+ Builder newBuilder = new Builder();
+ newBuilder.setAccessToken(this.access_token);
+ newBuilder.setCallback(this.callback);
+ newBuilder.setFields(this.fields);
+ newBuilder.setInstanceGroupManager(this.instanceGroupManager);
+ newBuilder.setInstanceGroupManagersApplyUpdatesRequestResource(
+ this.instanceGroupManagersApplyUpdatesRequestResource);
+ newBuilder.setKey(this.key);
+ newBuilder.setPrettyPrint(this.prettyPrint);
+ newBuilder.setQuotaUser(this.quotaUser);
+ newBuilder.setUserIp(this.userIp);
+ return newBuilder;
+ }
+ }
+
+ @Override
+ public String toString() {
+ return "ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest{"
+ + "access_token="
+ + access_token
+ + ", "
+ + "callback="
+ + callback
+ + ", "
+ + "fields="
+ + fields
+ + ", "
+ + "instanceGroupManager="
+ + instanceGroupManager
+ + ", "
+ + "instanceGroupManagersApplyUpdatesRequestResource="
+ + instanceGroupManagersApplyUpdatesRequestResource
+ + ", "
+ + "key="
+ + key
+ + ", "
+ + "prettyPrint="
+ + prettyPrint
+ + ", "
+ + "quotaUser="
+ + quotaUser
+ + ", "
+ + "userIp="
+ + userIp
+ + "}";
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest) {
+ ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest that =
+ (ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest) o;
+ return Objects.equals(this.access_token, that.getAccessToken())
+ && Objects.equals(this.callback, that.getCallback())
+ && Objects.equals(this.fields, that.getFields())
+ && Objects.equals(this.instanceGroupManager, that.getInstanceGroupManager())
+ && Objects.equals(
+ this.instanceGroupManagersApplyUpdatesRequestResource,
+ that.getInstanceGroupManagersApplyUpdatesRequestResource())
+ && Objects.equals(this.key, that.getKey())
+ && Objects.equals(this.prettyPrint, that.getPrettyPrint())
+ && Objects.equals(this.quotaUser, that.getQuotaUser())
+ && Objects.equals(this.userIp, that.getUserIp());
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ access_token,
+ callback,
+ fields,
+ instanceGroupManager,
+ instanceGroupManagersApplyUpdatesRequestResource,
+ key,
+ prettyPrint,
+ quotaUser,
+ userIp);
+ }
+}
diff --git a/src/main/java/com/google/cloud/compute/v1/ApplyUpdatesToInstancesRegionInstanceGroupManagerHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/ApplyUpdatesToInstancesRegionInstanceGroupManagerHttpRequest.java
new file mode 100644
index 000000000..128b3c250
--- /dev/null
+++ b/src/main/java/com/google/cloud/compute/v1/ApplyUpdatesToInstancesRegionInstanceGroupManagerHttpRequest.java
@@ -0,0 +1,491 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+package com.google.cloud.compute.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.ApiMessage;
+import java.util.List;
+import java.util.Objects;
+import javax.annotation.Generated;
+import javax.annotation.Nullable;
+
+@Generated("by GAPIC")
+@BetaApi
+/**
+ * Request object for method compute.regionInstanceGroupManagers.applyUpdatesToInstances. Apply
+ * updates to selected instances the managed instance group.
+ */
+public final class ApplyUpdatesToInstancesRegionInstanceGroupManagerHttpRequest
+ implements ApiMessage {
+ private final String access_token;
+ private final String callback;
+ private final String fields;
+ private final String instanceGroupManager;
+ private final String key;
+ private final String prettyPrint;
+ private final String quotaUser;
+ private final RegionInstanceGroupManagersApplyUpdatesRequest
+ regionInstanceGroupManagersApplyUpdatesRequestResource;
+ private final String userIp;
+
+ private ApplyUpdatesToInstancesRegionInstanceGroupManagerHttpRequest() {
+ this.access_token = null;
+ this.callback = null;
+ this.fields = null;
+ this.instanceGroupManager = null;
+ this.key = null;
+ this.prettyPrint = null;
+ this.quotaUser = null;
+ this.regionInstanceGroupManagersApplyUpdatesRequestResource = null;
+ this.userIp = null;
+ }
+
+ private ApplyUpdatesToInstancesRegionInstanceGroupManagerHttpRequest(
+ String access_token,
+ String callback,
+ String fields,
+ String instanceGroupManager,
+ String key,
+ String prettyPrint,
+ String quotaUser,
+ RegionInstanceGroupManagersApplyUpdatesRequest
+ regionInstanceGroupManagersApplyUpdatesRequestResource,
+ String userIp) {
+ this.access_token = access_token;
+ this.callback = callback;
+ this.fields = fields;
+ this.instanceGroupManager = instanceGroupManager;
+ this.key = key;
+ this.prettyPrint = prettyPrint;
+ this.quotaUser = quotaUser;
+ this.regionInstanceGroupManagersApplyUpdatesRequestResource =
+ regionInstanceGroupManagersApplyUpdatesRequestResource;
+ this.userIp = userIp;
+ }
+
+ @Override
+ public Object getFieldValue(String fieldName) {
+ if ("access_token".equals(fieldName)) {
+ return access_token;
+ }
+ if ("callback".equals(fieldName)) {
+ return callback;
+ }
+ if ("fields".equals(fieldName)) {
+ return fields;
+ }
+ if ("instanceGroupManager".equals(fieldName)) {
+ return instanceGroupManager;
+ }
+ if ("key".equals(fieldName)) {
+ return key;
+ }
+ if ("prettyPrint".equals(fieldName)) {
+ return prettyPrint;
+ }
+ if ("quotaUser".equals(fieldName)) {
+ return quotaUser;
+ }
+ if ("regionInstanceGroupManagersApplyUpdatesRequestResource".equals(fieldName)) {
+ return regionInstanceGroupManagersApplyUpdatesRequestResource;
+ }
+ if ("userIp".equals(fieldName)) {
+ return userIp;
+ }
+ return null;
+ }
+
+ @Nullable
+ @Override
+ public RegionInstanceGroupManagersApplyUpdatesRequest getApiMessageRequestBody() {
+ return regionInstanceGroupManagersApplyUpdatesRequestResource;
+ }
+
+ @Nullable
+ @Override
+ /**
+ * The fields that should be serialized (even if they have empty values). If the containing
+ * message object has a non-null fieldmask, then all the fields in the field mask (and only those
+ * fields in the field mask) will be serialized. If the containing object does not have a
+ * fieldmask, then only non-empty fields will be serialized.
+ */
+ public List getFieldMask() {
+ return null;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ /**
+ * The name of the managed instance group, should conform to RFC1035. It must have the format
+ * `{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances`.
+ * \`{instanceGroupManager}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public String getInstanceGroupManager() {
+ return instanceGroupManager;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /** InstanceGroupManagers.applyUpdatesToInstances */
+ public RegionInstanceGroupManagersApplyUpdatesRequest
+ getRegionInstanceGroupManagersApplyUpdatesRequestResource() {
+ return regionInstanceGroupManagersApplyUpdatesRequestResource;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ ApplyUpdatesToInstancesRegionInstanceGroupManagerHttpRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ public static ApplyUpdatesToInstancesRegionInstanceGroupManagerHttpRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final ApplyUpdatesToInstancesRegionInstanceGroupManagerHttpRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new ApplyUpdatesToInstancesRegionInstanceGroupManagerHttpRequest();
+ }
+
+ public static class Builder {
+ private String access_token;
+ private String callback;
+ private String fields;
+ private String instanceGroupManager;
+ private String key;
+ private String prettyPrint;
+ private String quotaUser;
+ private RegionInstanceGroupManagersApplyUpdatesRequest
+ regionInstanceGroupManagersApplyUpdatesRequestResource;
+ private String userIp;
+
+ Builder() {}
+
+ public Builder mergeFrom(ApplyUpdatesToInstancesRegionInstanceGroupManagerHttpRequest other) {
+ if (other
+ == ApplyUpdatesToInstancesRegionInstanceGroupManagerHttpRequest.getDefaultInstance())
+ return this;
+ if (other.getAccessToken() != null) {
+ this.access_token = other.access_token;
+ }
+ if (other.getCallback() != null) {
+ this.callback = other.callback;
+ }
+ if (other.getFields() != null) {
+ this.fields = other.fields;
+ }
+ if (other.getInstanceGroupManager() != null) {
+ this.instanceGroupManager = other.instanceGroupManager;
+ }
+ if (other.getKey() != null) {
+ this.key = other.key;
+ }
+ if (other.getPrettyPrint() != null) {
+ this.prettyPrint = other.prettyPrint;
+ }
+ if (other.getQuotaUser() != null) {
+ this.quotaUser = other.quotaUser;
+ }
+ if (other.getRegionInstanceGroupManagersApplyUpdatesRequestResource() != null) {
+ this.regionInstanceGroupManagersApplyUpdatesRequestResource =
+ other.regionInstanceGroupManagersApplyUpdatesRequestResource;
+ }
+ if (other.getUserIp() != null) {
+ this.userIp = other.userIp;
+ }
+ return this;
+ }
+
+ Builder(ApplyUpdatesToInstancesRegionInstanceGroupManagerHttpRequest source) {
+ this.access_token = source.access_token;
+ this.callback = source.callback;
+ this.fields = source.fields;
+ this.instanceGroupManager = source.instanceGroupManager;
+ this.key = source.key;
+ this.prettyPrint = source.prettyPrint;
+ this.quotaUser = source.quotaUser;
+ this.regionInstanceGroupManagersApplyUpdatesRequestResource =
+ source.regionInstanceGroupManagersApplyUpdatesRequestResource;
+ this.userIp = source.userIp;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public Builder setAccessToken(String access_token) {
+ this.access_token = access_token;
+ return this;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public Builder setCallback(String callback) {
+ this.callback = callback;
+ return this;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public Builder setFields(String fields) {
+ this.fields = fields;
+ return this;
+ }
+
+ /**
+ * The name of the managed instance group, should conform to RFC1035. It must have the format
+ * `{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances`.
+ * \`{instanceGroupManager}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public String getInstanceGroupManager() {
+ return instanceGroupManager;
+ }
+
+ /**
+ * The name of the managed instance group, should conform to RFC1035. It must have the format
+ * `{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances`.
+ * \`{instanceGroupManager}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public Builder setInstanceGroupManager(String instanceGroupManager) {
+ this.instanceGroupManager = instanceGroupManager;
+ return this;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public Builder setKey(String key) {
+ this.key = key;
+ return this;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public Builder setPrettyPrint(String prettyPrint) {
+ this.prettyPrint = prettyPrint;
+ return this;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /** Alternative to userIp. */
+ public Builder setQuotaUser(String quotaUser) {
+ this.quotaUser = quotaUser;
+ return this;
+ }
+
+ /** InstanceGroupManagers.applyUpdatesToInstances */
+ public RegionInstanceGroupManagersApplyUpdatesRequest
+ getRegionInstanceGroupManagersApplyUpdatesRequestResource() {
+ return regionInstanceGroupManagersApplyUpdatesRequestResource;
+ }
+
+ /** InstanceGroupManagers.applyUpdatesToInstances */
+ public Builder setRegionInstanceGroupManagersApplyUpdatesRequestResource(
+ RegionInstanceGroupManagersApplyUpdatesRequest
+ regionInstanceGroupManagersApplyUpdatesRequestResource) {
+ this.regionInstanceGroupManagersApplyUpdatesRequestResource =
+ regionInstanceGroupManagersApplyUpdatesRequestResource;
+ return this;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public Builder setUserIp(String userIp) {
+ this.userIp = userIp;
+ return this;
+ }
+
+ public ApplyUpdatesToInstancesRegionInstanceGroupManagerHttpRequest build() {
+ String missing = "";
+
+ if (instanceGroupManager == null) {
+ missing += " instanceGroupManager";
+ }
+
+ if (!missing.isEmpty()) {
+ throw new IllegalStateException("Missing required properties:" + missing);
+ }
+ return new ApplyUpdatesToInstancesRegionInstanceGroupManagerHttpRequest(
+ access_token,
+ callback,
+ fields,
+ instanceGroupManager,
+ key,
+ prettyPrint,
+ quotaUser,
+ regionInstanceGroupManagersApplyUpdatesRequestResource,
+ userIp);
+ }
+
+ public Builder clone() {
+ Builder newBuilder = new Builder();
+ newBuilder.setAccessToken(this.access_token);
+ newBuilder.setCallback(this.callback);
+ newBuilder.setFields(this.fields);
+ newBuilder.setInstanceGroupManager(this.instanceGroupManager);
+ newBuilder.setKey(this.key);
+ newBuilder.setPrettyPrint(this.prettyPrint);
+ newBuilder.setQuotaUser(this.quotaUser);
+ newBuilder.setRegionInstanceGroupManagersApplyUpdatesRequestResource(
+ this.regionInstanceGroupManagersApplyUpdatesRequestResource);
+ newBuilder.setUserIp(this.userIp);
+ return newBuilder;
+ }
+ }
+
+ @Override
+ public String toString() {
+ return "ApplyUpdatesToInstancesRegionInstanceGroupManagerHttpRequest{"
+ + "access_token="
+ + access_token
+ + ", "
+ + "callback="
+ + callback
+ + ", "
+ + "fields="
+ + fields
+ + ", "
+ + "instanceGroupManager="
+ + instanceGroupManager
+ + ", "
+ + "key="
+ + key
+ + ", "
+ + "prettyPrint="
+ + prettyPrint
+ + ", "
+ + "quotaUser="
+ + quotaUser
+ + ", "
+ + "regionInstanceGroupManagersApplyUpdatesRequestResource="
+ + regionInstanceGroupManagersApplyUpdatesRequestResource
+ + ", "
+ + "userIp="
+ + userIp
+ + "}";
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof ApplyUpdatesToInstancesRegionInstanceGroupManagerHttpRequest) {
+ ApplyUpdatesToInstancesRegionInstanceGroupManagerHttpRequest that =
+ (ApplyUpdatesToInstancesRegionInstanceGroupManagerHttpRequest) o;
+ return Objects.equals(this.access_token, that.getAccessToken())
+ && Objects.equals(this.callback, that.getCallback())
+ && Objects.equals(this.fields, that.getFields())
+ && Objects.equals(this.instanceGroupManager, that.getInstanceGroupManager())
+ && Objects.equals(this.key, that.getKey())
+ && Objects.equals(this.prettyPrint, that.getPrettyPrint())
+ && Objects.equals(this.quotaUser, that.getQuotaUser())
+ && Objects.equals(
+ this.regionInstanceGroupManagersApplyUpdatesRequestResource,
+ that.getRegionInstanceGroupManagersApplyUpdatesRequestResource())
+ && Objects.equals(this.userIp, that.getUserIp());
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ access_token,
+ callback,
+ fields,
+ instanceGroupManager,
+ key,
+ prettyPrint,
+ quotaUser,
+ regionInstanceGroupManagersApplyUpdatesRequestResource,
+ userIp);
+ }
+}
diff --git a/src/main/java/com/google/cloud/compute/v1/AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest.java
new file mode 100644
index 000000000..e7515c357
--- /dev/null
+++ b/src/main/java/com/google/cloud/compute/v1/AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest.java
@@ -0,0 +1,560 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+package com.google.cloud.compute.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.ApiMessage;
+import java.util.List;
+import java.util.Objects;
+import javax.annotation.Generated;
+import javax.annotation.Nullable;
+
+@Generated("by GAPIC")
+@BetaApi
+/**
+ * Request object for method compute.globalNetworkEndpointGroups.attachNetworkEndpoints. Attach a
+ * network endpoint to the specified network endpoint group.
+ */
+public final class AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest
+ implements ApiMessage {
+ private final String access_token;
+ private final String callback;
+ private final String fields;
+ private final GlobalNetworkEndpointGroupsAttachEndpointsRequest
+ globalNetworkEndpointGroupsAttachEndpointsRequestResource;
+ private final String key;
+ private final String networkEndpointGroup;
+ private final String prettyPrint;
+ private final String quotaUser;
+ private final String requestId;
+ private final String userIp;
+
+ private AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest() {
+ this.access_token = null;
+ this.callback = null;
+ this.fields = null;
+ this.globalNetworkEndpointGroupsAttachEndpointsRequestResource = null;
+ this.key = null;
+ this.networkEndpointGroup = null;
+ this.prettyPrint = null;
+ this.quotaUser = null;
+ this.requestId = null;
+ this.userIp = null;
+ }
+
+ private AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest(
+ String access_token,
+ String callback,
+ String fields,
+ GlobalNetworkEndpointGroupsAttachEndpointsRequest
+ globalNetworkEndpointGroupsAttachEndpointsRequestResource,
+ String key,
+ String networkEndpointGroup,
+ String prettyPrint,
+ String quotaUser,
+ String requestId,
+ String userIp) {
+ this.access_token = access_token;
+ this.callback = callback;
+ this.fields = fields;
+ this.globalNetworkEndpointGroupsAttachEndpointsRequestResource =
+ globalNetworkEndpointGroupsAttachEndpointsRequestResource;
+ this.key = key;
+ this.networkEndpointGroup = networkEndpointGroup;
+ this.prettyPrint = prettyPrint;
+ this.quotaUser = quotaUser;
+ this.requestId = requestId;
+ this.userIp = userIp;
+ }
+
+ @Override
+ public Object getFieldValue(String fieldName) {
+ if ("access_token".equals(fieldName)) {
+ return access_token;
+ }
+ if ("callback".equals(fieldName)) {
+ return callback;
+ }
+ if ("fields".equals(fieldName)) {
+ return fields;
+ }
+ if ("globalNetworkEndpointGroupsAttachEndpointsRequestResource".equals(fieldName)) {
+ return globalNetworkEndpointGroupsAttachEndpointsRequestResource;
+ }
+ if ("key".equals(fieldName)) {
+ return key;
+ }
+ if ("networkEndpointGroup".equals(fieldName)) {
+ return networkEndpointGroup;
+ }
+ if ("prettyPrint".equals(fieldName)) {
+ return prettyPrint;
+ }
+ if ("quotaUser".equals(fieldName)) {
+ return quotaUser;
+ }
+ if ("requestId".equals(fieldName)) {
+ return requestId;
+ }
+ if ("userIp".equals(fieldName)) {
+ return userIp;
+ }
+ return null;
+ }
+
+ @Nullable
+ @Override
+ public GlobalNetworkEndpointGroupsAttachEndpointsRequest getApiMessageRequestBody() {
+ return globalNetworkEndpointGroupsAttachEndpointsRequestResource;
+ }
+
+ @Nullable
+ @Override
+ /**
+ * The fields that should be serialized (even if they have empty values). If the containing
+ * message object has a non-null fieldmask, then all the fields in the field mask (and only those
+ * fields in the field mask) will be serialized. If the containing object does not have a
+ * fieldmask, then only non-empty fields will be serialized.
+ */
+ public List getFieldMask() {
+ return null;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ public GlobalNetworkEndpointGroupsAttachEndpointsRequest
+ getGlobalNetworkEndpointGroupsAttachEndpointsRequestResource() {
+ return globalNetworkEndpointGroupsAttachEndpointsRequestResource;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /**
+ * The name of the network endpoint group where you are attaching network endpoints to. It should
+ * comply with RFC1035. It must have the format
+ * `{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints`.
+ * \`{networkEndpointGroup}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public String getNetworkEndpointGroup() {
+ return networkEndpointGroup;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /**
+ * An optional request ID to identify requests. Specify a unique request ID so that if you must
+ * retry your request, the server will know to ignore the request if it has already been
+ * completed.
+ *
+ * For example, consider a situation where you make an initial request and the request times
+ * out. If you make the request again with the same request ID, the server can check if original
+ * operation with the same request ID was received, and if so, will ignore the second request.
+ * This prevents clients from accidentally creating duplicate commitments.
+ *
+ *
The request ID must be a valid UUID with the exception that zero UUID is not supported
+ * (00000000-0000-0000-0000-000000000000).
+ */
+ public String getRequestId() {
+ return requestId;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ public static AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest();
+ }
+
+ public static class Builder {
+ private String access_token;
+ private String callback;
+ private String fields;
+ private GlobalNetworkEndpointGroupsAttachEndpointsRequest
+ globalNetworkEndpointGroupsAttachEndpointsRequestResource;
+ private String key;
+ private String networkEndpointGroup;
+ private String prettyPrint;
+ private String quotaUser;
+ private String requestId;
+ private String userIp;
+
+ Builder() {}
+
+ public Builder mergeFrom(AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest other) {
+ if (other == AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest.getDefaultInstance())
+ return this;
+ if (other.getAccessToken() != null) {
+ this.access_token = other.access_token;
+ }
+ if (other.getCallback() != null) {
+ this.callback = other.callback;
+ }
+ if (other.getFields() != null) {
+ this.fields = other.fields;
+ }
+ if (other.getGlobalNetworkEndpointGroupsAttachEndpointsRequestResource() != null) {
+ this.globalNetworkEndpointGroupsAttachEndpointsRequestResource =
+ other.globalNetworkEndpointGroupsAttachEndpointsRequestResource;
+ }
+ if (other.getKey() != null) {
+ this.key = other.key;
+ }
+ if (other.getNetworkEndpointGroup() != null) {
+ this.networkEndpointGroup = other.networkEndpointGroup;
+ }
+ if (other.getPrettyPrint() != null) {
+ this.prettyPrint = other.prettyPrint;
+ }
+ if (other.getQuotaUser() != null) {
+ this.quotaUser = other.quotaUser;
+ }
+ if (other.getRequestId() != null) {
+ this.requestId = other.requestId;
+ }
+ if (other.getUserIp() != null) {
+ this.userIp = other.userIp;
+ }
+ return this;
+ }
+
+ Builder(AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest source) {
+ this.access_token = source.access_token;
+ this.callback = source.callback;
+ this.fields = source.fields;
+ this.globalNetworkEndpointGroupsAttachEndpointsRequestResource =
+ source.globalNetworkEndpointGroupsAttachEndpointsRequestResource;
+ this.key = source.key;
+ this.networkEndpointGroup = source.networkEndpointGroup;
+ this.prettyPrint = source.prettyPrint;
+ this.quotaUser = source.quotaUser;
+ this.requestId = source.requestId;
+ this.userIp = source.userIp;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public Builder setAccessToken(String access_token) {
+ this.access_token = access_token;
+ return this;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public Builder setCallback(String callback) {
+ this.callback = callback;
+ return this;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public Builder setFields(String fields) {
+ this.fields = fields;
+ return this;
+ }
+
+ public GlobalNetworkEndpointGroupsAttachEndpointsRequest
+ getGlobalNetworkEndpointGroupsAttachEndpointsRequestResource() {
+ return globalNetworkEndpointGroupsAttachEndpointsRequestResource;
+ }
+
+ public Builder setGlobalNetworkEndpointGroupsAttachEndpointsRequestResource(
+ GlobalNetworkEndpointGroupsAttachEndpointsRequest
+ globalNetworkEndpointGroupsAttachEndpointsRequestResource) {
+ this.globalNetworkEndpointGroupsAttachEndpointsRequestResource =
+ globalNetworkEndpointGroupsAttachEndpointsRequestResource;
+ return this;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public Builder setKey(String key) {
+ this.key = key;
+ return this;
+ }
+
+ /**
+ * The name of the network endpoint group where you are attaching network endpoints to. It
+ * should comply with RFC1035. It must have the format
+ * `{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints`.
+ * \`{networkEndpointGroup}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public String getNetworkEndpointGroup() {
+ return networkEndpointGroup;
+ }
+
+ /**
+ * The name of the network endpoint group where you are attaching network endpoints to. It
+ * should comply with RFC1035. It must have the format
+ * `{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints`.
+ * \`{networkEndpointGroup}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public Builder setNetworkEndpointGroup(String networkEndpointGroup) {
+ this.networkEndpointGroup = networkEndpointGroup;
+ return this;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public Builder setPrettyPrint(String prettyPrint) {
+ this.prettyPrint = prettyPrint;
+ return this;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /** Alternative to userIp. */
+ public Builder setQuotaUser(String quotaUser) {
+ this.quotaUser = quotaUser;
+ 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).
+ */
+ public 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 Builder setRequestId(String requestId) {
+ this.requestId = requestId;
+ return this;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public Builder setUserIp(String userIp) {
+ this.userIp = userIp;
+ return this;
+ }
+
+ public AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest build() {
+ String missing = "";
+
+ if (networkEndpointGroup == null) {
+ missing += " networkEndpointGroup";
+ }
+
+ if (!missing.isEmpty()) {
+ throw new IllegalStateException("Missing required properties:" + missing);
+ }
+ return new AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest(
+ access_token,
+ callback,
+ fields,
+ globalNetworkEndpointGroupsAttachEndpointsRequestResource,
+ key,
+ networkEndpointGroup,
+ prettyPrint,
+ quotaUser,
+ requestId,
+ userIp);
+ }
+
+ public Builder clone() {
+ Builder newBuilder = new Builder();
+ newBuilder.setAccessToken(this.access_token);
+ newBuilder.setCallback(this.callback);
+ newBuilder.setFields(this.fields);
+ newBuilder.setGlobalNetworkEndpointGroupsAttachEndpointsRequestResource(
+ this.globalNetworkEndpointGroupsAttachEndpointsRequestResource);
+ newBuilder.setKey(this.key);
+ newBuilder.setNetworkEndpointGroup(this.networkEndpointGroup);
+ newBuilder.setPrettyPrint(this.prettyPrint);
+ newBuilder.setQuotaUser(this.quotaUser);
+ newBuilder.setRequestId(this.requestId);
+ newBuilder.setUserIp(this.userIp);
+ return newBuilder;
+ }
+ }
+
+ @Override
+ public String toString() {
+ return "AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest{"
+ + "access_token="
+ + access_token
+ + ", "
+ + "callback="
+ + callback
+ + ", "
+ + "fields="
+ + fields
+ + ", "
+ + "globalNetworkEndpointGroupsAttachEndpointsRequestResource="
+ + globalNetworkEndpointGroupsAttachEndpointsRequestResource
+ + ", "
+ + "key="
+ + key
+ + ", "
+ + "networkEndpointGroup="
+ + networkEndpointGroup
+ + ", "
+ + "prettyPrint="
+ + prettyPrint
+ + ", "
+ + "quotaUser="
+ + quotaUser
+ + ", "
+ + "requestId="
+ + requestId
+ + ", "
+ + "userIp="
+ + userIp
+ + "}";
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest) {
+ AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest that =
+ (AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest) o;
+ return Objects.equals(this.access_token, that.getAccessToken())
+ && Objects.equals(this.callback, that.getCallback())
+ && Objects.equals(this.fields, that.getFields())
+ && Objects.equals(
+ this.globalNetworkEndpointGroupsAttachEndpointsRequestResource,
+ that.getGlobalNetworkEndpointGroupsAttachEndpointsRequestResource())
+ && Objects.equals(this.key, that.getKey())
+ && Objects.equals(this.networkEndpointGroup, that.getNetworkEndpointGroup())
+ && Objects.equals(this.prettyPrint, that.getPrettyPrint())
+ && Objects.equals(this.quotaUser, that.getQuotaUser())
+ && Objects.equals(this.requestId, that.getRequestId())
+ && Objects.equals(this.userIp, that.getUserIp());
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ access_token,
+ callback,
+ fields,
+ globalNetworkEndpointGroupsAttachEndpointsRequestResource,
+ key,
+ networkEndpointGroup,
+ prettyPrint,
+ quotaUser,
+ requestId,
+ userIp);
+ }
+}
diff --git a/src/main/java/com/google/cloud/compute/v1/AttachedDisk.java b/src/main/java/com/google/cloud/compute/v1/AttachedDisk.java
index 1a4267bc1..5d7f2e0bb 100644
--- a/src/main/java/com/google/cloud/compute/v1/AttachedDisk.java
+++ b/src/main/java/com/google/cloud/compute/v1/AttachedDisk.java
@@ -43,6 +43,7 @@ public final class AttachedDisk implements ApiMessage {
private final String kind;
private final List licenses;
private final String mode;
+ private final InitialStateConfig shieldedInstanceInitialState;
private final String source;
private final String type;
@@ -59,6 +60,7 @@ private AttachedDisk() {
this.kind = null;
this.licenses = null;
this.mode = null;
+ this.shieldedInstanceInitialState = null;
this.source = null;
this.type = null;
}
@@ -76,6 +78,7 @@ private AttachedDisk(
String kind,
List licenses,
String mode,
+ InitialStateConfig shieldedInstanceInitialState,
String source,
String type) {
this.autoDelete = autoDelete;
@@ -90,6 +93,7 @@ private AttachedDisk(
this.kind = kind;
this.licenses = licenses;
this.mode = mode;
+ this.shieldedInstanceInitialState = shieldedInstanceInitialState;
this.source = source;
this.type = type;
}
@@ -132,6 +136,9 @@ public Object getFieldValue(String fieldName) {
if ("mode".equals(fieldName)) {
return mode;
}
+ if ("shieldedInstanceInitialState".equals(fieldName)) {
+ return shieldedInstanceInitialState;
+ }
if ("source".equals(fieldName)) {
return source;
}
@@ -273,6 +280,11 @@ public String getMode() {
return mode;
}
+ /** [Output Only] shielded vm initial state stored on disk */
+ public InitialStateConfig getShieldedInstanceInitialState() {
+ return shieldedInstanceInitialState;
+ }
+
/**
* Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a
* new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or
@@ -330,6 +342,7 @@ public static class Builder {
private String kind;
private List licenses;
private String mode;
+ private InitialStateConfig shieldedInstanceInitialState;
private String source;
private String type;
@@ -373,6 +386,9 @@ public Builder mergeFrom(AttachedDisk other) {
if (other.getMode() != null) {
this.mode = other.mode;
}
+ if (other.getShieldedInstanceInitialState() != null) {
+ this.shieldedInstanceInitialState = other.shieldedInstanceInitialState;
+ }
if (other.getSource() != null) {
this.source = other.source;
}
@@ -395,6 +411,7 @@ public Builder mergeFrom(AttachedDisk other) {
this.kind = source.kind;
this.licenses = source.licenses;
this.mode = source.mode;
+ this.shieldedInstanceInitialState = source.shieldedInstanceInitialState;
this.source = source.source;
this.type = source.type;
}
@@ -666,6 +683,18 @@ public Builder setMode(String mode) {
return this;
}
+ /** [Output Only] shielded vm initial state stored on disk */
+ public InitialStateConfig getShieldedInstanceInitialState() {
+ return shieldedInstanceInitialState;
+ }
+
+ /** [Output Only] shielded vm initial state stored on disk */
+ public Builder setShieldedInstanceInitialState(
+ InitialStateConfig shieldedInstanceInitialState) {
+ this.shieldedInstanceInitialState = shieldedInstanceInitialState;
+ return this;
+ }
+
/**
* Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating
* a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or
@@ -727,6 +756,7 @@ public AttachedDisk build() {
kind,
licenses,
mode,
+ shieldedInstanceInitialState,
source,
type);
}
@@ -745,6 +775,7 @@ public Builder clone() {
newBuilder.setKind(this.kind);
newBuilder.addAllLicenses(this.licenses);
newBuilder.setMode(this.mode);
+ newBuilder.setShieldedInstanceInitialState(this.shieldedInstanceInitialState);
newBuilder.setSource(this.source);
newBuilder.setType(this.type);
return newBuilder;
@@ -790,6 +821,9 @@ public String toString() {
+ "mode="
+ mode
+ ", "
+ + "shieldedInstanceInitialState="
+ + shieldedInstanceInitialState
+ + ", "
+ "source="
+ source
+ ", "
@@ -817,6 +851,8 @@ public boolean equals(Object o) {
&& Objects.equals(this.kind, that.getKind())
&& Objects.equals(this.licenses, that.getLicensesList())
&& Objects.equals(this.mode, that.getMode())
+ && Objects.equals(
+ this.shieldedInstanceInitialState, that.getShieldedInstanceInitialState())
&& Objects.equals(this.source, that.getSource())
&& Objects.equals(this.type, that.getType());
}
@@ -838,6 +874,7 @@ public int hashCode() {
kind,
licenses,
mode,
+ shieldedInstanceInitialState,
source,
type);
}
diff --git a/src/main/java/com/google/cloud/compute/v1/AttachedDiskInitializeParams.java b/src/main/java/com/google/cloud/compute/v1/AttachedDiskInitializeParams.java
index 13ac38e5a..f11a29a1e 100644
--- a/src/main/java/com/google/cloud/compute/v1/AttachedDiskInitializeParams.java
+++ b/src/main/java/com/google/cloud/compute/v1/AttachedDiskInitializeParams.java
@@ -40,6 +40,7 @@ public final class AttachedDiskInitializeParams implements ApiMessage {
private final String diskSizeGb;
private final String diskType;
private final Map labels;
+ private final String onUpdateAction;
private final List resourcePolicies;
private final String sourceImage;
private final CustomerEncryptionKey sourceImageEncryptionKey;
@@ -52,6 +53,7 @@ private AttachedDiskInitializeParams() {
this.diskSizeGb = null;
this.diskType = null;
this.labels = null;
+ this.onUpdateAction = null;
this.resourcePolicies = null;
this.sourceImage = null;
this.sourceImageEncryptionKey = null;
@@ -65,6 +67,7 @@ private AttachedDiskInitializeParams(
String diskSizeGb,
String diskType,
Map labels,
+ String onUpdateAction,
List resourcePolicies,
String sourceImage,
CustomerEncryptionKey sourceImageEncryptionKey,
@@ -75,6 +78,7 @@ private AttachedDiskInitializeParams(
this.diskSizeGb = diskSizeGb;
this.diskType = diskType;
this.labels = labels;
+ this.onUpdateAction = onUpdateAction;
this.resourcePolicies = resourcePolicies;
this.sourceImage = sourceImage;
this.sourceImageEncryptionKey = sourceImageEncryptionKey;
@@ -99,6 +103,9 @@ public Object getFieldValue(String fieldName) {
if ("labels".equals(fieldName)) {
return labels;
}
+ if ("onUpdateAction".equals(fieldName)) {
+ return onUpdateAction;
+ }
if ("resourcePolicies".equals(fieldName)) {
return resourcePolicies;
}
@@ -181,6 +188,14 @@ public Map getLabelsMap() {
return labels;
}
+ /**
+ * Specifies which action to take on instance update with this disk. Default is to use the
+ * existing disk.
+ */
+ public String getOnUpdateAction() {
+ return onUpdateAction;
+ }
+
/**
* Resource policies applied to this disk for automatic snapshot creations. Specified using the
* full or partial URL. For instance template, specify only the resource policy name.
@@ -273,6 +288,7 @@ public static class Builder {
private String diskSizeGb;
private String diskType;
private Map labels;
+ private String onUpdateAction;
private List resourcePolicies;
private String sourceImage;
private CustomerEncryptionKey sourceImageEncryptionKey;
@@ -298,6 +314,9 @@ public Builder mergeFrom(AttachedDiskInitializeParams other) {
if (other.getLabelsMap() != null) {
this.labels = other.labels;
}
+ if (other.getOnUpdateAction() != null) {
+ this.onUpdateAction = other.onUpdateAction;
+ }
if (other.getResourcePoliciesList() != null) {
this.resourcePolicies = other.resourcePolicies;
}
@@ -322,6 +341,7 @@ public Builder mergeFrom(AttachedDiskInitializeParams other) {
this.diskSizeGb = source.diskSizeGb;
this.diskType = source.diskType;
this.labels = source.labels;
+ this.onUpdateAction = source.onUpdateAction;
this.resourcePolicies = source.resourcePolicies;
this.sourceImage = source.sourceImage;
this.sourceImageEncryptionKey = source.sourceImageEncryptionKey;
@@ -426,6 +446,23 @@ public Builder putAllLabels(Map labels) {
return this;
}
+ /**
+ * Specifies which action to take on instance update with this disk. Default is to use the
+ * existing disk.
+ */
+ public String getOnUpdateAction() {
+ return onUpdateAction;
+ }
+
+ /**
+ * Specifies which action to take on instance update with this disk. Default is to use the
+ * existing disk.
+ */
+ public Builder setOnUpdateAction(String onUpdateAction) {
+ this.onUpdateAction = onUpdateAction;
+ return this;
+ }
+
/**
* Resource policies applied to this disk for automatic snapshot creations. Specified using the
* full or partial URL. For instance template, specify only the resource policy name.
@@ -583,6 +620,7 @@ public AttachedDiskInitializeParams build() {
diskSizeGb,
diskType,
labels,
+ onUpdateAction,
resourcePolicies,
sourceImage,
sourceImageEncryptionKey,
@@ -597,6 +635,7 @@ public Builder clone() {
newBuilder.setDiskSizeGb(this.diskSizeGb);
newBuilder.setDiskType(this.diskType);
newBuilder.putAllLabels(this.labels);
+ newBuilder.setOnUpdateAction(this.onUpdateAction);
newBuilder.addAllResourcePolicies(this.resourcePolicies);
newBuilder.setSourceImage(this.sourceImage);
newBuilder.setSourceImageEncryptionKey(this.sourceImageEncryptionKey);
@@ -624,6 +663,9 @@ public String toString() {
+ "labels="
+ labels
+ ", "
+ + "onUpdateAction="
+ + onUpdateAction
+ + ", "
+ "resourcePolicies="
+ resourcePolicies
+ ", "
@@ -653,6 +695,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.diskSizeGb, that.getDiskSizeGb())
&& Objects.equals(this.diskType, that.getDiskType())
&& Objects.equals(this.labels, that.getLabelsMap())
+ && Objects.equals(this.onUpdateAction, that.getOnUpdateAction())
&& Objects.equals(this.resourcePolicies, that.getResourcePoliciesList())
&& Objects.equals(this.sourceImage, that.getSourceImage())
&& Objects.equals(this.sourceImageEncryptionKey, that.getSourceImageEncryptionKey())
@@ -671,6 +714,7 @@ public int hashCode() {
diskSizeGb,
diskType,
labels,
+ onUpdateAction,
resourcePolicies,
sourceImage,
sourceImageEncryptionKey,
diff --git a/src/main/java/com/google/cloud/compute/v1/Autoscaler.java b/src/main/java/com/google/cloud/compute/v1/Autoscaler.java
index 748f2ebbc..ad819b96d 100644
--- a/src/main/java/com/google/cloud/compute/v1/Autoscaler.java
+++ b/src/main/java/com/google/cloud/compute/v1/Autoscaler.java
@@ -30,8 +30,8 @@
*
* Google Compute Engine has two Autoscaler resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/autoscalers) *
- * [Regional](/compute/docs/reference/rest/latest/regionAutoscalers)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/autoscalers) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionAutoscalers)
*
*
Use autoscalers to automatically add or delete instances from a managed instance group
* according to your defined autoscaling policy. For more information, read Autoscaling Groups of
diff --git a/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java b/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java
index d99c2318f..743ebb186 100644
--- a/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java
+++ b/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java
@@ -159,21 +159,29 @@ public AutoscalerStub getStub() {
*
*
* try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (AutoscalersScopedList element : autoscalerClient.aggregatedListAutoscalers(project).iterateAll()) {
+ * for (AutoscalersScopedList element : autoscalerClient.aggregatedListAutoscalers(includeAllScopes, project).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Project ID for this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
public final AggregatedListAutoscalersPagedResponse aggregatedListAutoscalers(
- ProjectName project) {
+ Boolean includeAllScopes, ProjectName project) {
AggregatedListAutoscalersHttpRequest request =
AggregatedListAutoscalersHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
.setProject(project == null ? null : project.toString())
.build();
return aggregatedListAutoscalers(request);
@@ -187,20 +195,31 @@ public final AggregatedListAutoscalersPagedResponse aggregatedListAutoscalers(
*
*
* try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (AutoscalersScopedList element : autoscalerClient.aggregatedListAutoscalers(project.toString()).iterateAll()) {
+ * for (AutoscalersScopedList element : autoscalerClient.aggregatedListAutoscalers(includeAllScopes, project.toString()).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Project ID for this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
- public final AggregatedListAutoscalersPagedResponse aggregatedListAutoscalers(String project) {
+ public final AggregatedListAutoscalersPagedResponse aggregatedListAutoscalers(
+ Boolean includeAllScopes, String project) {
AggregatedListAutoscalersHttpRequest request =
- AggregatedListAutoscalersHttpRequest.newBuilder().setProject(project).build();
+ AggregatedListAutoscalersHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
+ .setProject(project)
+ .build();
return aggregatedListAutoscalers(request);
}
@@ -212,8 +231,10 @@ public final AggregatedListAutoscalersPagedResponse aggregatedListAutoscalers(St
*
*
* try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListAutoscalersHttpRequest request = AggregatedListAutoscalersHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* for (AutoscalersScopedList element : autoscalerClient.aggregatedListAutoscalers(request).iterateAll()) {
@@ -239,8 +260,10 @@ public final AggregatedListAutoscalersPagedResponse aggregatedListAutoscalers(
*
*
* try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListAutoscalersHttpRequest request = AggregatedListAutoscalersHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* ApiFuture<AggregatedListAutoscalersPagedResponse> future = autoscalerClient.aggregatedListAutoscalersPagedCallable().futureCall(request);
@@ -266,8 +289,10 @@ public final AggregatedListAutoscalersPagedResponse aggregatedListAutoscalers(
*
*
* try (AutoscalerClient autoscalerClient = AutoscalerClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListAutoscalersHttpRequest request = AggregatedListAutoscalersHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* while (true) {
@@ -502,8 +527,8 @@ public final UnaryCallable getAutoscalerCa
* @param zone Name of the zone for this request.
* @param autoscalerResource Represents an Autoscaler resource.
* Google Compute Engine has two Autoscaler resources:
- *
* [Global](/compute/docs/reference/rest/latest/autoscalers) *
- * [Regional](/compute/docs/reference/rest/latest/regionAutoscalers)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/autoscalers) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionAutoscalers)
*
Use autoscalers to automatically add or delete instances from a managed instance group
* according to your defined autoscaling policy. For more information, read Autoscaling Groups
* of Instances.
@@ -540,8 +565,8 @@ public final Operation insertAutoscaler(ProjectZoneName zone, Autoscaler autosca
* @param zone Name of the zone for this request.
* @param autoscalerResource Represents an Autoscaler resource.
*
Google Compute Engine has two Autoscaler resources:
- *
* [Global](/compute/docs/reference/rest/latest/autoscalers) *
- * [Regional](/compute/docs/reference/rest/latest/regionAutoscalers)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/autoscalers) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionAutoscalers)
*
Use autoscalers to automatically add or delete instances from a managed instance group
* according to your defined autoscaling policy. For more information, read Autoscaling Groups
* of Instances.
@@ -769,8 +794,8 @@ public final UnaryCallable listAutos
* @param zone Name of the zone for this request.
* @param autoscalerResource Represents an Autoscaler resource.
* Google Compute Engine has two Autoscaler resources:
- *
* [Global](/compute/docs/reference/rest/latest/autoscalers) *
- * [Regional](/compute/docs/reference/rest/latest/regionAutoscalers)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/autoscalers) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionAutoscalers)
*
Use autoscalers to automatically add or delete instances from a managed instance group
* according to your defined autoscaling policy. For more information, read Autoscaling Groups
* of Instances.
@@ -821,8 +846,8 @@ public final Operation patchAutoscaler(
* @param zone Name of the zone for this request.
* @param autoscalerResource Represents an Autoscaler resource.
*
Google Compute Engine has two Autoscaler resources:
- *
* [Global](/compute/docs/reference/rest/latest/autoscalers) *
- * [Regional](/compute/docs/reference/rest/latest/regionAutoscalers)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/autoscalers) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionAutoscalers)
*
Use autoscalers to automatically add or delete instances from a managed instance group
* according to your defined autoscaling policy. For more information, read Autoscaling Groups
* of Instances.
@@ -930,8 +955,8 @@ public final UnaryCallable patchAutoscale
* @param zone Name of the zone for this request.
* @param autoscalerResource Represents an Autoscaler resource.
* Google Compute Engine has two Autoscaler resources:
- *
* [Global](/compute/docs/reference/rest/latest/autoscalers) *
- * [Regional](/compute/docs/reference/rest/latest/regionAutoscalers)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/autoscalers) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionAutoscalers)
*
Use autoscalers to automatically add or delete instances from a managed instance group
* according to your defined autoscaling policy. For more information, read Autoscaling Groups
* of Instances.
@@ -981,8 +1006,8 @@ public final Operation updateAutoscaler(
* @param zone Name of the zone for this request.
* @param autoscalerResource Represents an Autoscaler resource.
*
Google Compute Engine has two Autoscaler resources:
- *
* [Global](/compute/docs/reference/rest/latest/autoscalers) *
- * [Regional](/compute/docs/reference/rest/latest/regionAutoscalers)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/autoscalers) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionAutoscalers)
*
Use autoscalers to automatically add or delete instances from a managed instance group
* according to your defined autoscaling policy. For more information, read Autoscaling Groups
* of Instances.
diff --git a/src/main/java/com/google/cloud/compute/v1/Backend.java b/src/main/java/com/google/cloud/compute/v1/Backend.java
index f5370dec7..5b004fba6 100644
--- a/src/main/java/com/google/cloud/compute/v1/Backend.java
+++ b/src/main/java/com/google/cloud/compute/v1/Backend.java
@@ -29,6 +29,7 @@ public final class Backend implements ApiMessage {
private final String balancingMode;
private final Float capacityScaler;
private final String description;
+ private final Boolean failover;
private final String group;
private final Integer maxConnections;
private final Integer maxConnectionsPerEndpoint;
@@ -42,6 +43,7 @@ private Backend() {
this.balancingMode = null;
this.capacityScaler = null;
this.description = null;
+ this.failover = null;
this.group = null;
this.maxConnections = null;
this.maxConnectionsPerEndpoint = null;
@@ -56,6 +58,7 @@ private Backend(
String balancingMode,
Float capacityScaler,
String description,
+ Boolean failover,
String group,
Integer maxConnections,
Integer maxConnectionsPerEndpoint,
@@ -67,6 +70,7 @@ private Backend(
this.balancingMode = balancingMode;
this.capacityScaler = capacityScaler;
this.description = description;
+ this.failover = failover;
this.group = group;
this.maxConnections = maxConnections;
this.maxConnectionsPerEndpoint = maxConnectionsPerEndpoint;
@@ -88,6 +92,9 @@ public Object getFieldValue(String fieldName) {
if ("description".equals(fieldName)) {
return description;
}
+ if ("failover".equals(fieldName)) {
+ return failover;
+ }
if ("group".equals(fieldName)) {
return group;
}
@@ -144,20 +151,21 @@ public List getFieldMask() {
* protocol for the backend service is SSL, TCP, or UDP.
*
* If the loadBalancingScheme for the backend service is EXTERNAL (SSL Proxy and TCP Proxy load
- * balancers), you must also specify exactly one of the following parameters: maxConnections,
- * maxConnectionsPerInstance, or maxConnectionsPerEndpoint.
+ * balancers), you must also specify exactly one of the following parameters: maxConnections
+ * (except for regional managed instance groups), maxConnectionsPerInstance, or
+ * maxConnectionsPerEndpoint.
*
*
If the loadBalancingScheme for the backend service is INTERNAL (internal TCP/UDP load
* balancers), you cannot specify any additional parameters.
*
*
- If the load balancing mode is RATE, the load is spread based on the rate of HTTP requests
* per second (RPS). You can use the RATE balancing mode if the protocol for the backend service
- * is HTTP or HTTPS. You must specify exactly one of the following parameters: maxRate,
- * maxRatePerInstance, or maxRatePerEndpoint.
+ * is HTTP or HTTPS. You must specify exactly one of the following parameters: maxRate (except for
+ * regional managed instance groups), maxRatePerInstance, or maxRatePerEndpoint.
*
- *
- If the load balancing mode is UTILIZATION, the load is spread based on the CPU utilization
- * of instances in an instance group. You can use the UTILIZATION balancing mode if the
- * loadBalancingScheme of the backend service is EXTERNAL, INTERNAL_SELF_MANAGED, or
+ *
- If the load balancing mode is UTILIZATION, the load is spread based on the backend
+ * utilization of instances in an instance group. You can use the UTILIZATION balancing mode if
+ * the loadBalancingScheme of the backend service is EXTERNAL, INTERNAL_SELF_MANAGED, or
* INTERNAL_MANAGED and the backends are instance groups. There are no restrictions on the backend
* service protocol.
*/
@@ -184,6 +192,14 @@ public String getDescription() {
return description;
}
+ /**
+ * This field designates whether this is a failover backend. More than one failover backend can be
+ * configured for a given BackendService.
+ */
+ public Boolean getFailover() {
+ return failover;
+ }
+
/**
* The fully-qualified URL of an instance group or network endpoint group (NEG) resource. The type
* of backend that a backend service supports depends on the backend service's
@@ -205,8 +221,9 @@ public String getGroup() {
}
/**
- * Defines a maximum target for simultaneous connections for the entire backend (instance group or
- * NEG). If the backend's balancingMode is UTILIZATION, this is an optional parameter. If the
+ * Defines a target maximum number of simultaneous connections that the backend can handle. Valid
+ * for network endpoint group and instance group backends (except for regional managed instance
+ * groups). If the backend's balancingMode is UTILIZATION, this is an optional parameter. If the
* backend's balancingMode is CONNECTION, and backend is attached to a backend service whose
* loadBalancingScheme is EXTERNAL, you must specify either this parameter,
* maxConnectionsPerInstance, or maxConnectionsPerEndpoint.
@@ -220,7 +237,7 @@ public Integer getMaxConnections() {
}
/**
- * Defines a maximum target for simultaneous connections for an endpoint of a NEG. This is
+ * Defines a target maximum number of simultaneous connections for an endpoint of a NEG. This is
* multiplied by the number of endpoints in the NEG to implicitly calculate a maximum number of
* target maximum simultaneous connections for the NEG. If the backend's balancingMode is
* CONNECTION, and the backend is attached to a backend service whose loadBalancingScheme is
@@ -235,11 +252,11 @@ public Integer getMaxConnectionsPerEndpoint() {
}
/**
- * Defines a maximum target for simultaneous connections for a single VM in a backend instance
- * group. This is multiplied by the number of instances in the instance group to implicitly
- * calculate a target maximum number of simultaneous connections for the whole instance group. If
- * the backend's balancingMode is UTILIZATION, this is an optional parameter. If the backend's
- * balancingMode is CONNECTION, and backend is attached to a backend service whose
+ * Defines a target maximum number of simultaneous connections for a single VM in a backend
+ * instance group. This is multiplied by the number of instances in the instance group to
+ * implicitly calculate a target maximum number of simultaneous connections for the whole instance
+ * group. If the backend's balancingMode is UTILIZATION, this is an optional parameter. If the
+ * backend's balancingMode is CONNECTION, and backend is attached to a backend service whose
* loadBalancingScheme is EXTERNAL, you must specify either this parameter, maxConnections, or
* maxConnectionsPerEndpoint.
*
@@ -252,11 +269,16 @@ public Integer getMaxConnectionsPerInstance() {
}
/**
- * The max requests per second (RPS) of the group. Can be used with either RATE or UTILIZATION
- * balancing modes, but required if RATE mode. For RATE mode, either maxRate or maxRatePerInstance
- * must be set.
+ * Defines a maximum number of HTTP requests per second (RPS) that the backend can handle. Valid
+ * for network endpoint group and instance group backends (except for regional managed instance
+ * groups). Must not be defined if the backend is a managed instance group that uses autoscaling
+ * based on load balancing.
*
- *
This cannot be used for internal load balancing.
+ *
If the backend's balancingMode is UTILIZATION, this is an optional parameter. If the
+ * backend's balancingMode is RATE, you must specify maxRate, maxRatePerInstance, or
+ * maxRatePerEndpoint.
+ *
+ *
Not available if the backend's balancingMode is CONNECTION.
*/
public Integer getMaxRate() {
return maxRate;
@@ -267,8 +289,8 @@ public Integer getMaxRate() {
* multiplied by the number of endpoints in the NEG to implicitly calculate a target maximum rate
* for the NEG.
*
- *
If the backend's balancingMode is RATE, you must specify either this parameter, maxRate, or
- * maxRatePerInstance.
+ *
If the backend's balancingMode is RATE, you must specify either this parameter, maxRate
+ * (except for regional managed instance groups), or maxRatePerInstance.
*
*
Not available if the backend's balancingMode is CONNECTION.
*/
@@ -282,8 +304,8 @@ public Float getMaxRatePerEndpoint() {
* calculate a target maximum rate for the whole instance group.
*
*
If the backend's balancingMode is UTILIZATION, this is an optional parameter. If the
- * backend's balancingMode is RATE, you must specify either this parameter, maxRate, or
- * maxRatePerEndpoint.
+ * backend's balancingMode is RATE, you must specify either this parameter, maxRate (except for
+ * regional managed instance groups), or maxRatePerEndpoint.
*
*
Not available if the backend's balancingMode is CONNECTION.
*/
@@ -292,12 +314,12 @@ public Float getMaxRatePerInstance() {
}
/**
- * Defines the maximum average CPU utilization of a backend VM in an instance group. The valid
+ * Defines the maximum average backend utilization of a backend VM in an instance group. The valid
* range is [0.0, 1.0]. This is an optional parameter if the backend's balancingMode is
* UTILIZATION.
*
- *
This parameter can be used in conjunction with maxRate, maxRatePerInstance, maxConnections,
- * or maxConnectionsPerInstance.
+ *
This parameter can be used in conjunction with maxRate, maxRatePerInstance, maxConnections
+ * (except for regional managed instance groups), or maxConnectionsPerInstance.
*/
public Float getMaxUtilization() {
return maxUtilization;
@@ -329,6 +351,7 @@ public static class Builder {
private String balancingMode;
private Float capacityScaler;
private String description;
+ private Boolean failover;
private String group;
private Integer maxConnections;
private Integer maxConnectionsPerEndpoint;
@@ -351,6 +374,9 @@ public Builder mergeFrom(Backend other) {
if (other.getDescription() != null) {
this.description = other.description;
}
+ if (other.getFailover() != null) {
+ this.failover = other.failover;
+ }
if (other.getGroup() != null) {
this.group = other.group;
}
@@ -382,6 +408,7 @@ public Builder mergeFrom(Backend other) {
this.balancingMode = source.balancingMode;
this.capacityScaler = source.capacityScaler;
this.description = source.description;
+ this.failover = source.failover;
this.group = source.group;
this.maxConnections = source.maxConnections;
this.maxConnectionsPerEndpoint = source.maxConnectionsPerEndpoint;
@@ -404,7 +431,8 @@ public Builder mergeFrom(Backend other) {
*
*
If the loadBalancingScheme for the backend service is EXTERNAL (SSL Proxy and TCP Proxy
* load balancers), you must also specify exactly one of the following parameters:
- * maxConnections, maxConnectionsPerInstance, or maxConnectionsPerEndpoint.
+ * maxConnections (except for regional managed instance groups), maxConnectionsPerInstance, or
+ * maxConnectionsPerEndpoint.
*
*
If the loadBalancingScheme for the backend service is INTERNAL (internal TCP/UDP load
* balancers), you cannot specify any additional parameters.
@@ -412,9 +440,10 @@ public Builder mergeFrom(Backend other) {
*
- If the load balancing mode is RATE, the load is spread based on the rate of HTTP
* requests per second (RPS). You can use the RATE balancing mode if the protocol for the
* backend service is HTTP or HTTPS. You must specify exactly one of the following parameters:
- * maxRate, maxRatePerInstance, or maxRatePerEndpoint.
+ * maxRate (except for regional managed instance groups), maxRatePerInstance, or
+ * maxRatePerEndpoint.
*
- *
- If the load balancing mode is UTILIZATION, the load is spread based on the CPU
+ *
- If the load balancing mode is UTILIZATION, the load is spread based on the backend
* utilization of instances in an instance group. You can use the UTILIZATION balancing mode if
* the loadBalancingScheme of the backend service is EXTERNAL, INTERNAL_SELF_MANAGED, or
* INTERNAL_MANAGED and the backends are instance groups. There are no restrictions on the
@@ -436,7 +465,8 @@ public String getBalancingMode() {
*
*
If the loadBalancingScheme for the backend service is EXTERNAL (SSL Proxy and TCP Proxy
* load balancers), you must also specify exactly one of the following parameters:
- * maxConnections, maxConnectionsPerInstance, or maxConnectionsPerEndpoint.
+ * maxConnections (except for regional managed instance groups), maxConnectionsPerInstance, or
+ * maxConnectionsPerEndpoint.
*
*
If the loadBalancingScheme for the backend service is INTERNAL (internal TCP/UDP load
* balancers), you cannot specify any additional parameters.
@@ -444,9 +474,10 @@ public String getBalancingMode() {
*
- If the load balancing mode is RATE, the load is spread based on the rate of HTTP
* requests per second (RPS). You can use the RATE balancing mode if the protocol for the
* backend service is HTTP or HTTPS. You must specify exactly one of the following parameters:
- * maxRate, maxRatePerInstance, or maxRatePerEndpoint.
+ * maxRate (except for regional managed instance groups), maxRatePerInstance, or
+ * maxRatePerEndpoint.
*
- *
- If the load balancing mode is UTILIZATION, the load is spread based on the CPU
+ *
- If the load balancing mode is UTILIZATION, the load is spread based on the backend
* utilization of instances in an instance group. You can use the UTILIZATION balancing mode if
* the loadBalancingScheme of the backend service is EXTERNAL, INTERNAL_SELF_MANAGED, or
* INTERNAL_MANAGED and the backends are instance groups. There are no restrictions on the
@@ -497,6 +528,23 @@ public Builder setDescription(String description) {
return this;
}
+ /**
+ * This field designates whether this is a failover backend. More than one failover backend can
+ * be configured for a given BackendService.
+ */
+ public Boolean getFailover() {
+ return failover;
+ }
+
+ /**
+ * This field designates whether this is a failover backend. More than one failover backend can
+ * be configured for a given BackendService.
+ */
+ public Builder setFailover(Boolean failover) {
+ this.failover = failover;
+ return this;
+ }
+
/**
* The fully-qualified URL of an instance group or network endpoint group (NEG) resource. The
* type of backend that a backend service supports depends on the backend service's
@@ -539,10 +587,11 @@ public Builder setGroup(String group) {
}
/**
- * Defines a maximum target for simultaneous connections for the entire backend (instance group
- * or NEG). If the backend's balancingMode is UTILIZATION, this is an optional parameter. If the
- * backend's balancingMode is CONNECTION, and backend is attached to a backend service whose
- * loadBalancingScheme is EXTERNAL, you must specify either this parameter,
+ * Defines a target maximum number of simultaneous connections that the backend can handle.
+ * Valid for network endpoint group and instance group backends (except for regional managed
+ * instance groups). If the backend's balancingMode is UTILIZATION, this is an optional
+ * parameter. If the backend's balancingMode is CONNECTION, and backend is attached to a backend
+ * service whose loadBalancingScheme is EXTERNAL, you must specify either this parameter,
* maxConnectionsPerInstance, or maxConnectionsPerEndpoint.
*
*
Not available if the backend's balancingMode is RATE. If the loadBalancingScheme is
@@ -554,10 +603,11 @@ public Integer getMaxConnections() {
}
/**
- * Defines a maximum target for simultaneous connections for the entire backend (instance group
- * or NEG). If the backend's balancingMode is UTILIZATION, this is an optional parameter. If the
- * backend's balancingMode is CONNECTION, and backend is attached to a backend service whose
- * loadBalancingScheme is EXTERNAL, you must specify either this parameter,
+ * Defines a target maximum number of simultaneous connections that the backend can handle.
+ * Valid for network endpoint group and instance group backends (except for regional managed
+ * instance groups). If the backend's balancingMode is UTILIZATION, this is an optional
+ * parameter. If the backend's balancingMode is CONNECTION, and backend is attached to a backend
+ * service whose loadBalancingScheme is EXTERNAL, you must specify either this parameter,
* maxConnectionsPerInstance, or maxConnectionsPerEndpoint.
*
*
Not available if the backend's balancingMode is RATE. If the loadBalancingScheme is
@@ -570,7 +620,7 @@ public Builder setMaxConnections(Integer maxConnections) {
}
/**
- * Defines a maximum target for simultaneous connections for an endpoint of a NEG. This is
+ * Defines a target maximum number of simultaneous connections for an endpoint of a NEG. This is
* multiplied by the number of endpoints in the NEG to implicitly calculate a maximum number of
* target maximum simultaneous connections for the NEG. If the backend's balancingMode is
* CONNECTION, and the backend is attached to a backend service whose loadBalancingScheme is
@@ -586,7 +636,7 @@ public Integer getMaxConnectionsPerEndpoint() {
}
/**
- * Defines a maximum target for simultaneous connections for an endpoint of a NEG. This is
+ * Defines a target maximum number of simultaneous connections for an endpoint of a NEG. This is
* multiplied by the number of endpoints in the NEG to implicitly calculate a maximum number of
* target maximum simultaneous connections for the NEG. If the backend's balancingMode is
* CONNECTION, and the backend is attached to a backend service whose loadBalancingScheme is
@@ -603,13 +653,13 @@ public Builder setMaxConnectionsPerEndpoint(Integer maxConnectionsPerEndpoint) {
}
/**
- * Defines a maximum target for simultaneous connections for a single VM in a backend instance
- * group. This is multiplied by the number of instances in the instance group to implicitly
- * calculate a target maximum number of simultaneous connections for the whole instance group.
- * If the backend's balancingMode is UTILIZATION, this is an optional parameter. If the
- * backend's balancingMode is CONNECTION, and backend is attached to a backend service whose
- * loadBalancingScheme is EXTERNAL, you must specify either this parameter, maxConnections, or
- * maxConnectionsPerEndpoint.
+ * Defines a target maximum number of simultaneous connections for a single VM in a backend
+ * instance group. This is multiplied by the number of instances in the instance group to
+ * implicitly calculate a target maximum number of simultaneous connections for the whole
+ * instance group. If the backend's balancingMode is UTILIZATION, this is an optional parameter.
+ * If the backend's balancingMode is CONNECTION, and backend is attached to a backend service
+ * whose loadBalancingScheme is EXTERNAL, you must specify either this parameter,
+ * maxConnections, or maxConnectionsPerEndpoint.
*
*
Not available if the backend's balancingMode is RATE. Internal TCP/UDP load balancing does
* not support setting maxConnectionsPerInstance even though its backends require a balancing
@@ -620,13 +670,13 @@ public Integer getMaxConnectionsPerInstance() {
}
/**
- * Defines a maximum target for simultaneous connections for a single VM in a backend instance
- * group. This is multiplied by the number of instances in the instance group to implicitly
- * calculate a target maximum number of simultaneous connections for the whole instance group.
- * If the backend's balancingMode is UTILIZATION, this is an optional parameter. If the
- * backend's balancingMode is CONNECTION, and backend is attached to a backend service whose
- * loadBalancingScheme is EXTERNAL, you must specify either this parameter, maxConnections, or
- * maxConnectionsPerEndpoint.
+ * Defines a target maximum number of simultaneous connections for a single VM in a backend
+ * instance group. This is multiplied by the number of instances in the instance group to
+ * implicitly calculate a target maximum number of simultaneous connections for the whole
+ * instance group. If the backend's balancingMode is UTILIZATION, this is an optional parameter.
+ * If the backend's balancingMode is CONNECTION, and backend is attached to a backend service
+ * whose loadBalancingScheme is EXTERNAL, you must specify either this parameter,
+ * maxConnections, or maxConnectionsPerEndpoint.
*
*
Not available if the backend's balancingMode is RATE. Internal TCP/UDP load balancing does
* not support setting maxConnectionsPerInstance even though its backends require a balancing
@@ -638,22 +688,32 @@ public Builder setMaxConnectionsPerInstance(Integer maxConnectionsPerInstance) {
}
/**
- * The max requests per second (RPS) of the group. Can be used with either RATE or UTILIZATION
- * balancing modes, but required if RATE mode. For RATE mode, either maxRate or
- * maxRatePerInstance must be set.
+ * Defines a maximum number of HTTP requests per second (RPS) that the backend can handle. Valid
+ * for network endpoint group and instance group backends (except for regional managed instance
+ * groups). Must not be defined if the backend is a managed instance group that uses autoscaling
+ * based on load balancing.
*
- *
This cannot be used for internal load balancing.
+ *
If the backend's balancingMode is UTILIZATION, this is an optional parameter. If the
+ * backend's balancingMode is RATE, you must specify maxRate, maxRatePerInstance, or
+ * maxRatePerEndpoint.
+ *
+ *
Not available if the backend's balancingMode is CONNECTION.
*/
public Integer getMaxRate() {
return maxRate;
}
/**
- * The max requests per second (RPS) of the group. Can be used with either RATE or UTILIZATION
- * balancing modes, but required if RATE mode. For RATE mode, either maxRate or
- * maxRatePerInstance must be set.
+ * Defines a maximum number of HTTP requests per second (RPS) that the backend can handle. Valid
+ * for network endpoint group and instance group backends (except for regional managed instance
+ * groups). Must not be defined if the backend is a managed instance group that uses autoscaling
+ * based on load balancing.
*
- *
This cannot be used for internal load balancing.
+ *
If the backend's balancingMode is UTILIZATION, this is an optional parameter. If the
+ * backend's balancingMode is RATE, you must specify maxRate, maxRatePerInstance, or
+ * maxRatePerEndpoint.
+ *
+ *
Not available if the backend's balancingMode is CONNECTION.
*/
public Builder setMaxRate(Integer maxRate) {
this.maxRate = maxRate;
@@ -665,8 +725,8 @@ public Builder setMaxRate(Integer maxRate) {
* multiplied by the number of endpoints in the NEG to implicitly calculate a target maximum
* rate for the NEG.
*
- *
If the backend's balancingMode is RATE, you must specify either this parameter, maxRate,
- * or maxRatePerInstance.
+ *
If the backend's balancingMode is RATE, you must specify either this parameter, maxRate
+ * (except for regional managed instance groups), or maxRatePerInstance.
*
*
Not available if the backend's balancingMode is CONNECTION.
*/
@@ -679,8 +739,8 @@ public Float getMaxRatePerEndpoint() {
* multiplied by the number of endpoints in the NEG to implicitly calculate a target maximum
* rate for the NEG.
*
- *
If the backend's balancingMode is RATE, you must specify either this parameter, maxRate,
- * or maxRatePerInstance.
+ *
If the backend's balancingMode is RATE, you must specify either this parameter, maxRate
+ * (except for regional managed instance groups), or maxRatePerInstance.
*
*
Not available if the backend's balancingMode is CONNECTION.
*/
@@ -695,8 +755,8 @@ public Builder setMaxRatePerEndpoint(Float maxRatePerEndpoint) {
* calculate a target maximum rate for the whole instance group.
*
*
If the backend's balancingMode is UTILIZATION, this is an optional parameter. If the
- * backend's balancingMode is RATE, you must specify either this parameter, maxRate, or
- * maxRatePerEndpoint.
+ * backend's balancingMode is RATE, you must specify either this parameter, maxRate (except for
+ * regional managed instance groups), or maxRatePerEndpoint.
*
*
Not available if the backend's balancingMode is CONNECTION.
*/
@@ -710,8 +770,8 @@ public Float getMaxRatePerInstance() {
* calculate a target maximum rate for the whole instance group.
*
*
If the backend's balancingMode is UTILIZATION, this is an optional parameter. If the
- * backend's balancingMode is RATE, you must specify either this parameter, maxRate, or
- * maxRatePerEndpoint.
+ * backend's balancingMode is RATE, you must specify either this parameter, maxRate (except for
+ * regional managed instance groups), or maxRatePerEndpoint.
*
*
Not available if the backend's balancingMode is CONNECTION.
*/
@@ -721,24 +781,24 @@ public Builder setMaxRatePerInstance(Float maxRatePerInstance) {
}
/**
- * Defines the maximum average CPU utilization of a backend VM in an instance group. The valid
- * range is [0.0, 1.0]. This is an optional parameter if the backend's balancingMode is
+ * Defines the maximum average backend utilization of a backend VM in an instance group. The
+ * valid range is [0.0, 1.0]. This is an optional parameter if the backend's balancingMode is
* UTILIZATION.
*
- *
This parameter can be used in conjunction with maxRate, maxRatePerInstance,
- * maxConnections, or maxConnectionsPerInstance.
+ *
This parameter can be used in conjunction with maxRate, maxRatePerInstance, maxConnections
+ * (except for regional managed instance groups), or maxConnectionsPerInstance.
*/
public Float getMaxUtilization() {
return maxUtilization;
}
/**
- * Defines the maximum average CPU utilization of a backend VM in an instance group. The valid
- * range is [0.0, 1.0]. This is an optional parameter if the backend's balancingMode is
+ * Defines the maximum average backend utilization of a backend VM in an instance group. The
+ * valid range is [0.0, 1.0]. This is an optional parameter if the backend's balancingMode is
* UTILIZATION.
*
- *
This parameter can be used in conjunction with maxRate, maxRatePerInstance,
- * maxConnections, or maxConnectionsPerInstance.
+ *
This parameter can be used in conjunction with maxRate, maxRatePerInstance, maxConnections
+ * (except for regional managed instance groups), or maxConnectionsPerInstance.
*/
public Builder setMaxUtilization(Float maxUtilization) {
this.maxUtilization = maxUtilization;
@@ -751,6 +811,7 @@ public Backend build() {
balancingMode,
capacityScaler,
description,
+ failover,
group,
maxConnections,
maxConnectionsPerEndpoint,
@@ -766,6 +827,7 @@ public Builder clone() {
newBuilder.setBalancingMode(this.balancingMode);
newBuilder.setCapacityScaler(this.capacityScaler);
newBuilder.setDescription(this.description);
+ newBuilder.setFailover(this.failover);
newBuilder.setGroup(this.group);
newBuilder.setMaxConnections(this.maxConnections);
newBuilder.setMaxConnectionsPerEndpoint(this.maxConnectionsPerEndpoint);
@@ -790,6 +852,9 @@ public String toString() {
+ "description="
+ description
+ ", "
+ + "failover="
+ + failover
+ + ", "
+ "group="
+ group
+ ", "
@@ -826,6 +891,7 @@ public boolean equals(Object o) {
return Objects.equals(this.balancingMode, that.getBalancingMode())
&& Objects.equals(this.capacityScaler, that.getCapacityScaler())
&& Objects.equals(this.description, that.getDescription())
+ && Objects.equals(this.failover, that.getFailover())
&& Objects.equals(this.group, that.getGroup())
&& Objects.equals(this.maxConnections, that.getMaxConnections())
&& Objects.equals(this.maxConnectionsPerEndpoint, that.getMaxConnectionsPerEndpoint())
@@ -844,6 +910,7 @@ public int hashCode() {
balancingMode,
capacityScaler,
description,
+ failover,
group,
maxConnections,
maxConnectionsPerEndpoint,
diff --git a/src/main/java/com/google/cloud/compute/v1/BackendService.java b/src/main/java/com/google/cloud/compute/v1/BackendService.java
index 901a1ed42..b9b31fb53 100644
--- a/src/main/java/com/google/cloud/compute/v1/BackendService.java
+++ b/src/main/java/com/google/cloud/compute/v1/BackendService.java
@@ -33,8 +33,8 @@
*
*
Backend services in Google Compute Engine can be either regionally or globally scoped.
*
- *
* [Global](/compute/docs/reference/rest/latest/backendServices) *
- * [Regional](/compute/docs/reference/rest/latest/regionBackendServices)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/backendServices) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionBackendServices)
*
*
For more information, read Backend Services.
*
@@ -51,6 +51,7 @@ public final class BackendService implements ApiMessage {
private final List customRequestHeaders;
private final String description;
private final Boolean enableCDN;
+ private final BackendServiceFailoverPolicy failoverPolicy;
private final String fingerprint;
private final List healthChecks;
private final BackendServiceIAP iap;
@@ -82,6 +83,7 @@ private BackendService() {
this.customRequestHeaders = null;
this.description = null;
this.enableCDN = null;
+ this.failoverPolicy = null;
this.fingerprint = null;
this.healthChecks = null;
this.iap = null;
@@ -114,6 +116,7 @@ private BackendService(
List customRequestHeaders,
String description,
Boolean enableCDN,
+ BackendServiceFailoverPolicy failoverPolicy,
String fingerprint,
List healthChecks,
BackendServiceIAP iap,
@@ -143,6 +146,7 @@ private BackendService(
this.customRequestHeaders = customRequestHeaders;
this.description = description;
this.enableCDN = enableCDN;
+ this.failoverPolicy = failoverPolicy;
this.fingerprint = fingerprint;
this.healthChecks = healthChecks;
this.iap = iap;
@@ -196,6 +200,9 @@ public Object getFieldValue(String fieldName) {
if ("enableCDN".equals(fieldName)) {
return enableCDN;
}
+ if ("failoverPolicy".equals(fieldName)) {
+ return failoverPolicy;
+ }
if ("fingerprint".equals(fieldName)) {
return fingerprint;
}
@@ -349,6 +356,14 @@ public Boolean getEnableCDN() {
return enableCDN;
}
+ /**
+ * Applicable only to Failover for Internal TCP/UDP Load Balancing. Requires at least one backend
+ * instance group to be defined as a backup (failover) backend.
+ */
+ public BackendServiceFailoverPolicy getFailoverPolicy() {
+ return failoverPolicy;
+ }
+
/**
* Fingerprint of this resource. A hash of the contents stored in this object. This field is used
* in optimistic locking. This field will be ignored when inserting a BackendService. An
@@ -362,13 +377,11 @@ public String getFingerprint() {
}
/**
- * The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this
- * BackendService. Currently at most one health check can be specified. Health check is optional
- * for Compute Engine backend services if there is no backend. A health check must not be
- * specified when adding Internet Network Endpoint Group or Serverless Network Endpoint Group as
- * backends. In all other cases, a health check is required for Compute Engine backend services.
- *
- * For internal load balancing, a URL to a HealthCheck resource must be specified instead.
+ * The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy)
+ * resource for health checking this backend service. Not all backend services support legacy
+ * health checks. See Load balancer guide. Currently at most one health check can be specified.
+ * Backend services with instance group or zonal NEG backends must have a health check. Backend
+ * services with internet NEG backends must not have a health check. A health check must
*/
public List getHealthChecksList() {
return healthChecks;
@@ -479,9 +492,9 @@ public Integer getPort() {
/**
* A named port on a backend instance group representing the port for communication to the backend
- * VMs in that group. Required when the loadBalancingScheme is EXTERNAL and the backends are
- * instance groups. The named port must be defined on each backend instance group. This parameter
- * has no meaning if the backends are NEGs.
+ * VMs in that group. Required when the loadBalancingScheme is EXTERNAL, INTERNAL_MANAGED, or
+ * INTERNAL_SELF_MANAGED and the backends are instance groups. The named port must be defined on
+ * each backend instance group. This parameter has no meaning if the backends are NEGs.
*
* Must be omitted when the loadBalancingScheme is INTERNAL (Internal TCP/UDP Load Blaancing).
*/
@@ -492,7 +505,7 @@ public String getPortName() {
/**
* The protocol this BackendService uses to communicate with backends.
*
- *
Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, or UDP, depending on the chosen load
+ *
Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, or UDP. depending on the chosen load
* balancer or Traffic Director configuration. Refer to the documentation for the load balancer or
* for Traffic Director for more information.
*/
@@ -579,6 +592,7 @@ public static class Builder {
private List customRequestHeaders;
private String description;
private Boolean enableCDN;
+ private BackendServiceFailoverPolicy failoverPolicy;
private String fingerprint;
private List healthChecks;
private BackendServiceIAP iap;
@@ -633,6 +647,9 @@ public Builder mergeFrom(BackendService other) {
if (other.getEnableCDN() != null) {
this.enableCDN = other.enableCDN;
}
+ if (other.getFailoverPolicy() != null) {
+ this.failoverPolicy = other.failoverPolicy;
+ }
if (other.getFingerprint() != null) {
this.fingerprint = other.fingerprint;
}
@@ -704,6 +721,7 @@ public Builder mergeFrom(BackendService other) {
this.customRequestHeaders = source.customRequestHeaders;
this.description = source.description;
this.enableCDN = source.enableCDN;
+ this.failoverPolicy = source.failoverPolicy;
this.fingerprint = source.fingerprint;
this.healthChecks = source.healthChecks;
this.iap = source.iap;
@@ -909,6 +927,23 @@ public Builder setEnableCDN(Boolean enableCDN) {
return this;
}
+ /**
+ * Applicable only to Failover for Internal TCP/UDP Load Balancing. Requires at least one
+ * backend instance group to be defined as a backup (failover) backend.
+ */
+ public BackendServiceFailoverPolicy getFailoverPolicy() {
+ return failoverPolicy;
+ }
+
+ /**
+ * Applicable only to Failover for Internal TCP/UDP Load Balancing. Requires at least one
+ * backend instance group to be defined as a backup (failover) backend.
+ */
+ public Builder setFailoverPolicy(BackendServiceFailoverPolicy failoverPolicy) {
+ this.failoverPolicy = failoverPolicy;
+ return this;
+ }
+
/**
* Fingerprint of this resource. A hash of the contents stored in this object. This field is
* used in optimistic locking. This field will be ignored when inserting a BackendService. An
@@ -935,26 +970,24 @@ public Builder setFingerprint(String fingerprint) {
}
/**
- * The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this
- * BackendService. Currently at most one health check can be specified. Health check is optional
- * for Compute Engine backend services if there is no backend. A health check must not be
- * specified when adding Internet Network Endpoint Group or Serverless Network Endpoint Group as
- * backends. In all other cases, a health check is required for Compute Engine backend services.
- *
- * For internal load balancing, a URL to a HealthCheck resource must be specified instead.
+ * The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks
+ * (legacy) resource for health checking this backend service. Not all backend services support
+ * legacy health checks. See Load balancer guide. Currently at most one health check can be
+ * specified. Backend services with instance group or zonal NEG backends must have a health
+ * check. Backend services with internet NEG backends must not have a health check. A health
+ * check must
*/
public List getHealthChecksList() {
return healthChecks;
}
/**
- * The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this
- * BackendService. Currently at most one health check can be specified. Health check is optional
- * for Compute Engine backend services if there is no backend. A health check must not be
- * specified when adding Internet Network Endpoint Group or Serverless Network Endpoint Group as
- * backends. In all other cases, a health check is required for Compute Engine backend services.
- *
- * For internal load balancing, a URL to a HealthCheck resource must be specified instead.
+ * The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks
+ * (legacy) resource for health checking this backend service. Not all backend services support
+ * legacy health checks. See Load balancer guide. Currently at most one health check can be
+ * specified. Backend services with instance group or zonal NEG backends must have a health
+ * check. Backend services with internet NEG backends must not have a health check. A health
+ * check must
*/
public Builder addAllHealthChecks(List healthChecks) {
if (this.healthChecks == null) {
@@ -965,13 +998,12 @@ public Builder addAllHealthChecks(List healthChecks) {
}
/**
- * The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this
- * BackendService. Currently at most one health check can be specified. Health check is optional
- * for Compute Engine backend services if there is no backend. A health check must not be
- * specified when adding Internet Network Endpoint Group or Serverless Network Endpoint Group as
- * backends. In all other cases, a health check is required for Compute Engine backend services.
- *
- * For internal load balancing, a URL to a HealthCheck resource must be specified instead.
+ * The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks
+ * (legacy) resource for health checking this backend service. Not all backend services support
+ * legacy health checks. See Load balancer guide. Currently at most one health check can be
+ * specified. Backend services with instance group or zonal NEG backends must have a health
+ * check. Backend services with internet NEG backends must not have a health check. A health
+ * check must
*/
public Builder addHealthChecks(String healthChecks) {
if (this.healthChecks == null) {
@@ -1201,9 +1233,10 @@ public Builder setPort(Integer port) {
/**
* A named port on a backend instance group representing the port for communication to the
- * backend VMs in that group. Required when the loadBalancingScheme is EXTERNAL and the backends
- * are instance groups. The named port must be defined on each backend instance group. This
- * parameter has no meaning if the backends are NEGs.
+ * backend VMs in that group. Required when the loadBalancingScheme is EXTERNAL,
+ * INTERNAL_MANAGED, or INTERNAL_SELF_MANAGED and the backends are instance groups. The named
+ * port must be defined on each backend instance group. This parameter has no meaning if the
+ * backends are NEGs.
*
*
Must be omitted when the loadBalancingScheme is INTERNAL (Internal TCP/UDP Load
* Blaancing).
@@ -1214,9 +1247,10 @@ public String getPortName() {
/**
* A named port on a backend instance group representing the port for communication to the
- * backend VMs in that group. Required when the loadBalancingScheme is EXTERNAL and the backends
- * are instance groups. The named port must be defined on each backend instance group. This
- * parameter has no meaning if the backends are NEGs.
+ * backend VMs in that group. Required when the loadBalancingScheme is EXTERNAL,
+ * INTERNAL_MANAGED, or INTERNAL_SELF_MANAGED and the backends are instance groups. The named
+ * port must be defined on each backend instance group. This parameter has no meaning if the
+ * backends are NEGs.
*
*
Must be omitted when the loadBalancingScheme is INTERNAL (Internal TCP/UDP Load
* Blaancing).
@@ -1229,7 +1263,7 @@ public Builder setPortName(String portName) {
/**
* The protocol this BackendService uses to communicate with backends.
*
- *
Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, or UDP, depending on the chosen load
+ *
Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, or UDP. depending on the chosen load
* balancer or Traffic Director configuration. Refer to the documentation for the load balancer
* or for Traffic Director for more information.
*/
@@ -1240,7 +1274,7 @@ public String getProtocol() {
/**
* The protocol this BackendService uses to communicate with backends.
*
- *
Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, or UDP, depending on the chosen load
+ *
Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, or UDP. depending on the chosen load
* balancer or Traffic Director configuration. Refer to the documentation for the load balancer
* or for Traffic Director for more information.
*/
@@ -1359,6 +1393,7 @@ public BackendService build() {
customRequestHeaders,
description,
enableCDN,
+ failoverPolicy,
fingerprint,
healthChecks,
iap,
@@ -1392,6 +1427,7 @@ public Builder clone() {
newBuilder.addAllCustomRequestHeaders(this.customRequestHeaders);
newBuilder.setDescription(this.description);
newBuilder.setEnableCDN(this.enableCDN);
+ newBuilder.setFailoverPolicy(this.failoverPolicy);
newBuilder.setFingerprint(this.fingerprint);
newBuilder.addAllHealthChecks(this.healthChecks);
newBuilder.setIap(this.iap);
@@ -1448,6 +1484,9 @@ public String toString() {
+ "enableCDN="
+ enableCDN
+ ", "
+ + "failoverPolicy="
+ + failoverPolicy
+ + ", "
+ "fingerprint="
+ fingerprint
+ ", "
@@ -1524,6 +1563,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.customRequestHeaders, that.getCustomRequestHeadersList())
&& Objects.equals(this.description, that.getDescription())
&& Objects.equals(this.enableCDN, that.getEnableCDN())
+ && Objects.equals(this.failoverPolicy, that.getFailoverPolicy())
&& Objects.equals(this.fingerprint, that.getFingerprint())
&& Objects.equals(this.healthChecks, that.getHealthChecksList())
&& Objects.equals(this.iap, that.getIap())
@@ -1560,6 +1600,7 @@ public int hashCode() {
customRequestHeaders,
description,
enableCDN,
+ failoverPolicy,
fingerprint,
healthChecks,
iap,
diff --git a/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java b/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java
index ab2cb7aaf..e49d5dcd5 100644
--- a/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java
+++ b/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java
@@ -278,21 +278,29 @@ public final Operation addSignedUrlKeyBackendService(
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (BackendServicesScopedList element : backendServiceClient.aggregatedListBackendServices(project).iterateAll()) {
+ * for (BackendServicesScopedList element : backendServiceClient.aggregatedListBackendServices(includeAllScopes, project).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Name of the project scoping this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
public final AggregatedListBackendServicesPagedResponse aggregatedListBackendServices(
- ProjectName project) {
+ Boolean includeAllScopes, ProjectName project) {
AggregatedListBackendServicesHttpRequest request =
AggregatedListBackendServicesHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
.setProject(project == null ? null : project.toString())
.build();
return aggregatedListBackendServices(request);
@@ -307,21 +315,31 @@ public final AggregatedListBackendServicesPagedResponse aggregatedListBackendSer
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (BackendServicesScopedList element : backendServiceClient.aggregatedListBackendServices(project.toString()).iterateAll()) {
+ * for (BackendServicesScopedList element : backendServiceClient.aggregatedListBackendServices(includeAllScopes, project.toString()).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Name of the project scoping this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
public final AggregatedListBackendServicesPagedResponse aggregatedListBackendServices(
- String project) {
+ Boolean includeAllScopes, String project) {
AggregatedListBackendServicesHttpRequest request =
- AggregatedListBackendServicesHttpRequest.newBuilder().setProject(project).build();
+ AggregatedListBackendServicesHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
+ .setProject(project)
+ .build();
return aggregatedListBackendServices(request);
}
@@ -334,8 +352,10 @@ public final AggregatedListBackendServicesPagedResponse aggregatedListBackendSer
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListBackendServicesHttpRequest request = AggregatedListBackendServicesHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* for (BackendServicesScopedList element : backendServiceClient.aggregatedListBackendServices(request).iterateAll()) {
@@ -362,8 +382,10 @@ public final AggregatedListBackendServicesPagedResponse aggregatedListBackendSer
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListBackendServicesHttpRequest request = AggregatedListBackendServicesHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* ApiFuture<AggregatedListBackendServicesPagedResponse> future = backendServiceClient.aggregatedListBackendServicesPagedCallable().futureCall(request);
@@ -390,8 +412,10 @@ public final AggregatedListBackendServicesPagedResponse aggregatedListBackendSer
*
*
* try (BackendServiceClient backendServiceClient = BackendServiceClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListBackendServicesHttpRequest request = AggregatedListBackendServicesHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* while (true) {
@@ -837,7 +861,7 @@ public final BackendServiceGroupHealth getHealthBackendService(
/**
* Creates a BackendService resource in the specified project using the data included in the
* request. There are several restrictions and guidelines to keep in mind when creating a backend
- * service. Read Restrictions and Guidelines for more information.
+ * service. Read Understanding backend services for more information.
*
* Sample code:
*
@@ -854,8 +878,8 @@ public final BackendServiceGroupHealth getHealthBackendService(
*
A backend service contains configuration values for Google Cloud Platform load balancing
* services.
*
Backend services in Google Compute Engine can be either regionally or globally scoped.
- *
* [Global](/compute/docs/reference/rest/latest/backendServices) *
- * [Regional](/compute/docs/reference/rest/latest/regionBackendServices)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/backendServices) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionBackendServices)
*
For more information, read Backend Services.
*
(== resource_for {$api_version}.backendService ==)
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -875,7 +899,7 @@ public final Operation insertBackendService(
/**
* Creates a BackendService resource in the specified project using the data included in the
* request. There are several restrictions and guidelines to keep in mind when creating a backend
- * service. Read Restrictions and Guidelines for more information.
+ * service. Read Understanding backend services for more information.
*
*
Sample code:
*
@@ -892,8 +916,8 @@ public final Operation insertBackendService(
*
A backend service contains configuration values for Google Cloud Platform load balancing
* services.
*
Backend services in Google Compute Engine can be either regionally or globally scoped.
- *
* [Global](/compute/docs/reference/rest/latest/backendServices) *
- * [Regional](/compute/docs/reference/rest/latest/regionBackendServices)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/backendServices) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionBackendServices)
*
For more information, read Backend Services.
*
(== resource_for {$api_version}.backendService ==)
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -913,7 +937,7 @@ public final Operation insertBackendService(
/**
* Creates a BackendService resource in the specified project using the data included in the
* request. There are several restrictions and guidelines to keep in mind when creating a backend
- * service. Read Restrictions and Guidelines for more information.
+ * service. Read Understanding backend services for more information.
*
*
Sample code:
*
@@ -941,7 +965,7 @@ public final Operation insertBackendService(InsertBackendServiceHttpRequest requ
/**
* Creates a BackendService resource in the specified project using the data included in the
* request. There are several restrictions and guidelines to keep in mind when creating a backend
- * service. Read Restrictions and Guidelines for more information.
+ * service. Read Understanding backend services for more information.
*
*
Sample code:
*
@@ -1106,9 +1130,9 @@ public final ListBackendServicesPagedResponse listBackendServices(
// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Patches the specified BackendService resource with the data included in the request. There are
- * several restrictions and guidelines to keep in mind when updating a backend service. Read
- * Restrictions and Guidelines for more information. This method supports PATCH semantics and uses
- * the JSON merge patch format and processing rules.
+ * several Understanding backend services to keep in mind when updating a backend service. Read
+ * Understanding backend services for more information. This method supports PATCH semantics and
+ * uses the JSON merge patch format and processing rules.
*
*
Sample code:
*
@@ -1126,8 +1150,8 @@ public final ListBackendServicesPagedResponse listBackendServices(
*
A backend service contains configuration values for Google Cloud Platform load balancing
* services.
*
Backend services in Google Compute Engine can be either regionally or globally scoped.
- *
* [Global](/compute/docs/reference/rest/latest/backendServices) *
- * [Regional](/compute/docs/reference/rest/latest/regionBackendServices)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/backendServices) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionBackendServices)
*
For more information, read Backend Services.
*
(== resource_for {$api_version}.backendService ==)
* @param fieldMask The fields that should be serialized (even if they have empty values). If the
@@ -1153,9 +1177,9 @@ public final Operation patchBackendService(
// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Patches the specified BackendService resource with the data included in the request. There are
- * several restrictions and guidelines to keep in mind when updating a backend service. Read
- * Restrictions and Guidelines for more information. This method supports PATCH semantics and uses
- * the JSON merge patch format and processing rules.
+ * several Understanding backend services to keep in mind when updating a backend service. Read
+ * Understanding backend services for more information. This method supports PATCH semantics and
+ * uses the JSON merge patch format and processing rules.
*
*
Sample code:
*
@@ -1173,8 +1197,8 @@ public final Operation patchBackendService(
*
A backend service contains configuration values for Google Cloud Platform load balancing
* services.
*
Backend services in Google Compute Engine can be either regionally or globally scoped.
- *
* [Global](/compute/docs/reference/rest/latest/backendServices) *
- * [Regional](/compute/docs/reference/rest/latest/regionBackendServices)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/backendServices) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionBackendServices)
*
For more information, read Backend Services.
*
(== resource_for {$api_version}.backendService ==)
* @param fieldMask The fields that should be serialized (even if they have empty values). If the
@@ -1198,9 +1222,9 @@ public final Operation patchBackendService(
// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Patches the specified BackendService resource with the data included in the request. There are
- * several restrictions and guidelines to keep in mind when updating a backend service. Read
- * Restrictions and Guidelines for more information. This method supports PATCH semantics and uses
- * the JSON merge patch format and processing rules.
+ * several Understanding backend services to keep in mind when updating a backend service. Read
+ * Understanding backend services for more information. This method supports PATCH semantics and
+ * uses the JSON merge patch format and processing rules.
*
*
Sample code:
*
@@ -1229,9 +1253,9 @@ public final Operation patchBackendService(PatchBackendServiceHttpRequest reques
// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Patches the specified BackendService resource with the data included in the request. There are
- * several restrictions and guidelines to keep in mind when updating a backend service. Read
- * Restrictions and Guidelines for more information. This method supports PATCH semantics and uses
- * the JSON merge patch format and processing rules.
+ * several Understanding backend services to keep in mind when updating a backend service. Read
+ * Understanding backend services for more information. This method supports PATCH semantics and
+ * uses the JSON merge patch format and processing rules.
*
*
Sample code:
*
@@ -1374,8 +1398,8 @@ public final Operation setSecurityPolicyBackendService(
// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Updates the specified BackendService resource with the data included in the request. There are
- * several restrictions and guidelines to keep in mind when updating a backend service. Read
- * Restrictions and Guidelines for more information.
+ * several Understanding backend services to keep in mind when updating a backend service. Read
+ * Understanding backend services for more information.
*
*
Sample code:
*
@@ -1393,8 +1417,8 @@ public final Operation setSecurityPolicyBackendService(
*
A backend service contains configuration values for Google Cloud Platform load balancing
* services.
*
Backend services in Google Compute Engine can be either regionally or globally scoped.
- *
* [Global](/compute/docs/reference/rest/latest/backendServices) *
- * [Regional](/compute/docs/reference/rest/latest/regionBackendServices)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/backendServices) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionBackendServices)
*
For more information, read Backend Services.
*
(== resource_for {$api_version}.backendService ==)
* @param fieldMask The fields that should be serialized (even if they have empty values). If the
@@ -1420,8 +1444,8 @@ public final Operation updateBackendService(
// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Updates the specified BackendService resource with the data included in the request. There are
- * several restrictions and guidelines to keep in mind when updating a backend service. Read
- * Restrictions and Guidelines for more information.
+ * several Understanding backend services to keep in mind when updating a backend service. Read
+ * Understanding backend services for more information.
*
*
Sample code:
*
@@ -1439,8 +1463,8 @@ public final Operation updateBackendService(
*
A backend service contains configuration values for Google Cloud Platform load balancing
* services.
*
Backend services in Google Compute Engine can be either regionally or globally scoped.
- *
* [Global](/compute/docs/reference/rest/latest/backendServices) *
- * [Regional](/compute/docs/reference/rest/latest/regionBackendServices)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/backendServices) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionBackendServices)
*
For more information, read Backend Services.
*
(== resource_for {$api_version}.backendService ==)
* @param fieldMask The fields that should be serialized (even if they have empty values). If the
@@ -1464,8 +1488,8 @@ public final Operation updateBackendService(
// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Updates the specified BackendService resource with the data included in the request. There are
- * several restrictions and guidelines to keep in mind when updating a backend service. Read
- * Restrictions and Guidelines for more information.
+ * several Understanding backend services to keep in mind when updating a backend service. Read
+ * Understanding backend services for more information.
*
*
Sample code:
*
@@ -1494,8 +1518,8 @@ public final Operation updateBackendService(UpdateBackendServiceHttpRequest requ
// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Updates the specified BackendService resource with the data included in the request. There are
- * several restrictions and guidelines to keep in mind when updating a backend service. Read
- * Restrictions and Guidelines for more information.
+ * several Understanding backend services to keep in mind when updating a backend service. Read
+ * Understanding backend services for more information.
*
*
Sample code:
*
diff --git a/src/main/java/com/google/cloud/compute/v1/BackendServiceFailoverPolicy.java b/src/main/java/com/google/cloud/compute/v1/BackendServiceFailoverPolicy.java
new file mode 100644
index 000000000..5cae14a42
--- /dev/null
+++ b/src/main/java/com/google/cloud/compute/v1/BackendServiceFailoverPolicy.java
@@ -0,0 +1,280 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+package com.google.cloud.compute.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.ApiMessage;
+import java.util.List;
+import java.util.Objects;
+import javax.annotation.Generated;
+import javax.annotation.Nullable;
+
+@Generated("by GAPIC")
+@BetaApi
+/**
+ * Applicable only to Failover for Internal TCP/UDP Load Balancing. On failover or failback, this
+ * field indicates whether connection draining will be honored. GCP has a fixed connection draining
+ * timeout of 10 minutes. A setting of true terminates existing TCP connections to the active pool
+ * during failover and failback, immediately draining traffic. A setting of false allows existing
+ * TCP connections to persist, even on VMs no longer in the active pool, for up to the duration of
+ * the connection draining timeout (10 minutes).
+ */
+public final class BackendServiceFailoverPolicy implements ApiMessage {
+ private final Boolean disableConnectionDrainOnFailover;
+ private final Boolean dropTrafficIfUnhealthy;
+ private final Float failoverRatio;
+
+ private BackendServiceFailoverPolicy() {
+ this.disableConnectionDrainOnFailover = null;
+ this.dropTrafficIfUnhealthy = null;
+ this.failoverRatio = null;
+ }
+
+ private BackendServiceFailoverPolicy(
+ Boolean disableConnectionDrainOnFailover,
+ Boolean dropTrafficIfUnhealthy,
+ Float failoverRatio) {
+ this.disableConnectionDrainOnFailover = disableConnectionDrainOnFailover;
+ this.dropTrafficIfUnhealthy = dropTrafficIfUnhealthy;
+ this.failoverRatio = failoverRatio;
+ }
+
+ @Override
+ public Object getFieldValue(String fieldName) {
+ if ("disableConnectionDrainOnFailover".equals(fieldName)) {
+ return disableConnectionDrainOnFailover;
+ }
+ if ("dropTrafficIfUnhealthy".equals(fieldName)) {
+ return dropTrafficIfUnhealthy;
+ }
+ if ("failoverRatio".equals(fieldName)) {
+ return failoverRatio;
+ }
+ return null;
+ }
+
+ @Nullable
+ @Override
+ public ApiMessage getApiMessageRequestBody() {
+ return null;
+ }
+
+ @Nullable
+ @Override
+ /**
+ * The fields that should be serialized (even if they have empty values). If the containing
+ * message object has a non-null fieldmask, then all the fields in the field mask (and only those
+ * fields in the field mask) will be serialized. If the containing object does not have a
+ * fieldmask, then only non-empty fields will be serialized.
+ */
+ public List getFieldMask() {
+ return null;
+ }
+
+ /**
+ * This can be set to true only if the protocol is TCP.
+ *
+ * The default is false.
+ */
+ public Boolean getDisableConnectionDrainOnFailover() {
+ return disableConnectionDrainOnFailover;
+ }
+
+ /**
+ * Applicable only to Failover for Internal TCP/UDP Load Balancing. If set to true, connections to
+ * the load balancer are dropped when all primary and all backup backend VMs are unhealthy. If set
+ * to false, connections are distributed among all primary VMs when all primary and all backup
+ * backend VMs are unhealthy.
+ *
+ *
The default is false.
+ */
+ public Boolean getDropTrafficIfUnhealthy() {
+ return dropTrafficIfUnhealthy;
+ }
+
+ /**
+ * Applicable only to Failover for Internal TCP/UDP Load Balancing. The value of the field must be
+ * in the range [0, 1]. If the value is 0, the load balancer performs a failover when the number
+ * of healthy primary VMs equals zero. For all other values, the load balancer performs a failover
+ * when the total number of healthy primary VMs is less than this ratio.
+ */
+ public Float getFailoverRatio() {
+ return failoverRatio;
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(BackendServiceFailoverPolicy prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ public static BackendServiceFailoverPolicy getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final BackendServiceFailoverPolicy DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new BackendServiceFailoverPolicy();
+ }
+
+ public static class Builder {
+ private Boolean disableConnectionDrainOnFailover;
+ private Boolean dropTrafficIfUnhealthy;
+ private Float failoverRatio;
+
+ Builder() {}
+
+ public Builder mergeFrom(BackendServiceFailoverPolicy other) {
+ if (other == BackendServiceFailoverPolicy.getDefaultInstance()) return this;
+ if (other.getDisableConnectionDrainOnFailover() != null) {
+ this.disableConnectionDrainOnFailover = other.disableConnectionDrainOnFailover;
+ }
+ if (other.getDropTrafficIfUnhealthy() != null) {
+ this.dropTrafficIfUnhealthy = other.dropTrafficIfUnhealthy;
+ }
+ if (other.getFailoverRatio() != null) {
+ this.failoverRatio = other.failoverRatio;
+ }
+ return this;
+ }
+
+ Builder(BackendServiceFailoverPolicy source) {
+ this.disableConnectionDrainOnFailover = source.disableConnectionDrainOnFailover;
+ this.dropTrafficIfUnhealthy = source.dropTrafficIfUnhealthy;
+ this.failoverRatio = source.failoverRatio;
+ }
+
+ /**
+ * This can be set to true only if the protocol is TCP.
+ *
+ *
The default is false.
+ */
+ public Boolean getDisableConnectionDrainOnFailover() {
+ return disableConnectionDrainOnFailover;
+ }
+
+ /**
+ * This can be set to true only if the protocol is TCP.
+ *
+ *
The default is false.
+ */
+ public Builder setDisableConnectionDrainOnFailover(Boolean disableConnectionDrainOnFailover) {
+ this.disableConnectionDrainOnFailover = disableConnectionDrainOnFailover;
+ return this;
+ }
+
+ /**
+ * Applicable only to Failover for Internal TCP/UDP Load Balancing. If set to true, connections
+ * to the load balancer are dropped when all primary and all backup backend VMs are unhealthy.
+ * If set to false, connections are distributed among all primary VMs when all primary and all
+ * backup backend VMs are unhealthy.
+ *
+ *
The default is false.
+ */
+ public Boolean getDropTrafficIfUnhealthy() {
+ return dropTrafficIfUnhealthy;
+ }
+
+ /**
+ * Applicable only to Failover for Internal TCP/UDP Load Balancing. If set to true, connections
+ * to the load balancer are dropped when all primary and all backup backend VMs are unhealthy.
+ * If set to false, connections are distributed among all primary VMs when all primary and all
+ * backup backend VMs are unhealthy.
+ *
+ *
The default is false.
+ */
+ public Builder setDropTrafficIfUnhealthy(Boolean dropTrafficIfUnhealthy) {
+ this.dropTrafficIfUnhealthy = dropTrafficIfUnhealthy;
+ return this;
+ }
+
+ /**
+ * Applicable only to Failover for Internal TCP/UDP Load Balancing. The value of the field must
+ * be in the range [0, 1]. If the value is 0, the load balancer performs a failover when the
+ * number of healthy primary VMs equals zero. For all other values, the load balancer performs a
+ * failover when the total number of healthy primary VMs is less than this ratio.
+ */
+ public Float getFailoverRatio() {
+ return failoverRatio;
+ }
+
+ /**
+ * Applicable only to Failover for Internal TCP/UDP Load Balancing. The value of the field must
+ * be in the range [0, 1]. If the value is 0, the load balancer performs a failover when the
+ * number of healthy primary VMs equals zero. For all other values, the load balancer performs a
+ * failover when the total number of healthy primary VMs is less than this ratio.
+ */
+ public Builder setFailoverRatio(Float failoverRatio) {
+ this.failoverRatio = failoverRatio;
+ return this;
+ }
+
+ public BackendServiceFailoverPolicy build() {
+
+ return new BackendServiceFailoverPolicy(
+ disableConnectionDrainOnFailover, dropTrafficIfUnhealthy, failoverRatio);
+ }
+
+ public Builder clone() {
+ Builder newBuilder = new Builder();
+ newBuilder.setDisableConnectionDrainOnFailover(this.disableConnectionDrainOnFailover);
+ newBuilder.setDropTrafficIfUnhealthy(this.dropTrafficIfUnhealthy);
+ newBuilder.setFailoverRatio(this.failoverRatio);
+ return newBuilder;
+ }
+ }
+
+ @Override
+ public String toString() {
+ return "BackendServiceFailoverPolicy{"
+ + "disableConnectionDrainOnFailover="
+ + disableConnectionDrainOnFailover
+ + ", "
+ + "dropTrafficIfUnhealthy="
+ + dropTrafficIfUnhealthy
+ + ", "
+ + "failoverRatio="
+ + failoverRatio
+ + "}";
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof BackendServiceFailoverPolicy) {
+ BackendServiceFailoverPolicy that = (BackendServiceFailoverPolicy) o;
+ return Objects.equals(
+ this.disableConnectionDrainOnFailover, that.getDisableConnectionDrainOnFailover())
+ && Objects.equals(this.dropTrafficIfUnhealthy, that.getDropTrafficIfUnhealthy())
+ && Objects.equals(this.failoverRatio, that.getFailoverRatio());
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(disableConnectionDrainOnFailover, dropTrafficIfUnhealthy, failoverRatio);
+ }
+}
diff --git a/src/main/java/com/google/cloud/compute/v1/CustomerEncryptionKey.java b/src/main/java/com/google/cloud/compute/v1/CustomerEncryptionKey.java
index 58944d230..6c705594c 100644
--- a/src/main/java/com/google/cloud/compute/v1/CustomerEncryptionKey.java
+++ b/src/main/java/com/google/cloud/compute/v1/CustomerEncryptionKey.java
@@ -27,17 +27,21 @@
/** Represents a customer-supplied encryption key */
public final class CustomerEncryptionKey implements ApiMessage {
private final String kmsKeyName;
+ private final String kmsKeyServiceAccount;
private final String rawKey;
private final String sha256;
private CustomerEncryptionKey() {
this.kmsKeyName = null;
+ this.kmsKeyServiceAccount = null;
this.rawKey = null;
this.sha256 = null;
}
- private CustomerEncryptionKey(String kmsKeyName, String rawKey, String sha256) {
+ private CustomerEncryptionKey(
+ String kmsKeyName, String kmsKeyServiceAccount, String rawKey, String sha256) {
this.kmsKeyName = kmsKeyName;
+ this.kmsKeyServiceAccount = kmsKeyServiceAccount;
this.rawKey = rawKey;
this.sha256 = sha256;
}
@@ -47,6 +51,9 @@ public Object getFieldValue(String fieldName) {
if ("kmsKeyName".equals(fieldName)) {
return kmsKeyName;
}
+ if ("kmsKeyServiceAccount".equals(fieldName)) {
+ return kmsKeyServiceAccount;
+ }
if ("rawKey".equals(fieldName)) {
return rawKey;
}
@@ -79,6 +86,14 @@ public String getKmsKeyName() {
return kmsKeyName;
}
+ /**
+ * The service account being used for the encryption request for the given KMS key. If absent, the
+ * Compute Engine default service account is used.
+ */
+ public String getKmsKeyServiceAccount() {
+ return kmsKeyServiceAccount;
+ }
+
/**
* Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either
* encrypt or decrypt this resource.
@@ -119,6 +134,7 @@ public static CustomerEncryptionKey getDefaultInstance() {
public static class Builder {
private String kmsKeyName;
+ private String kmsKeyServiceAccount;
private String rawKey;
private String sha256;
@@ -129,6 +145,9 @@ public Builder mergeFrom(CustomerEncryptionKey other) {
if (other.getKmsKeyName() != null) {
this.kmsKeyName = other.kmsKeyName;
}
+ if (other.getKmsKeyServiceAccount() != null) {
+ this.kmsKeyServiceAccount = other.kmsKeyServiceAccount;
+ }
if (other.getRawKey() != null) {
this.rawKey = other.rawKey;
}
@@ -140,6 +159,7 @@ public Builder mergeFrom(CustomerEncryptionKey other) {
Builder(CustomerEncryptionKey source) {
this.kmsKeyName = source.kmsKeyName;
+ this.kmsKeyServiceAccount = source.kmsKeyServiceAccount;
this.rawKey = source.rawKey;
this.sha256 = source.sha256;
}
@@ -155,6 +175,23 @@ public Builder setKmsKeyName(String kmsKeyName) {
return this;
}
+ /**
+ * The service account being used for the encryption request for the given KMS key. If absent,
+ * the Compute Engine default service account is used.
+ */
+ public String getKmsKeyServiceAccount() {
+ return kmsKeyServiceAccount;
+ }
+
+ /**
+ * The service account being used for the encryption request for the given KMS key. If absent,
+ * the Compute Engine default service account is used.
+ */
+ public Builder setKmsKeyServiceAccount(String kmsKeyServiceAccount) {
+ this.kmsKeyServiceAccount = kmsKeyServiceAccount;
+ return this;
+ }
+
/**
* Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either
* encrypt or decrypt this resource.
@@ -191,12 +228,13 @@ public Builder setSha256(String sha256) {
public CustomerEncryptionKey build() {
- return new CustomerEncryptionKey(kmsKeyName, rawKey, sha256);
+ return new CustomerEncryptionKey(kmsKeyName, kmsKeyServiceAccount, rawKey, sha256);
}
public Builder clone() {
Builder newBuilder = new Builder();
newBuilder.setKmsKeyName(this.kmsKeyName);
+ newBuilder.setKmsKeyServiceAccount(this.kmsKeyServiceAccount);
newBuilder.setRawKey(this.rawKey);
newBuilder.setSha256(this.sha256);
return newBuilder;
@@ -209,6 +247,9 @@ public String toString() {
+ "kmsKeyName="
+ kmsKeyName
+ ", "
+ + "kmsKeyServiceAccount="
+ + kmsKeyServiceAccount
+ + ", "
+ "rawKey="
+ rawKey
+ ", "
@@ -225,6 +266,7 @@ public boolean equals(Object o) {
if (o instanceof CustomerEncryptionKey) {
CustomerEncryptionKey that = (CustomerEncryptionKey) o;
return Objects.equals(this.kmsKeyName, that.getKmsKeyName())
+ && Objects.equals(this.kmsKeyServiceAccount, that.getKmsKeyServiceAccount())
&& Objects.equals(this.rawKey, that.getRawKey())
&& Objects.equals(this.sha256, that.getSha256());
}
@@ -233,6 +275,6 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(kmsKeyName, rawKey, sha256);
+ return Objects.hash(kmsKeyName, kmsKeyServiceAccount, rawKey, sha256);
}
}
diff --git a/src/main/java/com/google/cloud/compute/v1/DeleteGlobalNetworkEndpointGroupHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/DeleteGlobalNetworkEndpointGroupHttpRequest.java
new file mode 100644
index 000000000..0fd029e7b
--- /dev/null
+++ b/src/main/java/com/google/cloud/compute/v1/DeleteGlobalNetworkEndpointGroupHttpRequest.java
@@ -0,0 +1,509 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+package com.google.cloud.compute.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.ApiMessage;
+import java.util.List;
+import java.util.Objects;
+import javax.annotation.Generated;
+import javax.annotation.Nullable;
+
+@Generated("by GAPIC")
+@BetaApi
+/**
+ * Request object for method compute.globalNetworkEndpointGroups.delete. Deletes the specified
+ * network endpoint group.Note that the NEG cannot be deleted if there are backend services
+ * referencing it.
+ */
+public final class DeleteGlobalNetworkEndpointGroupHttpRequest implements ApiMessage {
+ private final String access_token;
+ private final String callback;
+ private final String fields;
+ private final String key;
+ private final String networkEndpointGroup;
+ private final String prettyPrint;
+ private final String quotaUser;
+ private final String requestId;
+ private final String userIp;
+
+ private DeleteGlobalNetworkEndpointGroupHttpRequest() {
+ this.access_token = null;
+ this.callback = null;
+ this.fields = null;
+ this.key = null;
+ this.networkEndpointGroup = null;
+ this.prettyPrint = null;
+ this.quotaUser = null;
+ this.requestId = null;
+ this.userIp = null;
+ }
+
+ private DeleteGlobalNetworkEndpointGroupHttpRequest(
+ String access_token,
+ String callback,
+ String fields,
+ String key,
+ String networkEndpointGroup,
+ String prettyPrint,
+ String quotaUser,
+ String requestId,
+ String userIp) {
+ this.access_token = access_token;
+ this.callback = callback;
+ this.fields = fields;
+ this.key = key;
+ this.networkEndpointGroup = networkEndpointGroup;
+ this.prettyPrint = prettyPrint;
+ this.quotaUser = quotaUser;
+ this.requestId = requestId;
+ this.userIp = userIp;
+ }
+
+ @Override
+ public Object getFieldValue(String fieldName) {
+ if ("access_token".equals(fieldName)) {
+ return access_token;
+ }
+ if ("callback".equals(fieldName)) {
+ return callback;
+ }
+ if ("fields".equals(fieldName)) {
+ return fields;
+ }
+ if ("key".equals(fieldName)) {
+ return key;
+ }
+ if ("networkEndpointGroup".equals(fieldName)) {
+ return networkEndpointGroup;
+ }
+ if ("prettyPrint".equals(fieldName)) {
+ return prettyPrint;
+ }
+ if ("quotaUser".equals(fieldName)) {
+ return quotaUser;
+ }
+ if ("requestId".equals(fieldName)) {
+ return requestId;
+ }
+ if ("userIp".equals(fieldName)) {
+ return userIp;
+ }
+ return null;
+ }
+
+ @Nullable
+ @Override
+ public ApiMessage getApiMessageRequestBody() {
+ return null;
+ }
+
+ @Nullable
+ @Override
+ /**
+ * The fields that should be serialized (even if they have empty values). If the containing
+ * message object has a non-null fieldmask, then all the fields in the field mask (and only those
+ * fields in the field mask) will be serialized. If the containing object does not have a
+ * fieldmask, then only non-empty fields will be serialized.
+ */
+ public List getFieldMask() {
+ return null;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /**
+ * The name of the network endpoint group to delete. It should comply with RFC1035. It must have
+ * the format `{project}/global/networkEndpointGroups/{networkEndpointGroup}`.
+ * \`{networkEndpointGroup}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public String getNetworkEndpointGroup() {
+ return networkEndpointGroup;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /**
+ * An optional request ID to identify requests. Specify a unique request ID so that if you must
+ * retry your request, the server will know to ignore the request if it has already been
+ * completed.
+ *
+ * For example, consider a situation where you make an initial request and the request times
+ * out. If you make the request again with the same request ID, the server can check if original
+ * operation with the same request ID was received, and if so, will ignore the second request.
+ * This prevents clients from accidentally creating duplicate commitments.
+ *
+ *
The request ID must be a valid UUID with the exception that zero UUID is not supported
+ * (00000000-0000-0000-0000-000000000000).
+ */
+ public String getRequestId() {
+ return requestId;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(DeleteGlobalNetworkEndpointGroupHttpRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ public static DeleteGlobalNetworkEndpointGroupHttpRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final DeleteGlobalNetworkEndpointGroupHttpRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new DeleteGlobalNetworkEndpointGroupHttpRequest();
+ }
+
+ public static class Builder {
+ private String access_token;
+ private String callback;
+ private String fields;
+ private String key;
+ private String networkEndpointGroup;
+ private String prettyPrint;
+ private String quotaUser;
+ private String requestId;
+ private String userIp;
+
+ Builder() {}
+
+ public Builder mergeFrom(DeleteGlobalNetworkEndpointGroupHttpRequest other) {
+ if (other == DeleteGlobalNetworkEndpointGroupHttpRequest.getDefaultInstance()) return this;
+ if (other.getAccessToken() != null) {
+ this.access_token = other.access_token;
+ }
+ if (other.getCallback() != null) {
+ this.callback = other.callback;
+ }
+ if (other.getFields() != null) {
+ this.fields = other.fields;
+ }
+ if (other.getKey() != null) {
+ this.key = other.key;
+ }
+ if (other.getNetworkEndpointGroup() != null) {
+ this.networkEndpointGroup = other.networkEndpointGroup;
+ }
+ if (other.getPrettyPrint() != null) {
+ this.prettyPrint = other.prettyPrint;
+ }
+ if (other.getQuotaUser() != null) {
+ this.quotaUser = other.quotaUser;
+ }
+ if (other.getRequestId() != null) {
+ this.requestId = other.requestId;
+ }
+ if (other.getUserIp() != null) {
+ this.userIp = other.userIp;
+ }
+ return this;
+ }
+
+ Builder(DeleteGlobalNetworkEndpointGroupHttpRequest source) {
+ this.access_token = source.access_token;
+ this.callback = source.callback;
+ this.fields = source.fields;
+ this.key = source.key;
+ this.networkEndpointGroup = source.networkEndpointGroup;
+ this.prettyPrint = source.prettyPrint;
+ this.quotaUser = source.quotaUser;
+ this.requestId = source.requestId;
+ this.userIp = source.userIp;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public Builder setAccessToken(String access_token) {
+ this.access_token = access_token;
+ return this;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public Builder setCallback(String callback) {
+ this.callback = callback;
+ return this;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public Builder setFields(String fields) {
+ this.fields = fields;
+ return this;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public Builder setKey(String key) {
+ this.key = key;
+ return this;
+ }
+
+ /**
+ * The name of the network endpoint group to delete. It should comply with RFC1035. It must have
+ * the format `{project}/global/networkEndpointGroups/{networkEndpointGroup}`.
+ * \`{networkEndpointGroup}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public String getNetworkEndpointGroup() {
+ return networkEndpointGroup;
+ }
+
+ /**
+ * The name of the network endpoint group to delete. It should comply with RFC1035. It must have
+ * the format `{project}/global/networkEndpointGroups/{networkEndpointGroup}`.
+ * \`{networkEndpointGroup}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public Builder setNetworkEndpointGroup(String networkEndpointGroup) {
+ this.networkEndpointGroup = networkEndpointGroup;
+ return this;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public Builder setPrettyPrint(String prettyPrint) {
+ this.prettyPrint = prettyPrint;
+ return this;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /** Alternative to userIp. */
+ public Builder setQuotaUser(String quotaUser) {
+ this.quotaUser = quotaUser;
+ 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).
+ */
+ public 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 Builder setRequestId(String requestId) {
+ this.requestId = requestId;
+ return this;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public Builder setUserIp(String userIp) {
+ this.userIp = userIp;
+ return this;
+ }
+
+ public DeleteGlobalNetworkEndpointGroupHttpRequest build() {
+ String missing = "";
+
+ if (networkEndpointGroup == null) {
+ missing += " networkEndpointGroup";
+ }
+
+ if (!missing.isEmpty()) {
+ throw new IllegalStateException("Missing required properties:" + missing);
+ }
+ return new DeleteGlobalNetworkEndpointGroupHttpRequest(
+ access_token,
+ callback,
+ fields,
+ key,
+ networkEndpointGroup,
+ prettyPrint,
+ quotaUser,
+ requestId,
+ userIp);
+ }
+
+ public Builder clone() {
+ Builder newBuilder = new Builder();
+ newBuilder.setAccessToken(this.access_token);
+ newBuilder.setCallback(this.callback);
+ newBuilder.setFields(this.fields);
+ newBuilder.setKey(this.key);
+ newBuilder.setNetworkEndpointGroup(this.networkEndpointGroup);
+ newBuilder.setPrettyPrint(this.prettyPrint);
+ newBuilder.setQuotaUser(this.quotaUser);
+ newBuilder.setRequestId(this.requestId);
+ newBuilder.setUserIp(this.userIp);
+ return newBuilder;
+ }
+ }
+
+ @Override
+ public String toString() {
+ return "DeleteGlobalNetworkEndpointGroupHttpRequest{"
+ + "access_token="
+ + access_token
+ + ", "
+ + "callback="
+ + callback
+ + ", "
+ + "fields="
+ + fields
+ + ", "
+ + "key="
+ + key
+ + ", "
+ + "networkEndpointGroup="
+ + networkEndpointGroup
+ + ", "
+ + "prettyPrint="
+ + prettyPrint
+ + ", "
+ + "quotaUser="
+ + quotaUser
+ + ", "
+ + "requestId="
+ + requestId
+ + ", "
+ + "userIp="
+ + userIp
+ + "}";
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof DeleteGlobalNetworkEndpointGroupHttpRequest) {
+ DeleteGlobalNetworkEndpointGroupHttpRequest that =
+ (DeleteGlobalNetworkEndpointGroupHttpRequest) o;
+ return Objects.equals(this.access_token, that.getAccessToken())
+ && Objects.equals(this.callback, that.getCallback())
+ && Objects.equals(this.fields, that.getFields())
+ && Objects.equals(this.key, that.getKey())
+ && Objects.equals(this.networkEndpointGroup, that.getNetworkEndpointGroup())
+ && Objects.equals(this.prettyPrint, that.getPrettyPrint())
+ && Objects.equals(this.quotaUser, that.getQuotaUser())
+ && Objects.equals(this.requestId, that.getRequestId())
+ && Objects.equals(this.userIp, that.getUserIp());
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ access_token,
+ callback,
+ fields,
+ key,
+ networkEndpointGroup,
+ prettyPrint,
+ quotaUser,
+ requestId,
+ userIp);
+ }
+}
diff --git a/src/main/java/com/google/cloud/compute/v1/DeleteLicenseHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/DeleteLicenseHttpRequest.java
index 2d6668b25..d8eb556ad 100644
--- a/src/main/java/com/google/cloud/compute/v1/DeleteLicenseHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/DeleteLicenseHttpRequest.java
@@ -24,7 +24,11 @@
@Generated("by GAPIC")
@BetaApi
-/** Request object for method compute.licenses.delete. Deletes the specified license. */
+/**
+ * Request object for method compute.licenses.delete. Deletes the specified license. Caution This
+ * resource is intended for use only by third-party partners who are creating Cloud Marketplace
+ * images.
+ */
public final class DeleteLicenseHttpRequest implements ApiMessage {
private final String access_token;
private final String callback;
diff --git a/src/main/java/com/google/cloud/compute/v1/DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest.java
new file mode 100644
index 000000000..bd11e7658
--- /dev/null
+++ b/src/main/java/com/google/cloud/compute/v1/DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest.java
@@ -0,0 +1,560 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+package com.google.cloud.compute.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.ApiMessage;
+import java.util.List;
+import java.util.Objects;
+import javax.annotation.Generated;
+import javax.annotation.Nullable;
+
+@Generated("by GAPIC")
+@BetaApi
+/**
+ * Request object for method compute.globalNetworkEndpointGroups.detachNetworkEndpoints. Detach the
+ * network endpoint from the specified network endpoint group.
+ */
+public final class DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest
+ implements ApiMessage {
+ private final String access_token;
+ private final String callback;
+ private final String fields;
+ private final GlobalNetworkEndpointGroupsDetachEndpointsRequest
+ globalNetworkEndpointGroupsDetachEndpointsRequestResource;
+ private final String key;
+ private final String networkEndpointGroup;
+ private final String prettyPrint;
+ private final String quotaUser;
+ private final String requestId;
+ private final String userIp;
+
+ private DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest() {
+ this.access_token = null;
+ this.callback = null;
+ this.fields = null;
+ this.globalNetworkEndpointGroupsDetachEndpointsRequestResource = null;
+ this.key = null;
+ this.networkEndpointGroup = null;
+ this.prettyPrint = null;
+ this.quotaUser = null;
+ this.requestId = null;
+ this.userIp = null;
+ }
+
+ private DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest(
+ String access_token,
+ String callback,
+ String fields,
+ GlobalNetworkEndpointGroupsDetachEndpointsRequest
+ globalNetworkEndpointGroupsDetachEndpointsRequestResource,
+ String key,
+ String networkEndpointGroup,
+ String prettyPrint,
+ String quotaUser,
+ String requestId,
+ String userIp) {
+ this.access_token = access_token;
+ this.callback = callback;
+ this.fields = fields;
+ this.globalNetworkEndpointGroupsDetachEndpointsRequestResource =
+ globalNetworkEndpointGroupsDetachEndpointsRequestResource;
+ this.key = key;
+ this.networkEndpointGroup = networkEndpointGroup;
+ this.prettyPrint = prettyPrint;
+ this.quotaUser = quotaUser;
+ this.requestId = requestId;
+ this.userIp = userIp;
+ }
+
+ @Override
+ public Object getFieldValue(String fieldName) {
+ if ("access_token".equals(fieldName)) {
+ return access_token;
+ }
+ if ("callback".equals(fieldName)) {
+ return callback;
+ }
+ if ("fields".equals(fieldName)) {
+ return fields;
+ }
+ if ("globalNetworkEndpointGroupsDetachEndpointsRequestResource".equals(fieldName)) {
+ return globalNetworkEndpointGroupsDetachEndpointsRequestResource;
+ }
+ if ("key".equals(fieldName)) {
+ return key;
+ }
+ if ("networkEndpointGroup".equals(fieldName)) {
+ return networkEndpointGroup;
+ }
+ if ("prettyPrint".equals(fieldName)) {
+ return prettyPrint;
+ }
+ if ("quotaUser".equals(fieldName)) {
+ return quotaUser;
+ }
+ if ("requestId".equals(fieldName)) {
+ return requestId;
+ }
+ if ("userIp".equals(fieldName)) {
+ return userIp;
+ }
+ return null;
+ }
+
+ @Nullable
+ @Override
+ public GlobalNetworkEndpointGroupsDetachEndpointsRequest getApiMessageRequestBody() {
+ return globalNetworkEndpointGroupsDetachEndpointsRequestResource;
+ }
+
+ @Nullable
+ @Override
+ /**
+ * The fields that should be serialized (even if they have empty values). If the containing
+ * message object has a non-null fieldmask, then all the fields in the field mask (and only those
+ * fields in the field mask) will be serialized. If the containing object does not have a
+ * fieldmask, then only non-empty fields will be serialized.
+ */
+ public List getFieldMask() {
+ return null;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ public GlobalNetworkEndpointGroupsDetachEndpointsRequest
+ getGlobalNetworkEndpointGroupsDetachEndpointsRequestResource() {
+ return globalNetworkEndpointGroupsDetachEndpointsRequestResource;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /**
+ * The name of the network endpoint group where you are removing network endpoints. It should
+ * comply with RFC1035. It must have the format
+ * `{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints`.
+ * \`{networkEndpointGroup}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public String getNetworkEndpointGroup() {
+ return networkEndpointGroup;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /**
+ * An optional request ID to identify requests. Specify a unique request ID so that if you must
+ * retry your request, the server will know to ignore the request if it has already been
+ * completed.
+ *
+ * For example, consider a situation where you make an initial request and the request times
+ * out. If you make the request again with the same request ID, the server can check if original
+ * operation with the same request ID was received, and if so, will ignore the second request.
+ * This prevents clients from accidentally creating duplicate commitments.
+ *
+ *
The request ID must be a valid UUID with the exception that zero UUID is not supported
+ * (00000000-0000-0000-0000-000000000000).
+ */
+ public String getRequestId() {
+ return requestId;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ public static DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest();
+ }
+
+ public static class Builder {
+ private String access_token;
+ private String callback;
+ private String fields;
+ private GlobalNetworkEndpointGroupsDetachEndpointsRequest
+ globalNetworkEndpointGroupsDetachEndpointsRequestResource;
+ private String key;
+ private String networkEndpointGroup;
+ private String prettyPrint;
+ private String quotaUser;
+ private String requestId;
+ private String userIp;
+
+ Builder() {}
+
+ public Builder mergeFrom(DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest other) {
+ if (other == DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest.getDefaultInstance())
+ return this;
+ if (other.getAccessToken() != null) {
+ this.access_token = other.access_token;
+ }
+ if (other.getCallback() != null) {
+ this.callback = other.callback;
+ }
+ if (other.getFields() != null) {
+ this.fields = other.fields;
+ }
+ if (other.getGlobalNetworkEndpointGroupsDetachEndpointsRequestResource() != null) {
+ this.globalNetworkEndpointGroupsDetachEndpointsRequestResource =
+ other.globalNetworkEndpointGroupsDetachEndpointsRequestResource;
+ }
+ if (other.getKey() != null) {
+ this.key = other.key;
+ }
+ if (other.getNetworkEndpointGroup() != null) {
+ this.networkEndpointGroup = other.networkEndpointGroup;
+ }
+ if (other.getPrettyPrint() != null) {
+ this.prettyPrint = other.prettyPrint;
+ }
+ if (other.getQuotaUser() != null) {
+ this.quotaUser = other.quotaUser;
+ }
+ if (other.getRequestId() != null) {
+ this.requestId = other.requestId;
+ }
+ if (other.getUserIp() != null) {
+ this.userIp = other.userIp;
+ }
+ return this;
+ }
+
+ Builder(DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest source) {
+ this.access_token = source.access_token;
+ this.callback = source.callback;
+ this.fields = source.fields;
+ this.globalNetworkEndpointGroupsDetachEndpointsRequestResource =
+ source.globalNetworkEndpointGroupsDetachEndpointsRequestResource;
+ this.key = source.key;
+ this.networkEndpointGroup = source.networkEndpointGroup;
+ this.prettyPrint = source.prettyPrint;
+ this.quotaUser = source.quotaUser;
+ this.requestId = source.requestId;
+ this.userIp = source.userIp;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public Builder setAccessToken(String access_token) {
+ this.access_token = access_token;
+ return this;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public Builder setCallback(String callback) {
+ this.callback = callback;
+ return this;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public Builder setFields(String fields) {
+ this.fields = fields;
+ return this;
+ }
+
+ public GlobalNetworkEndpointGroupsDetachEndpointsRequest
+ getGlobalNetworkEndpointGroupsDetachEndpointsRequestResource() {
+ return globalNetworkEndpointGroupsDetachEndpointsRequestResource;
+ }
+
+ public Builder setGlobalNetworkEndpointGroupsDetachEndpointsRequestResource(
+ GlobalNetworkEndpointGroupsDetachEndpointsRequest
+ globalNetworkEndpointGroupsDetachEndpointsRequestResource) {
+ this.globalNetworkEndpointGroupsDetachEndpointsRequestResource =
+ globalNetworkEndpointGroupsDetachEndpointsRequestResource;
+ return this;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public Builder setKey(String key) {
+ this.key = key;
+ return this;
+ }
+
+ /**
+ * The name of the network endpoint group where you are removing network endpoints. It should
+ * comply with RFC1035. It must have the format
+ * `{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints`.
+ * \`{networkEndpointGroup}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public String getNetworkEndpointGroup() {
+ return networkEndpointGroup;
+ }
+
+ /**
+ * The name of the network endpoint group where you are removing network endpoints. It should
+ * comply with RFC1035. It must have the format
+ * `{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints`.
+ * \`{networkEndpointGroup}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public Builder setNetworkEndpointGroup(String networkEndpointGroup) {
+ this.networkEndpointGroup = networkEndpointGroup;
+ return this;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public Builder setPrettyPrint(String prettyPrint) {
+ this.prettyPrint = prettyPrint;
+ return this;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /** Alternative to userIp. */
+ public Builder setQuotaUser(String quotaUser) {
+ this.quotaUser = quotaUser;
+ 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).
+ */
+ public 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 Builder setRequestId(String requestId) {
+ this.requestId = requestId;
+ return this;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public Builder setUserIp(String userIp) {
+ this.userIp = userIp;
+ return this;
+ }
+
+ public DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest build() {
+ String missing = "";
+
+ if (networkEndpointGroup == null) {
+ missing += " networkEndpointGroup";
+ }
+
+ if (!missing.isEmpty()) {
+ throw new IllegalStateException("Missing required properties:" + missing);
+ }
+ return new DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest(
+ access_token,
+ callback,
+ fields,
+ globalNetworkEndpointGroupsDetachEndpointsRequestResource,
+ key,
+ networkEndpointGroup,
+ prettyPrint,
+ quotaUser,
+ requestId,
+ userIp);
+ }
+
+ public Builder clone() {
+ Builder newBuilder = new Builder();
+ newBuilder.setAccessToken(this.access_token);
+ newBuilder.setCallback(this.callback);
+ newBuilder.setFields(this.fields);
+ newBuilder.setGlobalNetworkEndpointGroupsDetachEndpointsRequestResource(
+ this.globalNetworkEndpointGroupsDetachEndpointsRequestResource);
+ newBuilder.setKey(this.key);
+ newBuilder.setNetworkEndpointGroup(this.networkEndpointGroup);
+ newBuilder.setPrettyPrint(this.prettyPrint);
+ newBuilder.setQuotaUser(this.quotaUser);
+ newBuilder.setRequestId(this.requestId);
+ newBuilder.setUserIp(this.userIp);
+ return newBuilder;
+ }
+ }
+
+ @Override
+ public String toString() {
+ return "DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest{"
+ + "access_token="
+ + access_token
+ + ", "
+ + "callback="
+ + callback
+ + ", "
+ + "fields="
+ + fields
+ + ", "
+ + "globalNetworkEndpointGroupsDetachEndpointsRequestResource="
+ + globalNetworkEndpointGroupsDetachEndpointsRequestResource
+ + ", "
+ + "key="
+ + key
+ + ", "
+ + "networkEndpointGroup="
+ + networkEndpointGroup
+ + ", "
+ + "prettyPrint="
+ + prettyPrint
+ + ", "
+ + "quotaUser="
+ + quotaUser
+ + ", "
+ + "requestId="
+ + requestId
+ + ", "
+ + "userIp="
+ + userIp
+ + "}";
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest) {
+ DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest that =
+ (DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest) o;
+ return Objects.equals(this.access_token, that.getAccessToken())
+ && Objects.equals(this.callback, that.getCallback())
+ && Objects.equals(this.fields, that.getFields())
+ && Objects.equals(
+ this.globalNetworkEndpointGroupsDetachEndpointsRequestResource,
+ that.getGlobalNetworkEndpointGroupsDetachEndpointsRequestResource())
+ && Objects.equals(this.key, that.getKey())
+ && Objects.equals(this.networkEndpointGroup, that.getNetworkEndpointGroup())
+ && Objects.equals(this.prettyPrint, that.getPrettyPrint())
+ && Objects.equals(this.quotaUser, that.getQuotaUser())
+ && Objects.equals(this.requestId, that.getRequestId())
+ && Objects.equals(this.userIp, that.getUserIp());
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ access_token,
+ callback,
+ fields,
+ globalNetworkEndpointGroupsDetachEndpointsRequestResource,
+ key,
+ networkEndpointGroup,
+ prettyPrint,
+ quotaUser,
+ requestId,
+ userIp);
+ }
+}
diff --git a/src/main/java/com/google/cloud/compute/v1/Disk.java b/src/main/java/com/google/cloud/compute/v1/Disk.java
index cf228dc76..9e28d1836 100644
--- a/src/main/java/com/google/cloud/compute/v1/Disk.java
+++ b/src/main/java/com/google/cloud/compute/v1/Disk.java
@@ -31,8 +31,8 @@
*
*
Google Compute Engine has two Disk resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/disks) *
- * [Regional](/compute/docs/reference/rest/latest/regionDisks)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/disks) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionDisks)
*
*
Persistent disks are required for running your VM instances. Create both boot and non-boot
* (data) persistent disks. For more information, read Persistent Disks. For more storage options,
diff --git a/src/main/java/com/google/cloud/compute/v1/DiskClient.java b/src/main/java/com/google/cloud/compute/v1/DiskClient.java
index 9515537e5..6f7b719f7 100644
--- a/src/main/java/com/google/cloud/compute/v1/DiskClient.java
+++ b/src/main/java/com/google/cloud/compute/v1/DiskClient.java
@@ -275,20 +275,29 @@ public final Operation addResourcePoliciesDisk(AddResourcePoliciesDiskHttpReques
*
*
* try (DiskClient diskClient = DiskClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (DisksScopedList element : diskClient.aggregatedListDisks(project).iterateAll()) {
+ * for (DisksScopedList element : diskClient.aggregatedListDisks(includeAllScopes, project).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Project ID for this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
- public final AggregatedListDisksPagedResponse aggregatedListDisks(ProjectName project) {
+ public final AggregatedListDisksPagedResponse aggregatedListDisks(
+ Boolean includeAllScopes, ProjectName project) {
AggregatedListDisksHttpRequest request =
AggregatedListDisksHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
.setProject(project == null ? null : project.toString())
.build();
return aggregatedListDisks(request);
@@ -302,20 +311,31 @@ public final AggregatedListDisksPagedResponse aggregatedListDisks(ProjectName pr
*
*
* try (DiskClient diskClient = DiskClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (DisksScopedList element : diskClient.aggregatedListDisks(project.toString()).iterateAll()) {
+ * for (DisksScopedList element : diskClient.aggregatedListDisks(includeAllScopes, project.toString()).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Project ID for this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
- public final AggregatedListDisksPagedResponse aggregatedListDisks(String project) {
+ public final AggregatedListDisksPagedResponse aggregatedListDisks(
+ Boolean includeAllScopes, String project) {
AggregatedListDisksHttpRequest request =
- AggregatedListDisksHttpRequest.newBuilder().setProject(project).build();
+ AggregatedListDisksHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
+ .setProject(project)
+ .build();
return aggregatedListDisks(request);
}
@@ -327,8 +347,10 @@ public final AggregatedListDisksPagedResponse aggregatedListDisks(String project
*
*
* try (DiskClient diskClient = DiskClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListDisksHttpRequest request = AggregatedListDisksHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* for (DisksScopedList element : diskClient.aggregatedListDisks(request).iterateAll()) {
@@ -354,8 +376,10 @@ public final AggregatedListDisksPagedResponse aggregatedListDisks(
*
*
* try (DiskClient diskClient = DiskClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListDisksHttpRequest request = AggregatedListDisksHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* ApiFuture<AggregatedListDisksPagedResponse> future = diskClient.aggregatedListDisksPagedCallable().futureCall(request);
@@ -380,8 +404,10 @@ public final AggregatedListDisksPagedResponse aggregatedListDisks(
*
*
* try (DiskClient diskClient = DiskClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListDisksHttpRequest request = AggregatedListDisksHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* while (true) {
@@ -848,8 +874,8 @@ public final UnaryCallable getIamPolicyDisk
* @param zone The name of the zone for this request.
* @param diskResource Represents a Persistent Disk resource.
* Google Compute Engine has two Disk resources:
- *
* [Global](/compute/docs/reference/rest/latest/disks) *
- * [Regional](/compute/docs/reference/rest/latest/regionDisks)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/disks) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionDisks)
*
Persistent disks are required for running your VM instances. Create both boot and
* non-boot (data) persistent disks. For more information, read Persistent Disks. For more
* storage options, read Storage options.
@@ -890,8 +916,8 @@ public final Operation insertDisk(ProjectZoneName zone, Disk diskResource) {
* @param zone The name of the zone for this request.
* @param diskResource Represents a Persistent Disk resource.
*
Google Compute Engine has two Disk resources:
- *
* [Global](/compute/docs/reference/rest/latest/disks) *
- * [Regional](/compute/docs/reference/rest/latest/regionDisks)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/disks) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionDisks)
*
Persistent disks are required for running your VM instances. Create both boot and
* non-boot (data) persistent disks. For more information, read Persistent Disks. For more
* storage options, read Storage options.
diff --git a/src/main/java/com/google/cloud/compute/v1/DiskType.java b/src/main/java/com/google/cloud/compute/v1/DiskType.java
index 29c4f9b78..c55347a15 100644
--- a/src/main/java/com/google/cloud/compute/v1/DiskType.java
+++ b/src/main/java/com/google/cloud/compute/v1/DiskType.java
@@ -29,8 +29,8 @@
*
*
Google Compute Engine has two Disk Type resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/diskTypes) *
- * [Regional](/compute/docs/reference/rest/latest/regionDiskTypes)
+ *
* [Regional](/compute/docs/reference/rest/{$api_version}/regionDiskTypes) *
+ * [Zonal](/compute/docs/reference/rest/{$api_version}/diskTypes)
*
*
You can choose from a variety of disk types based on your needs. For more information, read
* Storage options.
diff --git a/src/main/java/com/google/cloud/compute/v1/DiskTypeClient.java b/src/main/java/com/google/cloud/compute/v1/DiskTypeClient.java
index 1c63bddd8..b30a6d887 100644
--- a/src/main/java/com/google/cloud/compute/v1/DiskTypeClient.java
+++ b/src/main/java/com/google/cloud/compute/v1/DiskTypeClient.java
@@ -159,20 +159,29 @@ public DiskTypeStub getStub() {
*
*
* try (DiskTypeClient diskTypeClient = DiskTypeClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (DiskTypesScopedList element : diskTypeClient.aggregatedListDiskTypes(project).iterateAll()) {
+ * for (DiskTypesScopedList element : diskTypeClient.aggregatedListDiskTypes(includeAllScopes, project).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Project ID for this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
- public final AggregatedListDiskTypesPagedResponse aggregatedListDiskTypes(ProjectName project) {
+ public final AggregatedListDiskTypesPagedResponse aggregatedListDiskTypes(
+ Boolean includeAllScopes, ProjectName project) {
AggregatedListDiskTypesHttpRequest request =
AggregatedListDiskTypesHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
.setProject(project == null ? null : project.toString())
.build();
return aggregatedListDiskTypes(request);
@@ -186,20 +195,31 @@ public final AggregatedListDiskTypesPagedResponse aggregatedListDiskTypes(Projec
*
*
* try (DiskTypeClient diskTypeClient = DiskTypeClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (DiskTypesScopedList element : diskTypeClient.aggregatedListDiskTypes(project.toString()).iterateAll()) {
+ * for (DiskTypesScopedList element : diskTypeClient.aggregatedListDiskTypes(includeAllScopes, project.toString()).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Project ID for this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
- public final AggregatedListDiskTypesPagedResponse aggregatedListDiskTypes(String project) {
+ public final AggregatedListDiskTypesPagedResponse aggregatedListDiskTypes(
+ Boolean includeAllScopes, String project) {
AggregatedListDiskTypesHttpRequest request =
- AggregatedListDiskTypesHttpRequest.newBuilder().setProject(project).build();
+ AggregatedListDiskTypesHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
+ .setProject(project)
+ .build();
return aggregatedListDiskTypes(request);
}
@@ -211,8 +231,10 @@ public final AggregatedListDiskTypesPagedResponse aggregatedListDiskTypes(String
*
*
* try (DiskTypeClient diskTypeClient = DiskTypeClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListDiskTypesHttpRequest request = AggregatedListDiskTypesHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* for (DiskTypesScopedList element : diskTypeClient.aggregatedListDiskTypes(request).iterateAll()) {
@@ -238,8 +260,10 @@ public final AggregatedListDiskTypesPagedResponse aggregatedListDiskTypes(
*
*
* try (DiskTypeClient diskTypeClient = DiskTypeClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListDiskTypesHttpRequest request = AggregatedListDiskTypesHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* ApiFuture<AggregatedListDiskTypesPagedResponse> future = diskTypeClient.aggregatedListDiskTypesPagedCallable().futureCall(request);
@@ -265,8 +289,10 @@ public final AggregatedListDiskTypesPagedResponse aggregatedListDiskTypes(
*
*
* try (DiskTypeClient diskTypeClient = DiskTypeClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListDiskTypesHttpRequest request = AggregatedListDiskTypesHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* while (true) {
diff --git a/src/main/java/com/google/cloud/compute/v1/FileContentBuffer.java b/src/main/java/com/google/cloud/compute/v1/FileContentBuffer.java
new file mode 100644
index 000000000..8e83f3c9b
--- /dev/null
+++ b/src/main/java/com/google/cloud/compute/v1/FileContentBuffer.java
@@ -0,0 +1,178 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+package com.google.cloud.compute.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.ApiMessage;
+import java.util.List;
+import java.util.Objects;
+import javax.annotation.Generated;
+import javax.annotation.Nullable;
+
+@Generated("by GAPIC")
+@BetaApi
+public final class FileContentBuffer implements ApiMessage {
+ private final String content;
+ private final String fileType;
+
+ private FileContentBuffer() {
+ this.content = null;
+ this.fileType = null;
+ }
+
+ private FileContentBuffer(String content, String fileType) {
+ this.content = content;
+ this.fileType = fileType;
+ }
+
+ @Override
+ public Object getFieldValue(String fieldName) {
+ if ("content".equals(fieldName)) {
+ return content;
+ }
+ if ("fileType".equals(fieldName)) {
+ return fileType;
+ }
+ return null;
+ }
+
+ @Nullable
+ @Override
+ public ApiMessage getApiMessageRequestBody() {
+ return null;
+ }
+
+ @Nullable
+ @Override
+ /**
+ * The fields that should be serialized (even if they have empty values). If the containing
+ * message object has a non-null fieldmask, then all the fields in the field mask (and only those
+ * fields in the field mask) will be serialized. If the containing object does not have a
+ * fieldmask, then only non-empty fields will be serialized.
+ */
+ public List getFieldMask() {
+ return null;
+ }
+
+ /** The raw content in the secure keys file. */
+ public String getContent() {
+ return content;
+ }
+
+ public String getFileType() {
+ return fileType;
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(FileContentBuffer prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ public static FileContentBuffer getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final FileContentBuffer DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new FileContentBuffer();
+ }
+
+ public static class Builder {
+ private String content;
+ private String fileType;
+
+ Builder() {}
+
+ public Builder mergeFrom(FileContentBuffer other) {
+ if (other == FileContentBuffer.getDefaultInstance()) return this;
+ if (other.getContent() != null) {
+ this.content = other.content;
+ }
+ if (other.getFileType() != null) {
+ this.fileType = other.fileType;
+ }
+ return this;
+ }
+
+ Builder(FileContentBuffer source) {
+ this.content = source.content;
+ this.fileType = source.fileType;
+ }
+
+ /** The raw content in the secure keys file. */
+ public String getContent() {
+ return content;
+ }
+
+ /** The raw content in the secure keys file. */
+ public Builder setContent(String content) {
+ this.content = content;
+ return this;
+ }
+
+ public String getFileType() {
+ return fileType;
+ }
+
+ public Builder setFileType(String fileType) {
+ this.fileType = fileType;
+ return this;
+ }
+
+ public FileContentBuffer build() {
+
+ return new FileContentBuffer(content, fileType);
+ }
+
+ public Builder clone() {
+ Builder newBuilder = new Builder();
+ newBuilder.setContent(this.content);
+ newBuilder.setFileType(this.fileType);
+ return newBuilder;
+ }
+ }
+
+ @Override
+ public String toString() {
+ return "FileContentBuffer{" + "content=" + content + ", " + "fileType=" + fileType + "}";
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof FileContentBuffer) {
+ FileContentBuffer that = (FileContentBuffer) o;
+ return Objects.equals(this.content, that.getContent())
+ && Objects.equals(this.fileType, that.getFileType());
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(content, fileType);
+ }
+}
diff --git a/src/main/java/com/google/cloud/compute/v1/ForwardingRule.java b/src/main/java/com/google/cloud/compute/v1/ForwardingRule.java
index 57fdc1845..30020dc50 100644
--- a/src/main/java/com/google/cloud/compute/v1/ForwardingRule.java
+++ b/src/main/java/com/google/cloud/compute/v1/ForwardingRule.java
@@ -31,8 +31,8 @@
*
* Forwarding rule resources in GCP can be either regional or global in scope:
*
- *
* [Global](/compute/docs/reference/rest/latest/globalForwardingRules) *
- * [Regional](/compute/docs/reference/rest/latest/forwardingRules)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/globalForwardingRules) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/forwardingRules)
*
*
A forwarding rule and its corresponding IP address represent the frontend configuration of a
* Google Cloud Platform load balancer. Forwarding rules can also reference target instances and
@@ -388,7 +388,7 @@ public String getKind() {
* external IP address - The following load balancers: HTTP(S), SSL Proxy, TCP Proxy, and Network
* TCP/UDP - INTERNAL is used for: - Protocol forwarding to VMs from an internal IP address -
* Internal TCP/UDP load balancers - INTERNAL_MANAGED is used for: - Internal HTTP(S) load
- * balancers - >INTERNAL_SELF_MANAGED is used for: - Traffic Director
+ * balancers - INTERNAL_SELF_MANAGED is used for: - Traffic Director
*
*
For more information about forwarding rules, refer to Forwarding rule concepts.
*/
@@ -437,7 +437,7 @@ public String getNetwork() {
/**
* This signifies the networking tier used for configuring this load balancer and can only take
- * the following values: PREMIUM , STANDARD.
+ * the following values: PREMIUM, STANDARD.
*
*
For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For
* GlobalForwardingRule, the valid value is PREMIUM.
@@ -982,7 +982,7 @@ public Builder setKind(String kind) {
* external IP address - The following load balancers: HTTP(S), SSL Proxy, TCP Proxy, and
* Network TCP/UDP - INTERNAL is used for: - Protocol forwarding to VMs from an internal IP
* address - Internal TCP/UDP load balancers - INTERNAL_MANAGED is used for: - Internal HTTP(S)
- * load balancers - >INTERNAL_SELF_MANAGED is used for: - Traffic Director
+ * load balancers - INTERNAL_SELF_MANAGED is used for: - Traffic Director
*
*
For more information about forwarding rules, refer to Forwarding rule concepts.
*/
@@ -997,7 +997,7 @@ public String getLoadBalancingScheme() {
* external IP address - The following load balancers: HTTP(S), SSL Proxy, TCP Proxy, and
* Network TCP/UDP - INTERNAL is used for: - Protocol forwarding to VMs from an internal IP
* address - Internal TCP/UDP load balancers - INTERNAL_MANAGED is used for: - Internal HTTP(S)
- * load balancers - >INTERNAL_SELF_MANAGED is used for: - Traffic Director
+ * load balancers - INTERNAL_SELF_MANAGED is used for: - Traffic Director
*
*
For more information about forwarding rules, refer to Forwarding rule concepts.
*/
@@ -1113,7 +1113,7 @@ public Builder setNetwork(String network) {
/**
* This signifies the networking tier used for configuring this load balancer and can only take
- * the following values: PREMIUM , STANDARD.
+ * the following values: PREMIUM, STANDARD.
*
*
For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For
* GlobalForwardingRule, the valid value is PREMIUM.
@@ -1127,7 +1127,7 @@ public String getNetworkTier() {
/**
* This signifies the networking tier used for configuring this load balancer and can only take
- * the following values: PREMIUM , STANDARD.
+ * the following values: PREMIUM, STANDARD.
*
*
For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For
* GlobalForwardingRule, the valid value is PREMIUM.
diff --git a/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java b/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java
index 47e06832e..f57b83bf8 100644
--- a/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java
+++ b/src/main/java/com/google/cloud/compute/v1/ForwardingRuleClient.java
@@ -161,21 +161,29 @@ public ForwardingRuleStub getStub() {
*
*
* try (ForwardingRuleClient forwardingRuleClient = ForwardingRuleClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (ForwardingRulesScopedList element : forwardingRuleClient.aggregatedListForwardingRules(project).iterateAll()) {
+ * for (ForwardingRulesScopedList element : forwardingRuleClient.aggregatedListForwardingRules(includeAllScopes, project).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Project ID for this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
public final AggregatedListForwardingRulesPagedResponse aggregatedListForwardingRules(
- ProjectName project) {
+ Boolean includeAllScopes, ProjectName project) {
AggregatedListForwardingRulesHttpRequest request =
AggregatedListForwardingRulesHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
.setProject(project == null ? null : project.toString())
.build();
return aggregatedListForwardingRules(request);
@@ -189,21 +197,31 @@ public final AggregatedListForwardingRulesPagedResponse aggregatedListForwarding
*
*
* try (ForwardingRuleClient forwardingRuleClient = ForwardingRuleClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (ForwardingRulesScopedList element : forwardingRuleClient.aggregatedListForwardingRules(project.toString()).iterateAll()) {
+ * for (ForwardingRulesScopedList element : forwardingRuleClient.aggregatedListForwardingRules(includeAllScopes, project.toString()).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Project ID for this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
public final AggregatedListForwardingRulesPagedResponse aggregatedListForwardingRules(
- String project) {
+ Boolean includeAllScopes, String project) {
AggregatedListForwardingRulesHttpRequest request =
- AggregatedListForwardingRulesHttpRequest.newBuilder().setProject(project).build();
+ AggregatedListForwardingRulesHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
+ .setProject(project)
+ .build();
return aggregatedListForwardingRules(request);
}
@@ -215,8 +233,10 @@ public final AggregatedListForwardingRulesPagedResponse aggregatedListForwarding
*
*
* try (ForwardingRuleClient forwardingRuleClient = ForwardingRuleClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListForwardingRulesHttpRequest request = AggregatedListForwardingRulesHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* for (ForwardingRulesScopedList element : forwardingRuleClient.aggregatedListForwardingRules(request).iterateAll()) {
@@ -242,8 +262,10 @@ public final AggregatedListForwardingRulesPagedResponse aggregatedListForwarding
*
*
* try (ForwardingRuleClient forwardingRuleClient = ForwardingRuleClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListForwardingRulesHttpRequest request = AggregatedListForwardingRulesHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* ApiFuture<AggregatedListForwardingRulesPagedResponse> future = forwardingRuleClient.aggregatedListForwardingRulesPagedCallable().futureCall(request);
@@ -269,8 +291,10 @@ public final AggregatedListForwardingRulesPagedResponse aggregatedListForwarding
*
*
* try (ForwardingRuleClient forwardingRuleClient = ForwardingRuleClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListForwardingRulesHttpRequest request = AggregatedListForwardingRulesHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* while (true) {
@@ -504,8 +528,8 @@ public final ForwardingRule getForwardingRule(GetForwardingRuleHttpRequest reque
* @param region Name of the region scoping this request.
* @param forwardingRuleResource Represents a Forwarding Rule resource.
* Forwarding rule resources in GCP can be either regional or global in scope:
- *
* [Global](/compute/docs/reference/rest/latest/globalForwardingRules) *
- * [Regional](/compute/docs/reference/rest/latest/forwardingRules)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/globalForwardingRules) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/forwardingRules)
*
A forwarding rule and its corresponding IP address represent the frontend configuration
* of a Google Cloud Platform load balancer. Forwarding rules can also reference target
* instances and Cloud VPN Classic gateways (targetVpnGateway).
@@ -544,8 +568,8 @@ public final Operation insertForwardingRule(
* @param region Name of the region scoping this request.
* @param forwardingRuleResource Represents a Forwarding Rule resource.
*
Forwarding rule resources in GCP can be either regional or global in scope:
- *
* [Global](/compute/docs/reference/rest/latest/globalForwardingRules) *
- * [Regional](/compute/docs/reference/rest/latest/forwardingRules)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/globalForwardingRules) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/forwardingRules)
*
A forwarding rule and its corresponding IP address represent the frontend configuration
* of a Google Cloud Platform load balancer. Forwarding rules can also reference target
* instances and Cloud VPN Classic gateways (targetVpnGateway).
@@ -778,8 +802,8 @@ public final ListForwardingRulesPagedResponse listForwardingRules(
* @param forwardingRule Name of the ForwardingRule resource to patch.
* @param forwardingRuleResource Represents a Forwarding Rule resource.
*
Forwarding rule resources in GCP can be either regional or global in scope:
- *
* [Global](/compute/docs/reference/rest/latest/globalForwardingRules) *
- * [Regional](/compute/docs/reference/rest/latest/forwardingRules)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/globalForwardingRules) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/forwardingRules)
*
A forwarding rule and its corresponding IP address represent the frontend configuration
* of a Google Cloud Platform load balancer. Forwarding rules can also reference target
* instances and Cloud VPN Classic gateways (targetVpnGateway).
@@ -827,8 +851,8 @@ public final Operation patchForwardingRule(
* @param forwardingRule Name of the ForwardingRule resource to patch.
* @param forwardingRuleResource Represents a Forwarding Rule resource.
*
Forwarding rule resources in GCP can be either regional or global in scope:
- *
* [Global](/compute/docs/reference/rest/latest/globalForwardingRules) *
- * [Regional](/compute/docs/reference/rest/latest/forwardingRules)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/globalForwardingRules) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/forwardingRules)
*
A forwarding rule and its corresponding IP address represent the frontend configuration
* of a Google Cloud Platform load balancer. Forwarding rules can also reference target
* instances and Cloud VPN Classic gateways (targetVpnGateway).
diff --git a/src/main/java/com/google/cloud/compute/v1/GetGlobalNetworkEndpointGroupHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/GetGlobalNetworkEndpointGroupHttpRequest.java
new file mode 100644
index 000000000..e6b760d4a
--- /dev/null
+++ b/src/main/java/com/google/cloud/compute/v1/GetGlobalNetworkEndpointGroupHttpRequest.java
@@ -0,0 +1,429 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+package com.google.cloud.compute.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.ApiMessage;
+import java.util.List;
+import java.util.Objects;
+import javax.annotation.Generated;
+import javax.annotation.Nullable;
+
+@Generated("by GAPIC")
+@BetaApi
+/**
+ * Request object for method compute.globalNetworkEndpointGroups.get. Returns the specified network
+ * endpoint group. Gets a list of available network endpoint groups by making a list() request.
+ */
+public final class GetGlobalNetworkEndpointGroupHttpRequest implements ApiMessage {
+ private final String access_token;
+ private final String callback;
+ private final String fields;
+ private final String key;
+ private final String networkEndpointGroup;
+ private final String prettyPrint;
+ private final String quotaUser;
+ private final String userIp;
+
+ private GetGlobalNetworkEndpointGroupHttpRequest() {
+ this.access_token = null;
+ this.callback = null;
+ this.fields = null;
+ this.key = null;
+ this.networkEndpointGroup = null;
+ this.prettyPrint = null;
+ this.quotaUser = null;
+ this.userIp = null;
+ }
+
+ private GetGlobalNetworkEndpointGroupHttpRequest(
+ String access_token,
+ String callback,
+ String fields,
+ String key,
+ String networkEndpointGroup,
+ String prettyPrint,
+ String quotaUser,
+ String userIp) {
+ this.access_token = access_token;
+ this.callback = callback;
+ this.fields = fields;
+ this.key = key;
+ this.networkEndpointGroup = networkEndpointGroup;
+ this.prettyPrint = prettyPrint;
+ this.quotaUser = quotaUser;
+ this.userIp = userIp;
+ }
+
+ @Override
+ public Object getFieldValue(String fieldName) {
+ if ("access_token".equals(fieldName)) {
+ return access_token;
+ }
+ if ("callback".equals(fieldName)) {
+ return callback;
+ }
+ if ("fields".equals(fieldName)) {
+ return fields;
+ }
+ if ("key".equals(fieldName)) {
+ return key;
+ }
+ if ("networkEndpointGroup".equals(fieldName)) {
+ return networkEndpointGroup;
+ }
+ if ("prettyPrint".equals(fieldName)) {
+ return prettyPrint;
+ }
+ if ("quotaUser".equals(fieldName)) {
+ return quotaUser;
+ }
+ if ("userIp".equals(fieldName)) {
+ return userIp;
+ }
+ return null;
+ }
+
+ @Nullable
+ @Override
+ public ApiMessage getApiMessageRequestBody() {
+ return null;
+ }
+
+ @Nullable
+ @Override
+ /**
+ * The fields that should be serialized (even if they have empty values). If the containing
+ * message object has a non-null fieldmask, then all the fields in the field mask (and only those
+ * fields in the field mask) will be serialized. If the containing object does not have a
+ * fieldmask, then only non-empty fields will be serialized.
+ */
+ public List getFieldMask() {
+ return null;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /**
+ * The name of the network endpoint group. It should comply with RFC1035. It must have the format
+ * `{project}/global/networkEndpointGroups/{networkEndpointGroup}`. \`{networkEndpointGroup}\`
+ * must start with a letter, and contain only letters (\`[A-Za-z]\`), numbers (\`[0-9]\`), dashes
+ * (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes (\`~\`), plus (\`+\`) or percent
+ * * signs (\`%\`). It must be between 3 and 255 characters in length, and it * must not
+ * start with \`"goog"\`.
+ */
+ public String getNetworkEndpointGroup() {
+ return networkEndpointGroup;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(GetGlobalNetworkEndpointGroupHttpRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ public static GetGlobalNetworkEndpointGroupHttpRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final GetGlobalNetworkEndpointGroupHttpRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new GetGlobalNetworkEndpointGroupHttpRequest();
+ }
+
+ public static class Builder {
+ private String access_token;
+ private String callback;
+ private String fields;
+ private String key;
+ private String networkEndpointGroup;
+ private String prettyPrint;
+ private String quotaUser;
+ private String userIp;
+
+ Builder() {}
+
+ public Builder mergeFrom(GetGlobalNetworkEndpointGroupHttpRequest other) {
+ if (other == GetGlobalNetworkEndpointGroupHttpRequest.getDefaultInstance()) return this;
+ if (other.getAccessToken() != null) {
+ this.access_token = other.access_token;
+ }
+ if (other.getCallback() != null) {
+ this.callback = other.callback;
+ }
+ if (other.getFields() != null) {
+ this.fields = other.fields;
+ }
+ if (other.getKey() != null) {
+ this.key = other.key;
+ }
+ if (other.getNetworkEndpointGroup() != null) {
+ this.networkEndpointGroup = other.networkEndpointGroup;
+ }
+ if (other.getPrettyPrint() != null) {
+ this.prettyPrint = other.prettyPrint;
+ }
+ if (other.getQuotaUser() != null) {
+ this.quotaUser = other.quotaUser;
+ }
+ if (other.getUserIp() != null) {
+ this.userIp = other.userIp;
+ }
+ return this;
+ }
+
+ Builder(GetGlobalNetworkEndpointGroupHttpRequest source) {
+ this.access_token = source.access_token;
+ this.callback = source.callback;
+ this.fields = source.fields;
+ this.key = source.key;
+ this.networkEndpointGroup = source.networkEndpointGroup;
+ this.prettyPrint = source.prettyPrint;
+ this.quotaUser = source.quotaUser;
+ this.userIp = source.userIp;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public Builder setAccessToken(String access_token) {
+ this.access_token = access_token;
+ return this;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public Builder setCallback(String callback) {
+ this.callback = callback;
+ return this;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public Builder setFields(String fields) {
+ this.fields = fields;
+ return this;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public Builder setKey(String key) {
+ this.key = key;
+ return this;
+ }
+
+ /**
+ * The name of the network endpoint group. It should comply with RFC1035. It must have the
+ * format `{project}/global/networkEndpointGroups/{networkEndpointGroup}`.
+ * \`{networkEndpointGroup}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public String getNetworkEndpointGroup() {
+ return networkEndpointGroup;
+ }
+
+ /**
+ * The name of the network endpoint group. It should comply with RFC1035. It must have the
+ * format `{project}/global/networkEndpointGroups/{networkEndpointGroup}`.
+ * \`{networkEndpointGroup}\` must start with a letter, and contain only letters (\`[A-Za-z]\`),
+ * numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes
+ * (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters
+ * in length, and it * must not start with \`"goog"\`.
+ */
+ public Builder setNetworkEndpointGroup(String networkEndpointGroup) {
+ this.networkEndpointGroup = networkEndpointGroup;
+ return this;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public Builder setPrettyPrint(String prettyPrint) {
+ this.prettyPrint = prettyPrint;
+ return this;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /** Alternative to userIp. */
+ public Builder setQuotaUser(String quotaUser) {
+ this.quotaUser = quotaUser;
+ return this;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public Builder setUserIp(String userIp) {
+ this.userIp = userIp;
+ return this;
+ }
+
+ public GetGlobalNetworkEndpointGroupHttpRequest build() {
+ String missing = "";
+
+ if (networkEndpointGroup == null) {
+ missing += " networkEndpointGroup";
+ }
+
+ if (!missing.isEmpty()) {
+ throw new IllegalStateException("Missing required properties:" + missing);
+ }
+ return new GetGlobalNetworkEndpointGroupHttpRequest(
+ access_token,
+ callback,
+ fields,
+ key,
+ networkEndpointGroup,
+ prettyPrint,
+ quotaUser,
+ userIp);
+ }
+
+ public Builder clone() {
+ Builder newBuilder = new Builder();
+ newBuilder.setAccessToken(this.access_token);
+ newBuilder.setCallback(this.callback);
+ newBuilder.setFields(this.fields);
+ newBuilder.setKey(this.key);
+ newBuilder.setNetworkEndpointGroup(this.networkEndpointGroup);
+ newBuilder.setPrettyPrint(this.prettyPrint);
+ newBuilder.setQuotaUser(this.quotaUser);
+ newBuilder.setUserIp(this.userIp);
+ return newBuilder;
+ }
+ }
+
+ @Override
+ public String toString() {
+ return "GetGlobalNetworkEndpointGroupHttpRequest{"
+ + "access_token="
+ + access_token
+ + ", "
+ + "callback="
+ + callback
+ + ", "
+ + "fields="
+ + fields
+ + ", "
+ + "key="
+ + key
+ + ", "
+ + "networkEndpointGroup="
+ + networkEndpointGroup
+ + ", "
+ + "prettyPrint="
+ + prettyPrint
+ + ", "
+ + "quotaUser="
+ + quotaUser
+ + ", "
+ + "userIp="
+ + userIp
+ + "}";
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof GetGlobalNetworkEndpointGroupHttpRequest) {
+ GetGlobalNetworkEndpointGroupHttpRequest that = (GetGlobalNetworkEndpointGroupHttpRequest) o;
+ return Objects.equals(this.access_token, that.getAccessToken())
+ && Objects.equals(this.callback, that.getCallback())
+ && Objects.equals(this.fields, that.getFields())
+ && Objects.equals(this.key, that.getKey())
+ && Objects.equals(this.networkEndpointGroup, that.getNetworkEndpointGroup())
+ && Objects.equals(this.prettyPrint, that.getPrettyPrint())
+ && Objects.equals(this.quotaUser, that.getQuotaUser())
+ && Objects.equals(this.userIp, that.getUserIp());
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ access_token, callback, fields, key, networkEndpointGroup, prettyPrint, quotaUser, userIp);
+ }
+}
diff --git a/src/main/java/com/google/cloud/compute/v1/GetIamPolicyLicenseHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/GetIamPolicyLicenseHttpRequest.java
index a7da2a108..6af28b2f1 100644
--- a/src/main/java/com/google/cloud/compute/v1/GetIamPolicyLicenseHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/GetIamPolicyLicenseHttpRequest.java
@@ -26,7 +26,8 @@
@BetaApi
/**
* Request object for method compute.licenses.getIamPolicy. Gets the access control policy for a
- * resource. May be empty if no such policy or resource exists.
+ * resource. May be empty if no such policy or resource exists. Caution This resource is intended
+ * for use only by third-party partners who are creating Cloud Marketplace images.
*/
public final class GetIamPolicyLicenseHttpRequest implements ApiMessage {
private final String access_token;
diff --git a/src/main/java/com/google/cloud/compute/v1/GetLicenseCodeHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/GetLicenseCodeHttpRequest.java
index 46fd91342..5dedc48de 100644
--- a/src/main/java/com/google/cloud/compute/v1/GetLicenseCodeHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/GetLicenseCodeHttpRequest.java
@@ -26,7 +26,9 @@
@BetaApi
/**
* Request object for method compute.licenseCodes.get. Return a specified license code. License
- * codes are mirrored across all projects that have permissions to read the License Code.
+ * codes are mirrored across all projects that have permissions to read the License Code. Caution
+ * This resource is intended for use only by third-party partners who are creating Cloud Marketplace
+ * images.
*/
public final class GetLicenseCodeHttpRequest implements ApiMessage {
private final String access_token;
diff --git a/src/main/java/com/google/cloud/compute/v1/GetLicenseHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/GetLicenseHttpRequest.java
index a6b9d545d..d784c3d6c 100644
--- a/src/main/java/com/google/cloud/compute/v1/GetLicenseHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/GetLicenseHttpRequest.java
@@ -24,7 +24,11 @@
@Generated("by GAPIC")
@BetaApi
-/** Request object for method compute.licenses.get. Returns the specified License resource. */
+/**
+ * Request object for method compute.licenses.get. Returns the specified License resource. Caution
+ * This resource is intended for use only by third-party partners who are creating Cloud Marketplace
+ * images.
+ */
public final class GetLicenseHttpRequest implements ApiMessage {
private final String access_token;
private final String callback;
diff --git a/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleClient.java b/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleClient.java
index 62fe61e2e..abc2a2fcc 100644
--- a/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleClient.java
+++ b/src/main/java/com/google/cloud/compute/v1/GlobalForwardingRuleClient.java
@@ -372,8 +372,8 @@ public final ForwardingRule getGlobalForwardingRule(GetGlobalForwardingRuleHttpR
* @param project Project ID for this request.
* @param forwardingRuleResource Represents a Forwarding Rule resource.
* Forwarding rule resources in GCP can be either regional or global in scope:
- *
* [Global](/compute/docs/reference/rest/latest/globalForwardingRules) *
- * [Regional](/compute/docs/reference/rest/latest/forwardingRules)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/globalForwardingRules) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/forwardingRules)
*
A forwarding rule and its corresponding IP address represent the frontend configuration
* of a Google Cloud Platform load balancer. Forwarding rules can also reference target
* instances and Cloud VPN Classic gateways (targetVpnGateway).
@@ -412,8 +412,8 @@ public final Operation insertGlobalForwardingRule(
* @param project Project ID for this request.
* @param forwardingRuleResource Represents a Forwarding Rule resource.
*
Forwarding rule resources in GCP can be either regional or global in scope:
- *
* [Global](/compute/docs/reference/rest/latest/globalForwardingRules) *
- * [Regional](/compute/docs/reference/rest/latest/forwardingRules)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/globalForwardingRules) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/forwardingRules)
*
A forwarding rule and its corresponding IP address represent the frontend configuration
* of a Google Cloud Platform load balancer. Forwarding rules can also reference target
* instances and Cloud VPN Classic gateways (targetVpnGateway).
@@ -648,8 +648,8 @@ public final ListGlobalForwardingRulesPagedResponse listGlobalForwardingRules(
* @param forwardingRule Name of the ForwardingRule resource to patch.
* @param forwardingRuleResource Represents a Forwarding Rule resource.
*
Forwarding rule resources in GCP can be either regional or global in scope:
- *
* [Global](/compute/docs/reference/rest/latest/globalForwardingRules) *
- * [Regional](/compute/docs/reference/rest/latest/forwardingRules)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/globalForwardingRules) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/forwardingRules)
*
A forwarding rule and its corresponding IP address represent the frontend configuration
* of a Google Cloud Platform load balancer. Forwarding rules can also reference target
* instances and Cloud VPN Classic gateways (targetVpnGateway).
@@ -697,8 +697,8 @@ public final Operation patchGlobalForwardingRule(
* @param forwardingRule Name of the ForwardingRule resource to patch.
* @param forwardingRuleResource Represents a Forwarding Rule resource.
*
Forwarding rule resources in GCP can be either regional or global in scope:
- *
* [Global](/compute/docs/reference/rest/latest/globalForwardingRules) *
- * [Regional](/compute/docs/reference/rest/latest/forwardingRules)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/globalForwardingRules) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/forwardingRules)
*
A forwarding rule and its corresponding IP address represent the frontend configuration
* of a Google Cloud Platform load balancer. Forwarding rules can also reference target
* instances and Cloud VPN Classic gateways (targetVpnGateway).
diff --git a/src/main/java/com/google/cloud/compute/v1/GlobalNetworkEndpointGroupClient.java b/src/main/java/com/google/cloud/compute/v1/GlobalNetworkEndpointGroupClient.java
new file mode 100644
index 000000000..8d52e508f
--- /dev/null
+++ b/src/main/java/com/google/cloud/compute/v1/GlobalNetworkEndpointGroupClient.java
@@ -0,0 +1,1270 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+package com.google.cloud.compute.v1;
+
+import com.google.api.core.ApiFunction;
+import com.google.api.core.ApiFuture;
+import com.google.api.core.ApiFutures;
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.paging.AbstractFixedSizeCollection;
+import com.google.api.gax.paging.AbstractPage;
+import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.PageContext;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.v1.stub.GlobalNetworkEndpointGroupStub;
+import com.google.cloud.compute.v1.stub.GlobalNetworkEndpointGroupStubSettings;
+import com.google.common.util.concurrent.MoreExecutors;
+import java.io.IOException;
+import java.util.List;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND SERVICE
+/**
+ * Service Description: Creates and runs virtual machines on Google Cloud Platform.
+ *
+ *
This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * ProjectGlobalNetworkEndpointGroupName networkEndpointGroup = ProjectGlobalNetworkEndpointGroupName.of("[PROJECT]", "[NETWORK_ENDPOINT_GROUP]");
+ * GlobalNetworkEndpointGroupsAttachEndpointsRequest globalNetworkEndpointGroupsAttachEndpointsRequestResource = GlobalNetworkEndpointGroupsAttachEndpointsRequest.newBuilder().build();
+ * Operation response = globalNetworkEndpointGroupClient.attachNetworkEndpointsGlobalNetworkEndpointGroup(networkEndpointGroup, globalNetworkEndpointGroupsAttachEndpointsRequestResource);
+ * }
+ *
+ *
+ *
+ * Note: close() needs to be called on the globalNetworkEndpointGroupClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ *
The surface of this class includes several types of Java methods for each of the API's
+ * methods:
+ *
+ *
+ * - A "flattened" method. With this type of method, the fields of the request type have been
+ * converted into function parameters. It may be the case that not all fields are available as
+ * parameters, and not every API method will have a flattened method entry point.
+ *
- A "request object" method. This type of method only takes one parameter, a request object,
+ * which must be constructed before the call. Not every API method will have a request object
+ * method.
+ *
- A "callable" method. This type of method takes no parameters and returns an immutable API
+ * callable object, which can be used to initiate calls to the service.
+ *
+ *
+ * See the individual methods for example code.
+ *
+ *
Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ *
This class can be customized by passing in a custom instance of
+ * GlobalNetworkEndpointGroupSettings to create(). For example:
+ *
+ *
To customize credentials:
+ *
+ *
+ *
+ * GlobalNetworkEndpointGroupSettings globalNetworkEndpointGroupSettings =
+ * GlobalNetworkEndpointGroupSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient =
+ * GlobalNetworkEndpointGroupClient.create(globalNetworkEndpointGroupSettings);
+ *
+ *
+ *
+ * To customize the endpoint:
+ *
+ *
+ *
+ * GlobalNetworkEndpointGroupSettings globalNetworkEndpointGroupSettings =
+ * GlobalNetworkEndpointGroupSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient =
+ * GlobalNetworkEndpointGroupClient.create(globalNetworkEndpointGroupSettings);
+ *
+ *
+ */
+@Generated("by gapic-generator")
+@BetaApi
+public class GlobalNetworkEndpointGroupClient implements BackgroundResource {
+ private final GlobalNetworkEndpointGroupSettings settings;
+ private final GlobalNetworkEndpointGroupStub stub;
+
+ /** Constructs an instance of GlobalNetworkEndpointGroupClient with default settings. */
+ public static final GlobalNetworkEndpointGroupClient create() throws IOException {
+ return create(GlobalNetworkEndpointGroupSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of GlobalNetworkEndpointGroupClient, using the given settings. The
+ * channels are created based on the settings passed in, or defaults for any settings that are not
+ * set.
+ */
+ public static final GlobalNetworkEndpointGroupClient create(
+ GlobalNetworkEndpointGroupSettings settings) throws IOException {
+ return new GlobalNetworkEndpointGroupClient(settings);
+ }
+
+ /**
+ * Constructs an instance of GlobalNetworkEndpointGroupClient, using the given stub for making
+ * calls. This is for advanced usage - prefer to use GlobalNetworkEndpointGroupSettings}.
+ */
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public static final GlobalNetworkEndpointGroupClient create(GlobalNetworkEndpointGroupStub stub) {
+ return new GlobalNetworkEndpointGroupClient(stub);
+ }
+
+ /**
+ * Constructs an instance of GlobalNetworkEndpointGroupClient, using the given settings. This is
+ * protected so that it is easy to make a subclass, but otherwise, the static factory methods
+ * should be preferred.
+ */
+ protected GlobalNetworkEndpointGroupClient(GlobalNetworkEndpointGroupSettings settings)
+ throws IOException {
+ this.settings = settings;
+ this.stub = ((GlobalNetworkEndpointGroupStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ protected GlobalNetworkEndpointGroupClient(GlobalNetworkEndpointGroupStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final GlobalNetworkEndpointGroupSettings getSettings() {
+ return settings;
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public GlobalNetworkEndpointGroupStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Attach a network endpoint to the specified network endpoint group.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * ProjectGlobalNetworkEndpointGroupName networkEndpointGroup = ProjectGlobalNetworkEndpointGroupName.of("[PROJECT]", "[NETWORK_ENDPOINT_GROUP]");
+ * GlobalNetworkEndpointGroupsAttachEndpointsRequest globalNetworkEndpointGroupsAttachEndpointsRequestResource = GlobalNetworkEndpointGroupsAttachEndpointsRequest.newBuilder().build();
+ * Operation response = globalNetworkEndpointGroupClient.attachNetworkEndpointsGlobalNetworkEndpointGroup(networkEndpointGroup, globalNetworkEndpointGroupsAttachEndpointsRequestResource);
+ * }
+ *
+ *
+ * @param networkEndpointGroup The name of the network endpoint group where you are attaching
+ * network endpoints to. It should comply with RFC1035.
+ * @param globalNetworkEndpointGroupsAttachEndpointsRequestResource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation attachNetworkEndpointsGlobalNetworkEndpointGroup(
+ ProjectGlobalNetworkEndpointGroupName networkEndpointGroup,
+ GlobalNetworkEndpointGroupsAttachEndpointsRequest
+ globalNetworkEndpointGroupsAttachEndpointsRequestResource) {
+ AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest request =
+ AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest.newBuilder()
+ .setNetworkEndpointGroup(
+ networkEndpointGroup == null ? null : networkEndpointGroup.toString())
+ .setGlobalNetworkEndpointGroupsAttachEndpointsRequestResource(
+ globalNetworkEndpointGroupsAttachEndpointsRequestResource)
+ .build();
+ return attachNetworkEndpointsGlobalNetworkEndpointGroup(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Attach a network endpoint to the specified network endpoint group.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * ProjectGlobalNetworkEndpointGroupName networkEndpointGroup = ProjectGlobalNetworkEndpointGroupName.of("[PROJECT]", "[NETWORK_ENDPOINT_GROUP]");
+ * GlobalNetworkEndpointGroupsAttachEndpointsRequest globalNetworkEndpointGroupsAttachEndpointsRequestResource = GlobalNetworkEndpointGroupsAttachEndpointsRequest.newBuilder().build();
+ * Operation response = globalNetworkEndpointGroupClient.attachNetworkEndpointsGlobalNetworkEndpointGroup(networkEndpointGroup.toString(), globalNetworkEndpointGroupsAttachEndpointsRequestResource);
+ * }
+ *
+ *
+ * @param networkEndpointGroup The name of the network endpoint group where you are attaching
+ * network endpoints to. It should comply with RFC1035.
+ * @param globalNetworkEndpointGroupsAttachEndpointsRequestResource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation attachNetworkEndpointsGlobalNetworkEndpointGroup(
+ String networkEndpointGroup,
+ GlobalNetworkEndpointGroupsAttachEndpointsRequest
+ globalNetworkEndpointGroupsAttachEndpointsRequestResource) {
+ AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest request =
+ AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest.newBuilder()
+ .setNetworkEndpointGroup(networkEndpointGroup)
+ .setGlobalNetworkEndpointGroupsAttachEndpointsRequestResource(
+ globalNetworkEndpointGroupsAttachEndpointsRequestResource)
+ .build();
+ return attachNetworkEndpointsGlobalNetworkEndpointGroup(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Attach a network endpoint to the specified network endpoint group.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * String formattedNetworkEndpointGroup = ProjectGlobalNetworkEndpointGroupName.format("[PROJECT]", "[NETWORK_ENDPOINT_GROUP]");
+ * GlobalNetworkEndpointGroupsAttachEndpointsRequest globalNetworkEndpointGroupsAttachEndpointsRequestResource = GlobalNetworkEndpointGroupsAttachEndpointsRequest.newBuilder().build();
+ * AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest request = AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest.newBuilder()
+ * .setNetworkEndpointGroup(formattedNetworkEndpointGroup)
+ * .setGlobalNetworkEndpointGroupsAttachEndpointsRequestResource(globalNetworkEndpointGroupsAttachEndpointsRequestResource)
+ * .build();
+ * Operation response = globalNetworkEndpointGroupClient.attachNetworkEndpointsGlobalNetworkEndpointGroup(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation attachNetworkEndpointsGlobalNetworkEndpointGroup(
+ AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest request) {
+ return attachNetworkEndpointsGlobalNetworkEndpointGroupCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Attach a network endpoint to the specified network endpoint group.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * String formattedNetworkEndpointGroup = ProjectGlobalNetworkEndpointGroupName.format("[PROJECT]", "[NETWORK_ENDPOINT_GROUP]");
+ * GlobalNetworkEndpointGroupsAttachEndpointsRequest globalNetworkEndpointGroupsAttachEndpointsRequestResource = GlobalNetworkEndpointGroupsAttachEndpointsRequest.newBuilder().build();
+ * AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest request = AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest.newBuilder()
+ * .setNetworkEndpointGroup(formattedNetworkEndpointGroup)
+ * .setGlobalNetworkEndpointGroupsAttachEndpointsRequestResource(globalNetworkEndpointGroupsAttachEndpointsRequestResource)
+ * .build();
+ * ApiFuture<Operation> future = globalNetworkEndpointGroupClient.attachNetworkEndpointsGlobalNetworkEndpointGroupCallable().futureCall(request);
+ * // Do something
+ * Operation response = future.get();
+ * }
+ *
+ */
+ @BetaApi
+ public final UnaryCallable
+ attachNetworkEndpointsGlobalNetworkEndpointGroupCallable() {
+ return stub.attachNetworkEndpointsGlobalNetworkEndpointGroupCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are
+ * backend services referencing it.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * ProjectGlobalNetworkEndpointGroupName networkEndpointGroup = ProjectGlobalNetworkEndpointGroupName.of("[PROJECT]", "[NETWORK_ENDPOINT_GROUP]");
+ * Operation response = globalNetworkEndpointGroupClient.deleteGlobalNetworkEndpointGroup(networkEndpointGroup);
+ * }
+ *
+ *
+ * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply
+ * with RFC1035.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation deleteGlobalNetworkEndpointGroup(
+ ProjectGlobalNetworkEndpointGroupName networkEndpointGroup) {
+ DeleteGlobalNetworkEndpointGroupHttpRequest request =
+ DeleteGlobalNetworkEndpointGroupHttpRequest.newBuilder()
+ .setNetworkEndpointGroup(
+ networkEndpointGroup == null ? null : networkEndpointGroup.toString())
+ .build();
+ return deleteGlobalNetworkEndpointGroup(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are
+ * backend services referencing it.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * ProjectGlobalNetworkEndpointGroupName networkEndpointGroup = ProjectGlobalNetworkEndpointGroupName.of("[PROJECT]", "[NETWORK_ENDPOINT_GROUP]");
+ * Operation response = globalNetworkEndpointGroupClient.deleteGlobalNetworkEndpointGroup(networkEndpointGroup.toString());
+ * }
+ *
+ *
+ * @param networkEndpointGroup The name of the network endpoint group to delete. It should comply
+ * with RFC1035.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation deleteGlobalNetworkEndpointGroup(String networkEndpointGroup) {
+ DeleteGlobalNetworkEndpointGroupHttpRequest request =
+ DeleteGlobalNetworkEndpointGroupHttpRequest.newBuilder()
+ .setNetworkEndpointGroup(networkEndpointGroup)
+ .build();
+ return deleteGlobalNetworkEndpointGroup(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are
+ * backend services referencing it.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * String formattedNetworkEndpointGroup = ProjectGlobalNetworkEndpointGroupName.format("[PROJECT]", "[NETWORK_ENDPOINT_GROUP]");
+ * DeleteGlobalNetworkEndpointGroupHttpRequest request = DeleteGlobalNetworkEndpointGroupHttpRequest.newBuilder()
+ * .setNetworkEndpointGroup(formattedNetworkEndpointGroup)
+ * .build();
+ * Operation response = globalNetworkEndpointGroupClient.deleteGlobalNetworkEndpointGroup(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation deleteGlobalNetworkEndpointGroup(
+ DeleteGlobalNetworkEndpointGroupHttpRequest request) {
+ return deleteGlobalNetworkEndpointGroupCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are
+ * backend services referencing it.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * String formattedNetworkEndpointGroup = ProjectGlobalNetworkEndpointGroupName.format("[PROJECT]", "[NETWORK_ENDPOINT_GROUP]");
+ * DeleteGlobalNetworkEndpointGroupHttpRequest request = DeleteGlobalNetworkEndpointGroupHttpRequest.newBuilder()
+ * .setNetworkEndpointGroup(formattedNetworkEndpointGroup)
+ * .build();
+ * ApiFuture<Operation> future = globalNetworkEndpointGroupClient.deleteGlobalNetworkEndpointGroupCallable().futureCall(request);
+ * // Do something
+ * Operation response = future.get();
+ * }
+ *
+ */
+ @BetaApi
+ public final UnaryCallable
+ deleteGlobalNetworkEndpointGroupCallable() {
+ return stub.deleteGlobalNetworkEndpointGroupCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Detach the network endpoint from the specified network endpoint group.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * ProjectGlobalNetworkEndpointGroupName networkEndpointGroup = ProjectGlobalNetworkEndpointGroupName.of("[PROJECT]", "[NETWORK_ENDPOINT_GROUP]");
+ * GlobalNetworkEndpointGroupsDetachEndpointsRequest globalNetworkEndpointGroupsDetachEndpointsRequestResource = GlobalNetworkEndpointGroupsDetachEndpointsRequest.newBuilder().build();
+ * Operation response = globalNetworkEndpointGroupClient.detachNetworkEndpointsGlobalNetworkEndpointGroup(networkEndpointGroup, globalNetworkEndpointGroupsDetachEndpointsRequestResource);
+ * }
+ *
+ *
+ * @param networkEndpointGroup The name of the network endpoint group where you are removing
+ * network endpoints. It should comply with RFC1035.
+ * @param globalNetworkEndpointGroupsDetachEndpointsRequestResource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation detachNetworkEndpointsGlobalNetworkEndpointGroup(
+ ProjectGlobalNetworkEndpointGroupName networkEndpointGroup,
+ GlobalNetworkEndpointGroupsDetachEndpointsRequest
+ globalNetworkEndpointGroupsDetachEndpointsRequestResource) {
+ DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest request =
+ DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest.newBuilder()
+ .setNetworkEndpointGroup(
+ networkEndpointGroup == null ? null : networkEndpointGroup.toString())
+ .setGlobalNetworkEndpointGroupsDetachEndpointsRequestResource(
+ globalNetworkEndpointGroupsDetachEndpointsRequestResource)
+ .build();
+ return detachNetworkEndpointsGlobalNetworkEndpointGroup(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Detach the network endpoint from the specified network endpoint group.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * ProjectGlobalNetworkEndpointGroupName networkEndpointGroup = ProjectGlobalNetworkEndpointGroupName.of("[PROJECT]", "[NETWORK_ENDPOINT_GROUP]");
+ * GlobalNetworkEndpointGroupsDetachEndpointsRequest globalNetworkEndpointGroupsDetachEndpointsRequestResource = GlobalNetworkEndpointGroupsDetachEndpointsRequest.newBuilder().build();
+ * Operation response = globalNetworkEndpointGroupClient.detachNetworkEndpointsGlobalNetworkEndpointGroup(networkEndpointGroup.toString(), globalNetworkEndpointGroupsDetachEndpointsRequestResource);
+ * }
+ *
+ *
+ * @param networkEndpointGroup The name of the network endpoint group where you are removing
+ * network endpoints. It should comply with RFC1035.
+ * @param globalNetworkEndpointGroupsDetachEndpointsRequestResource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation detachNetworkEndpointsGlobalNetworkEndpointGroup(
+ String networkEndpointGroup,
+ GlobalNetworkEndpointGroupsDetachEndpointsRequest
+ globalNetworkEndpointGroupsDetachEndpointsRequestResource) {
+ DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest request =
+ DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest.newBuilder()
+ .setNetworkEndpointGroup(networkEndpointGroup)
+ .setGlobalNetworkEndpointGroupsDetachEndpointsRequestResource(
+ globalNetworkEndpointGroupsDetachEndpointsRequestResource)
+ .build();
+ return detachNetworkEndpointsGlobalNetworkEndpointGroup(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Detach the network endpoint from the specified network endpoint group.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * String formattedNetworkEndpointGroup = ProjectGlobalNetworkEndpointGroupName.format("[PROJECT]", "[NETWORK_ENDPOINT_GROUP]");
+ * GlobalNetworkEndpointGroupsDetachEndpointsRequest globalNetworkEndpointGroupsDetachEndpointsRequestResource = GlobalNetworkEndpointGroupsDetachEndpointsRequest.newBuilder().build();
+ * DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest request = DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest.newBuilder()
+ * .setNetworkEndpointGroup(formattedNetworkEndpointGroup)
+ * .setGlobalNetworkEndpointGroupsDetachEndpointsRequestResource(globalNetworkEndpointGroupsDetachEndpointsRequestResource)
+ * .build();
+ * Operation response = globalNetworkEndpointGroupClient.detachNetworkEndpointsGlobalNetworkEndpointGroup(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation detachNetworkEndpointsGlobalNetworkEndpointGroup(
+ DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest request) {
+ return detachNetworkEndpointsGlobalNetworkEndpointGroupCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Detach the network endpoint from the specified network endpoint group.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * String formattedNetworkEndpointGroup = ProjectGlobalNetworkEndpointGroupName.format("[PROJECT]", "[NETWORK_ENDPOINT_GROUP]");
+ * GlobalNetworkEndpointGroupsDetachEndpointsRequest globalNetworkEndpointGroupsDetachEndpointsRequestResource = GlobalNetworkEndpointGroupsDetachEndpointsRequest.newBuilder().build();
+ * DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest request = DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest.newBuilder()
+ * .setNetworkEndpointGroup(formattedNetworkEndpointGroup)
+ * .setGlobalNetworkEndpointGroupsDetachEndpointsRequestResource(globalNetworkEndpointGroupsDetachEndpointsRequestResource)
+ * .build();
+ * ApiFuture<Operation> future = globalNetworkEndpointGroupClient.detachNetworkEndpointsGlobalNetworkEndpointGroupCallable().futureCall(request);
+ * // Do something
+ * Operation response = future.get();
+ * }
+ *
+ */
+ @BetaApi
+ public final UnaryCallable
+ detachNetworkEndpointsGlobalNetworkEndpointGroupCallable() {
+ return stub.detachNetworkEndpointsGlobalNetworkEndpointGroupCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Returns the specified network endpoint group. Gets a list of available network endpoint groups
+ * by making a list() request.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * ProjectGlobalNetworkEndpointGroupName networkEndpointGroup = ProjectGlobalNetworkEndpointGroupName.of("[PROJECT]", "[NETWORK_ENDPOINT_GROUP]");
+ * NetworkEndpointGroup response = globalNetworkEndpointGroupClient.getGlobalNetworkEndpointGroup(networkEndpointGroup);
+ * }
+ *
+ *
+ * @param networkEndpointGroup The name of the network endpoint group. It should comply with
+ * RFC1035.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final NetworkEndpointGroup getGlobalNetworkEndpointGroup(
+ ProjectGlobalNetworkEndpointGroupName networkEndpointGroup) {
+ GetGlobalNetworkEndpointGroupHttpRequest request =
+ GetGlobalNetworkEndpointGroupHttpRequest.newBuilder()
+ .setNetworkEndpointGroup(
+ networkEndpointGroup == null ? null : networkEndpointGroup.toString())
+ .build();
+ return getGlobalNetworkEndpointGroup(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Returns the specified network endpoint group. Gets a list of available network endpoint groups
+ * by making a list() request.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * ProjectGlobalNetworkEndpointGroupName networkEndpointGroup = ProjectGlobalNetworkEndpointGroupName.of("[PROJECT]", "[NETWORK_ENDPOINT_GROUP]");
+ * NetworkEndpointGroup response = globalNetworkEndpointGroupClient.getGlobalNetworkEndpointGroup(networkEndpointGroup.toString());
+ * }
+ *
+ *
+ * @param networkEndpointGroup The name of the network endpoint group. It should comply with
+ * RFC1035.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final NetworkEndpointGroup getGlobalNetworkEndpointGroup(String networkEndpointGroup) {
+ GetGlobalNetworkEndpointGroupHttpRequest request =
+ GetGlobalNetworkEndpointGroupHttpRequest.newBuilder()
+ .setNetworkEndpointGroup(networkEndpointGroup)
+ .build();
+ return getGlobalNetworkEndpointGroup(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Returns the specified network endpoint group. Gets a list of available network endpoint groups
+ * by making a list() request.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * String formattedNetworkEndpointGroup = ProjectGlobalNetworkEndpointGroupName.format("[PROJECT]", "[NETWORK_ENDPOINT_GROUP]");
+ * GetGlobalNetworkEndpointGroupHttpRequest request = GetGlobalNetworkEndpointGroupHttpRequest.newBuilder()
+ * .setNetworkEndpointGroup(formattedNetworkEndpointGroup)
+ * .build();
+ * NetworkEndpointGroup response = globalNetworkEndpointGroupClient.getGlobalNetworkEndpointGroup(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final NetworkEndpointGroup getGlobalNetworkEndpointGroup(
+ GetGlobalNetworkEndpointGroupHttpRequest request) {
+ return getGlobalNetworkEndpointGroupCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Returns the specified network endpoint group. Gets a list of available network endpoint groups
+ * by making a list() request.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * String formattedNetworkEndpointGroup = ProjectGlobalNetworkEndpointGroupName.format("[PROJECT]", "[NETWORK_ENDPOINT_GROUP]");
+ * GetGlobalNetworkEndpointGroupHttpRequest request = GetGlobalNetworkEndpointGroupHttpRequest.newBuilder()
+ * .setNetworkEndpointGroup(formattedNetworkEndpointGroup)
+ * .build();
+ * ApiFuture<NetworkEndpointGroup> future = globalNetworkEndpointGroupClient.getGlobalNetworkEndpointGroupCallable().futureCall(request);
+ * // Do something
+ * NetworkEndpointGroup response = future.get();
+ * }
+ *
+ */
+ @BetaApi
+ public final UnaryCallable
+ getGlobalNetworkEndpointGroupCallable() {
+ return stub.getGlobalNetworkEndpointGroupCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Creates a network endpoint group in the specified project using the parameters that are
+ * included in the request.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * ProjectName project = ProjectName.of("[PROJECT]");
+ * NetworkEndpointGroup networkEndpointGroupResource = NetworkEndpointGroup.newBuilder().build();
+ * Operation response = globalNetworkEndpointGroupClient.insertGlobalNetworkEndpointGroup(project, networkEndpointGroupResource);
+ * }
+ *
+ *
+ * @param project Project ID for this request.
+ * @param networkEndpointGroupResource Represents a collection of network endpoints.
+ * For more information read Network endpoint groups overview. (== resource_for
+ * {$api_version}.networkEndpointGroups ==) Next ID: 21
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation insertGlobalNetworkEndpointGroup(
+ ProjectName project, NetworkEndpointGroup networkEndpointGroupResource) {
+ InsertGlobalNetworkEndpointGroupHttpRequest request =
+ InsertGlobalNetworkEndpointGroupHttpRequest.newBuilder()
+ .setProject(project == null ? null : project.toString())
+ .setNetworkEndpointGroupResource(networkEndpointGroupResource)
+ .build();
+ return insertGlobalNetworkEndpointGroup(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Creates a network endpoint group in the specified project using the parameters that are
+ * included in the request.
+ *
+ *
Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * ProjectName project = ProjectName.of("[PROJECT]");
+ * NetworkEndpointGroup networkEndpointGroupResource = NetworkEndpointGroup.newBuilder().build();
+ * Operation response = globalNetworkEndpointGroupClient.insertGlobalNetworkEndpointGroup(project.toString(), networkEndpointGroupResource);
+ * }
+ *
+ *
+ * @param project Project ID for this request.
+ * @param networkEndpointGroupResource Represents a collection of network endpoints.
+ * For more information read Network endpoint groups overview. (== resource_for
+ * {$api_version}.networkEndpointGroups ==) Next ID: 21
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation insertGlobalNetworkEndpointGroup(
+ String project, NetworkEndpointGroup networkEndpointGroupResource) {
+ InsertGlobalNetworkEndpointGroupHttpRequest request =
+ InsertGlobalNetworkEndpointGroupHttpRequest.newBuilder()
+ .setProject(project)
+ .setNetworkEndpointGroupResource(networkEndpointGroupResource)
+ .build();
+ return insertGlobalNetworkEndpointGroup(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Creates a network endpoint group in the specified project using the parameters that are
+ * included in the request.
+ *
+ *
Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * String formattedProject = ProjectName.format("[PROJECT]");
+ * NetworkEndpointGroup networkEndpointGroupResource = NetworkEndpointGroup.newBuilder().build();
+ * InsertGlobalNetworkEndpointGroupHttpRequest request = InsertGlobalNetworkEndpointGroupHttpRequest.newBuilder()
+ * .setProject(formattedProject)
+ * .setNetworkEndpointGroupResource(networkEndpointGroupResource)
+ * .build();
+ * Operation response = globalNetworkEndpointGroupClient.insertGlobalNetworkEndpointGroup(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation insertGlobalNetworkEndpointGroup(
+ InsertGlobalNetworkEndpointGroupHttpRequest request) {
+ return insertGlobalNetworkEndpointGroupCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Creates a network endpoint group in the specified project using the parameters that are
+ * included in the request.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * String formattedProject = ProjectName.format("[PROJECT]");
+ * NetworkEndpointGroup networkEndpointGroupResource = NetworkEndpointGroup.newBuilder().build();
+ * InsertGlobalNetworkEndpointGroupHttpRequest request = InsertGlobalNetworkEndpointGroupHttpRequest.newBuilder()
+ * .setProject(formattedProject)
+ * .setNetworkEndpointGroupResource(networkEndpointGroupResource)
+ * .build();
+ * ApiFuture<Operation> future = globalNetworkEndpointGroupClient.insertGlobalNetworkEndpointGroupCallable().futureCall(request);
+ * // Do something
+ * Operation response = future.get();
+ * }
+ *
+ */
+ @BetaApi
+ public final UnaryCallable
+ insertGlobalNetworkEndpointGroupCallable() {
+ return stub.insertGlobalNetworkEndpointGroupCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Retrieves the list of network endpoint groups that are located in the specified project.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * ProjectName project = ProjectName.of("[PROJECT]");
+ * for (NetworkEndpointGroup element : globalNetworkEndpointGroupClient.listGlobalNetworkEndpointGroups(project).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ *
+ *
+ * @param project Project ID for this request.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final ListGlobalNetworkEndpointGroupsPagedResponse listGlobalNetworkEndpointGroups(
+ ProjectName project) {
+ ListGlobalNetworkEndpointGroupsHttpRequest request =
+ ListGlobalNetworkEndpointGroupsHttpRequest.newBuilder()
+ .setProject(project == null ? null : project.toString())
+ .build();
+ return listGlobalNetworkEndpointGroups(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Retrieves the list of network endpoint groups that are located in the specified project.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * ProjectName project = ProjectName.of("[PROJECT]");
+ * for (NetworkEndpointGroup element : globalNetworkEndpointGroupClient.listGlobalNetworkEndpointGroups(project.toString()).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ *
+ *
+ * @param project Project ID for this request.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final ListGlobalNetworkEndpointGroupsPagedResponse listGlobalNetworkEndpointGroups(
+ String project) {
+ ListGlobalNetworkEndpointGroupsHttpRequest request =
+ ListGlobalNetworkEndpointGroupsHttpRequest.newBuilder().setProject(project).build();
+ return listGlobalNetworkEndpointGroups(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Retrieves the list of network endpoint groups that are located in the specified project.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * String formattedProject = ProjectName.format("[PROJECT]");
+ * ListGlobalNetworkEndpointGroupsHttpRequest request = ListGlobalNetworkEndpointGroupsHttpRequest.newBuilder()
+ * .setProject(formattedProject)
+ * .build();
+ * for (NetworkEndpointGroup element : globalNetworkEndpointGroupClient.listGlobalNetworkEndpointGroups(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final ListGlobalNetworkEndpointGroupsPagedResponse listGlobalNetworkEndpointGroups(
+ ListGlobalNetworkEndpointGroupsHttpRequest request) {
+ return listGlobalNetworkEndpointGroupsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Retrieves the list of network endpoint groups that are located in the specified project.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * String formattedProject = ProjectName.format("[PROJECT]");
+ * ListGlobalNetworkEndpointGroupsHttpRequest request = ListGlobalNetworkEndpointGroupsHttpRequest.newBuilder()
+ * .setProject(formattedProject)
+ * .build();
+ * ApiFuture<ListGlobalNetworkEndpointGroupsPagedResponse> future = globalNetworkEndpointGroupClient.listGlobalNetworkEndpointGroupsPagedCallable().futureCall(request);
+ * // Do something
+ * for (NetworkEndpointGroup element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ *
+ */
+ @BetaApi
+ public final UnaryCallable<
+ ListGlobalNetworkEndpointGroupsHttpRequest, ListGlobalNetworkEndpointGroupsPagedResponse>
+ listGlobalNetworkEndpointGroupsPagedCallable() {
+ return stub.listGlobalNetworkEndpointGroupsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Retrieves the list of network endpoint groups that are located in the specified project.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * String formattedProject = ProjectName.format("[PROJECT]");
+ * ListGlobalNetworkEndpointGroupsHttpRequest request = ListGlobalNetworkEndpointGroupsHttpRequest.newBuilder()
+ * .setProject(formattedProject)
+ * .build();
+ * while (true) {
+ * NetworkEndpointGroupList response = globalNetworkEndpointGroupClient.listGlobalNetworkEndpointGroupsCallable().call(request);
+ * for (NetworkEndpointGroup element : response.getItemsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ *
+ */
+ @BetaApi
+ public final UnaryCallable
+ listGlobalNetworkEndpointGroupsCallable() {
+ return stub.listGlobalNetworkEndpointGroupsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Lists the network endpoints in the specified network endpoint group.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * ProjectGlobalNetworkEndpointGroupName networkEndpointGroup = ProjectGlobalNetworkEndpointGroupName.of("[PROJECT]", "[NETWORK_ENDPOINT_GROUP]");
+ * for (NetworkEndpointWithHealthStatus element : globalNetworkEndpointGroupClient.listNetworkEndpointsGlobalNetworkEndpointGroups(networkEndpointGroup).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ *
+ *
+ * @param networkEndpointGroup The name of the network endpoint group from which you want to
+ * generate a list of included network endpoints. It should comply with RFC1035.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final ListNetworkEndpointsGlobalNetworkEndpointGroupsPagedResponse
+ listNetworkEndpointsGlobalNetworkEndpointGroups(
+ ProjectGlobalNetworkEndpointGroupName networkEndpointGroup) {
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsHttpRequest request =
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsHttpRequest.newBuilder()
+ .setNetworkEndpointGroup(
+ networkEndpointGroup == null ? null : networkEndpointGroup.toString())
+ .build();
+ return listNetworkEndpointsGlobalNetworkEndpointGroups(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Lists the network endpoints in the specified network endpoint group.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * ProjectGlobalNetworkEndpointGroupName networkEndpointGroup = ProjectGlobalNetworkEndpointGroupName.of("[PROJECT]", "[NETWORK_ENDPOINT_GROUP]");
+ * for (NetworkEndpointWithHealthStatus element : globalNetworkEndpointGroupClient.listNetworkEndpointsGlobalNetworkEndpointGroups(networkEndpointGroup.toString()).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ *
+ *
+ * @param networkEndpointGroup The name of the network endpoint group from which you want to
+ * generate a list of included network endpoints. It should comply with RFC1035.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final ListNetworkEndpointsGlobalNetworkEndpointGroupsPagedResponse
+ listNetworkEndpointsGlobalNetworkEndpointGroups(String networkEndpointGroup) {
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsHttpRequest request =
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsHttpRequest.newBuilder()
+ .setNetworkEndpointGroup(networkEndpointGroup)
+ .build();
+ return listNetworkEndpointsGlobalNetworkEndpointGroups(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Lists the network endpoints in the specified network endpoint group.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * String formattedNetworkEndpointGroup = ProjectGlobalNetworkEndpointGroupName.format("[PROJECT]", "[NETWORK_ENDPOINT_GROUP]");
+ * ListNetworkEndpointsGlobalNetworkEndpointGroupsHttpRequest request = ListNetworkEndpointsGlobalNetworkEndpointGroupsHttpRequest.newBuilder()
+ * .setNetworkEndpointGroup(formattedNetworkEndpointGroup)
+ * .build();
+ * for (NetworkEndpointWithHealthStatus element : globalNetworkEndpointGroupClient.listNetworkEndpointsGlobalNetworkEndpointGroups(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final ListNetworkEndpointsGlobalNetworkEndpointGroupsPagedResponse
+ listNetworkEndpointsGlobalNetworkEndpointGroups(
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsHttpRequest request) {
+ return listNetworkEndpointsGlobalNetworkEndpointGroupsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Lists the network endpoints in the specified network endpoint group.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * String formattedNetworkEndpointGroup = ProjectGlobalNetworkEndpointGroupName.format("[PROJECT]", "[NETWORK_ENDPOINT_GROUP]");
+ * ListNetworkEndpointsGlobalNetworkEndpointGroupsHttpRequest request = ListNetworkEndpointsGlobalNetworkEndpointGroupsHttpRequest.newBuilder()
+ * .setNetworkEndpointGroup(formattedNetworkEndpointGroup)
+ * .build();
+ * ApiFuture<ListNetworkEndpointsGlobalNetworkEndpointGroupsPagedResponse> future = globalNetworkEndpointGroupClient.listNetworkEndpointsGlobalNetworkEndpointGroupsPagedCallable().futureCall(request);
+ * // Do something
+ * for (NetworkEndpointWithHealthStatus element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ *
+ */
+ @BetaApi
+ public final UnaryCallable<
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsHttpRequest,
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsPagedResponse>
+ listNetworkEndpointsGlobalNetworkEndpointGroupsPagedCallable() {
+ return stub.listNetworkEndpointsGlobalNetworkEndpointGroupsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Lists the network endpoints in the specified network endpoint group.
+ *
+ * Sample code:
+ *
+ *
+ * try (GlobalNetworkEndpointGroupClient globalNetworkEndpointGroupClient = GlobalNetworkEndpointGroupClient.create()) {
+ * String formattedNetworkEndpointGroup = ProjectGlobalNetworkEndpointGroupName.format("[PROJECT]", "[NETWORK_ENDPOINT_GROUP]");
+ * ListNetworkEndpointsGlobalNetworkEndpointGroupsHttpRequest request = ListNetworkEndpointsGlobalNetworkEndpointGroupsHttpRequest.newBuilder()
+ * .setNetworkEndpointGroup(formattedNetworkEndpointGroup)
+ * .build();
+ * while (true) {
+ * NetworkEndpointGroupsListNetworkEndpoints response = globalNetworkEndpointGroupClient.listNetworkEndpointsGlobalNetworkEndpointGroupsCallable().call(request);
+ * for (NetworkEndpointWithHealthStatus element : response.getItemsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ *
+ */
+ @BetaApi
+ public final UnaryCallable<
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsHttpRequest,
+ NetworkEndpointGroupsListNetworkEndpoints>
+ listNetworkEndpointsGlobalNetworkEndpointGroupsCallable() {
+ return stub.listNetworkEndpointsGlobalNetworkEndpointGroupsCallable();
+ }
+
+ @Override
+ public final void close() {
+ stub.close();
+ }
+
+ @Override
+ public void shutdown() {
+ stub.shutdown();
+ }
+
+ @Override
+ public boolean isShutdown() {
+ return stub.isShutdown();
+ }
+
+ @Override
+ public boolean isTerminated() {
+ return stub.isTerminated();
+ }
+
+ @Override
+ public void shutdownNow() {
+ stub.shutdownNow();
+ }
+
+ @Override
+ public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException {
+ return stub.awaitTermination(duration, unit);
+ }
+
+ public static class ListGlobalNetworkEndpointGroupsPagedResponse
+ extends AbstractPagedListResponse<
+ ListGlobalNetworkEndpointGroupsHttpRequest,
+ NetworkEndpointGroupList,
+ NetworkEndpointGroup,
+ ListGlobalNetworkEndpointGroupsPage,
+ ListGlobalNetworkEndpointGroupsFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext<
+ ListGlobalNetworkEndpointGroupsHttpRequest,
+ NetworkEndpointGroupList,
+ NetworkEndpointGroup>
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListGlobalNetworkEndpointGroupsPage.createEmptyPage()
+ .createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ new ApiFunction<
+ ListGlobalNetworkEndpointGroupsPage, ListGlobalNetworkEndpointGroupsPagedResponse>() {
+ @Override
+ public ListGlobalNetworkEndpointGroupsPagedResponse apply(
+ ListGlobalNetworkEndpointGroupsPage input) {
+ return new ListGlobalNetworkEndpointGroupsPagedResponse(input);
+ }
+ },
+ MoreExecutors.directExecutor());
+ }
+
+ private ListGlobalNetworkEndpointGroupsPagedResponse(ListGlobalNetworkEndpointGroupsPage page) {
+ super(page, ListGlobalNetworkEndpointGroupsFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListGlobalNetworkEndpointGroupsPage
+ extends AbstractPage<
+ ListGlobalNetworkEndpointGroupsHttpRequest,
+ NetworkEndpointGroupList,
+ NetworkEndpointGroup,
+ ListGlobalNetworkEndpointGroupsPage> {
+
+ private ListGlobalNetworkEndpointGroupsPage(
+ PageContext<
+ ListGlobalNetworkEndpointGroupsHttpRequest,
+ NetworkEndpointGroupList,
+ NetworkEndpointGroup>
+ context,
+ NetworkEndpointGroupList response) {
+ super(context, response);
+ }
+
+ private static ListGlobalNetworkEndpointGroupsPage createEmptyPage() {
+ return new ListGlobalNetworkEndpointGroupsPage(null, null);
+ }
+
+ @Override
+ protected ListGlobalNetworkEndpointGroupsPage createPage(
+ PageContext<
+ ListGlobalNetworkEndpointGroupsHttpRequest,
+ NetworkEndpointGroupList,
+ NetworkEndpointGroup>
+ context,
+ NetworkEndpointGroupList response) {
+ return new ListGlobalNetworkEndpointGroupsPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext<
+ ListGlobalNetworkEndpointGroupsHttpRequest,
+ NetworkEndpointGroupList,
+ NetworkEndpointGroup>
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListGlobalNetworkEndpointGroupsFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListGlobalNetworkEndpointGroupsHttpRequest,
+ NetworkEndpointGroupList,
+ NetworkEndpointGroup,
+ ListGlobalNetworkEndpointGroupsPage,
+ ListGlobalNetworkEndpointGroupsFixedSizeCollection> {
+
+ private ListGlobalNetworkEndpointGroupsFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListGlobalNetworkEndpointGroupsFixedSizeCollection createEmptyCollection() {
+ return new ListGlobalNetworkEndpointGroupsFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListGlobalNetworkEndpointGroupsFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListGlobalNetworkEndpointGroupsFixedSizeCollection(pages, collectionSize);
+ }
+ }
+
+ public static class ListNetworkEndpointsGlobalNetworkEndpointGroupsPagedResponse
+ extends AbstractPagedListResponse<
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsHttpRequest,
+ NetworkEndpointGroupsListNetworkEndpoints,
+ NetworkEndpointWithHealthStatus,
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsPage,
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsFixedSizeCollection> {
+
+ public static ApiFuture
+ createAsync(
+ PageContext<
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsHttpRequest,
+ NetworkEndpointGroupsListNetworkEndpoints,
+ NetworkEndpointWithHealthStatus>
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsPage.createEmptyPage()
+ .createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ new ApiFunction<
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsPage,
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsPagedResponse>() {
+ @Override
+ public ListNetworkEndpointsGlobalNetworkEndpointGroupsPagedResponse apply(
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsPage input) {
+ return new ListNetworkEndpointsGlobalNetworkEndpointGroupsPagedResponse(input);
+ }
+ },
+ MoreExecutors.directExecutor());
+ }
+
+ private ListNetworkEndpointsGlobalNetworkEndpointGroupsPagedResponse(
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsPage page) {
+ super(
+ page,
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsFixedSizeCollection
+ .createEmptyCollection());
+ }
+ }
+
+ public static class ListNetworkEndpointsGlobalNetworkEndpointGroupsPage
+ extends AbstractPage<
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsHttpRequest,
+ NetworkEndpointGroupsListNetworkEndpoints,
+ NetworkEndpointWithHealthStatus,
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsPage> {
+
+ private ListNetworkEndpointsGlobalNetworkEndpointGroupsPage(
+ PageContext<
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsHttpRequest,
+ NetworkEndpointGroupsListNetworkEndpoints,
+ NetworkEndpointWithHealthStatus>
+ context,
+ NetworkEndpointGroupsListNetworkEndpoints response) {
+ super(context, response);
+ }
+
+ private static ListNetworkEndpointsGlobalNetworkEndpointGroupsPage createEmptyPage() {
+ return new ListNetworkEndpointsGlobalNetworkEndpointGroupsPage(null, null);
+ }
+
+ @Override
+ protected ListNetworkEndpointsGlobalNetworkEndpointGroupsPage createPage(
+ PageContext<
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsHttpRequest,
+ NetworkEndpointGroupsListNetworkEndpoints,
+ NetworkEndpointWithHealthStatus>
+ context,
+ NetworkEndpointGroupsListNetworkEndpoints response) {
+ return new ListNetworkEndpointsGlobalNetworkEndpointGroupsPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext<
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsHttpRequest,
+ NetworkEndpointGroupsListNetworkEndpoints,
+ NetworkEndpointWithHealthStatus>
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListNetworkEndpointsGlobalNetworkEndpointGroupsFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsHttpRequest,
+ NetworkEndpointGroupsListNetworkEndpoints,
+ NetworkEndpointWithHealthStatus,
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsPage,
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsFixedSizeCollection> {
+
+ private ListNetworkEndpointsGlobalNetworkEndpointGroupsFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListNetworkEndpointsGlobalNetworkEndpointGroupsFixedSizeCollection
+ createEmptyCollection() {
+ return new ListNetworkEndpointsGlobalNetworkEndpointGroupsFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListNetworkEndpointsGlobalNetworkEndpointGroupsFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListNetworkEndpointsGlobalNetworkEndpointGroupsFixedSizeCollection(
+ pages, collectionSize);
+ }
+ }
+}
diff --git a/src/main/java/com/google/cloud/compute/v1/GlobalNetworkEndpointGroupSettings.java b/src/main/java/com/google/cloud/compute/v1/GlobalNetworkEndpointGroupSettings.java
new file mode 100644
index 000000000..699a40fe2
--- /dev/null
+++ b/src/main/java/com/google/cloud/compute/v1/GlobalNetworkEndpointGroupSettings.java
@@ -0,0 +1,305 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+package com.google.cloud.compute.v1;
+
+import static com.google.cloud.compute.v1.GlobalNetworkEndpointGroupClient.ListGlobalNetworkEndpointGroupsPagedResponse;
+import static com.google.cloud.compute.v1.GlobalNetworkEndpointGroupClient.ListNetworkEndpointsGlobalNetworkEndpointGroupsPagedResponse;
+
+import com.google.api.core.ApiFunction;
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.GoogleCredentialsProvider;
+import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.ClientSettings;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.TransportChannelProvider;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.cloud.compute.v1.stub.GlobalNetworkEndpointGroupStubSettings;
+import java.io.IOException;
+import java.util.List;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS
+/**
+ * Settings class to configure an instance of {@link GlobalNetworkEndpointGroupClient}.
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ *
+ * - The default service address (https://compute.googleapis.com/compute/v1/projects/) and
+ * default port (443) are used.
+ *
- Credentials are acquired automatically through Application Default Credentials.
+ *
- Retries are configured for idempotent methods but not for non-idempotent methods.
+ *
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ *
For example, to set the total timeout of attachNetworkEndpointsGlobalNetworkEndpointGroup to
+ * 30 seconds:
+ *
+ *
+ *
+ * GlobalNetworkEndpointGroupSettings.Builder globalNetworkEndpointGroupSettingsBuilder =
+ * GlobalNetworkEndpointGroupSettings.newBuilder();
+ * globalNetworkEndpointGroupSettingsBuilder
+ * .attachNetworkEndpointsGlobalNetworkEndpointGroupSettings()
+ * .setRetrySettings(
+ * globalNetworkEndpointGroupSettingsBuilder.attachNetworkEndpointsGlobalNetworkEndpointGroupSettings().getRetrySettings().toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * GlobalNetworkEndpointGroupSettings globalNetworkEndpointGroupSettings = globalNetworkEndpointGroupSettingsBuilder.build();
+ *
+ *
+ */
+@Generated("by gapic-generator")
+@BetaApi
+public class GlobalNetworkEndpointGroupSettings
+ extends ClientSettings {
+ /**
+ * Returns the object with the settings used for calls to
+ * attachNetworkEndpointsGlobalNetworkEndpointGroup.
+ */
+ public UnaryCallSettings
+ attachNetworkEndpointsGlobalNetworkEndpointGroupSettings() {
+ return ((GlobalNetworkEndpointGroupStubSettings) getStubSettings())
+ .attachNetworkEndpointsGlobalNetworkEndpointGroupSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deleteGlobalNetworkEndpointGroup. */
+ public UnaryCallSettings
+ deleteGlobalNetworkEndpointGroupSettings() {
+ return ((GlobalNetworkEndpointGroupStubSettings) getStubSettings())
+ .deleteGlobalNetworkEndpointGroupSettings();
+ }
+
+ /**
+ * Returns the object with the settings used for calls to
+ * detachNetworkEndpointsGlobalNetworkEndpointGroup.
+ */
+ public UnaryCallSettings
+ detachNetworkEndpointsGlobalNetworkEndpointGroupSettings() {
+ return ((GlobalNetworkEndpointGroupStubSettings) getStubSettings())
+ .detachNetworkEndpointsGlobalNetworkEndpointGroupSettings();
+ }
+
+ /** Returns the object with the settings used for calls to getGlobalNetworkEndpointGroup. */
+ public UnaryCallSettings
+ getGlobalNetworkEndpointGroupSettings() {
+ return ((GlobalNetworkEndpointGroupStubSettings) getStubSettings())
+ .getGlobalNetworkEndpointGroupSettings();
+ }
+
+ /** Returns the object with the settings used for calls to insertGlobalNetworkEndpointGroup. */
+ public UnaryCallSettings
+ insertGlobalNetworkEndpointGroupSettings() {
+ return ((GlobalNetworkEndpointGroupStubSettings) getStubSettings())
+ .insertGlobalNetworkEndpointGroupSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listGlobalNetworkEndpointGroups. */
+ public PagedCallSettings<
+ ListGlobalNetworkEndpointGroupsHttpRequest,
+ NetworkEndpointGroupList,
+ ListGlobalNetworkEndpointGroupsPagedResponse>
+ listGlobalNetworkEndpointGroupsSettings() {
+ return ((GlobalNetworkEndpointGroupStubSettings) getStubSettings())
+ .listGlobalNetworkEndpointGroupsSettings();
+ }
+
+ /**
+ * Returns the object with the settings used for calls to
+ * listNetworkEndpointsGlobalNetworkEndpointGroups.
+ */
+ public PagedCallSettings<
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsHttpRequest,
+ NetworkEndpointGroupsListNetworkEndpoints,
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsPagedResponse>
+ listNetworkEndpointsGlobalNetworkEndpointGroupsSettings() {
+ return ((GlobalNetworkEndpointGroupStubSettings) getStubSettings())
+ .listNetworkEndpointsGlobalNetworkEndpointGroupsSettings();
+ }
+
+ public static final GlobalNetworkEndpointGroupSettings create(
+ GlobalNetworkEndpointGroupStubSettings stub) throws IOException {
+ return new GlobalNetworkEndpointGroupSettings.Builder(stub.toBuilder()).build();
+ }
+
+ /** Returns a builder for the default ExecutorProvider for this service. */
+ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
+ return GlobalNetworkEndpointGroupStubSettings.defaultExecutorProviderBuilder();
+ }
+
+ /** Returns the default service endpoint. */
+ public static String getDefaultEndpoint() {
+ return GlobalNetworkEndpointGroupStubSettings.getDefaultEndpoint();
+ }
+ /** Returns the default service port. */
+ public static int getDefaultServicePort() {
+ return GlobalNetworkEndpointGroupStubSettings.getDefaultServicePort();
+ }
+
+ /** Returns the default service scopes. */
+ public static List getDefaultServiceScopes() {
+ return GlobalNetworkEndpointGroupStubSettings.getDefaultServiceScopes();
+ }
+
+ /** Returns a builder for the default credentials for this service. */
+ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
+ return GlobalNetworkEndpointGroupStubSettings.defaultCredentialsProviderBuilder();
+ }
+
+ /** Returns a builder for the default ChannelProvider for this service. */
+ public static InstantiatingHttpJsonChannelProvider.Builder
+ defaultHttpJsonTransportProviderBuilder() {
+ return GlobalNetworkEndpointGroupStubSettings.defaultHttpJsonTransportProviderBuilder();
+ }
+
+ public static TransportChannelProvider defaultTransportChannelProvider() {
+ return GlobalNetworkEndpointGroupStubSettings.defaultTransportChannelProvider();
+ }
+
+ @BetaApi("The surface for customizing headers is not stable yet and may change in the future.")
+ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+ return GlobalNetworkEndpointGroupStubSettings.defaultApiClientHeaderProviderBuilder();
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder() {
+ return Builder.createDefault();
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder(ClientContext clientContext) {
+ return new Builder(clientContext);
+ }
+
+ /** Returns a builder containing all the values of this settings class. */
+ public Builder toBuilder() {
+ return new Builder(this);
+ }
+
+ protected GlobalNetworkEndpointGroupSettings(Builder settingsBuilder) throws IOException {
+ super(settingsBuilder);
+ }
+
+ /** Builder for GlobalNetworkEndpointGroupSettings. */
+ public static class Builder
+ extends ClientSettings.Builder {
+ protected Builder() throws IOException {
+ this((ClientContext) null);
+ }
+
+ protected Builder(ClientContext clientContext) {
+ super(GlobalNetworkEndpointGroupStubSettings.newBuilder(clientContext));
+ }
+
+ private static Builder createDefault() {
+ return new Builder(GlobalNetworkEndpointGroupStubSettings.newBuilder());
+ }
+
+ protected Builder(GlobalNetworkEndpointGroupSettings settings) {
+ super(settings.getStubSettings().toBuilder());
+ }
+
+ protected Builder(GlobalNetworkEndpointGroupStubSettings.Builder stubSettings) {
+ super(stubSettings);
+ }
+
+ public GlobalNetworkEndpointGroupStubSettings.Builder getStubSettingsBuilder() {
+ return ((GlobalNetworkEndpointGroupStubSettings.Builder) getStubSettings());
+ }
+
+ // NEXT_MAJOR_VER: remove 'throws Exception'
+ /**
+ * Applies the given settings updater function to all of the unary API methods in this service.
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction, Void> settingsUpdater) throws Exception {
+ super.applyToAllUnaryMethods(
+ getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
+ return this;
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to
+ * attachNetworkEndpointsGlobalNetworkEndpointGroup.
+ */
+ public UnaryCallSettings.Builder<
+ AttachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest, Operation>
+ attachNetworkEndpointsGlobalNetworkEndpointGroupSettings() {
+ return getStubSettingsBuilder().attachNetworkEndpointsGlobalNetworkEndpointGroupSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deleteGlobalNetworkEndpointGroup. */
+ public UnaryCallSettings.Builder
+ deleteGlobalNetworkEndpointGroupSettings() {
+ return getStubSettingsBuilder().deleteGlobalNetworkEndpointGroupSettings();
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to
+ * detachNetworkEndpointsGlobalNetworkEndpointGroup.
+ */
+ public UnaryCallSettings.Builder<
+ DetachNetworkEndpointsGlobalNetworkEndpointGroupHttpRequest, Operation>
+ detachNetworkEndpointsGlobalNetworkEndpointGroupSettings() {
+ return getStubSettingsBuilder().detachNetworkEndpointsGlobalNetworkEndpointGroupSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to getGlobalNetworkEndpointGroup. */
+ public UnaryCallSettings.Builder
+ getGlobalNetworkEndpointGroupSettings() {
+ return getStubSettingsBuilder().getGlobalNetworkEndpointGroupSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to insertGlobalNetworkEndpointGroup. */
+ public UnaryCallSettings.Builder
+ insertGlobalNetworkEndpointGroupSettings() {
+ return getStubSettingsBuilder().insertGlobalNetworkEndpointGroupSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listGlobalNetworkEndpointGroups. */
+ public PagedCallSettings.Builder<
+ ListGlobalNetworkEndpointGroupsHttpRequest,
+ NetworkEndpointGroupList,
+ ListGlobalNetworkEndpointGroupsPagedResponse>
+ listGlobalNetworkEndpointGroupsSettings() {
+ return getStubSettingsBuilder().listGlobalNetworkEndpointGroupsSettings();
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to
+ * listNetworkEndpointsGlobalNetworkEndpointGroups.
+ */
+ public PagedCallSettings.Builder<
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsHttpRequest,
+ NetworkEndpointGroupsListNetworkEndpoints,
+ ListNetworkEndpointsGlobalNetworkEndpointGroupsPagedResponse>
+ listNetworkEndpointsGlobalNetworkEndpointGroupsSettings() {
+ return getStubSettingsBuilder().listNetworkEndpointsGlobalNetworkEndpointGroupsSettings();
+ }
+
+ @Override
+ public GlobalNetworkEndpointGroupSettings build() throws IOException {
+ return new GlobalNetworkEndpointGroupSettings(this);
+ }
+ }
+}
diff --git a/src/main/java/com/google/cloud/compute/v1/GlobalNetworkEndpointGroupsAttachEndpointsRequest.java b/src/main/java/com/google/cloud/compute/v1/GlobalNetworkEndpointGroupsAttachEndpointsRequest.java
new file mode 100644
index 000000000..2aeaa4b9f
--- /dev/null
+++ b/src/main/java/com/google/cloud/compute/v1/GlobalNetworkEndpointGroupsAttachEndpointsRequest.java
@@ -0,0 +1,170 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+package com.google.cloud.compute.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.ApiMessage;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Objects;
+import javax.annotation.Generated;
+import javax.annotation.Nullable;
+
+@Generated("by GAPIC")
+@BetaApi
+public final class GlobalNetworkEndpointGroupsAttachEndpointsRequest implements ApiMessage {
+ private final List networkEndpoints;
+
+ private GlobalNetworkEndpointGroupsAttachEndpointsRequest() {
+ this.networkEndpoints = null;
+ }
+
+ private GlobalNetworkEndpointGroupsAttachEndpointsRequest(
+ List networkEndpoints) {
+ this.networkEndpoints = networkEndpoints;
+ }
+
+ @Override
+ public Object getFieldValue(String fieldName) {
+ if ("networkEndpoints".equals(fieldName)) {
+ return networkEndpoints;
+ }
+ return null;
+ }
+
+ @Nullable
+ @Override
+ public ApiMessage getApiMessageRequestBody() {
+ return null;
+ }
+
+ @Nullable
+ @Override
+ /**
+ * The fields that should be serialized (even if they have empty values). If the containing
+ * message object has a non-null fieldmask, then all the fields in the field mask (and only those
+ * fields in the field mask) will be serialized. If the containing object does not have a
+ * fieldmask, then only non-empty fields will be serialized.
+ */
+ public List getFieldMask() {
+ return null;
+ }
+
+ /** The list of network endpoints to be attached. */
+ public List getNetworkEndpointsList() {
+ return networkEndpoints;
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(GlobalNetworkEndpointGroupsAttachEndpointsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ public static GlobalNetworkEndpointGroupsAttachEndpointsRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final GlobalNetworkEndpointGroupsAttachEndpointsRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new GlobalNetworkEndpointGroupsAttachEndpointsRequest();
+ }
+
+ public static class Builder {
+ private List networkEndpoints;
+
+ Builder() {}
+
+ public Builder mergeFrom(GlobalNetworkEndpointGroupsAttachEndpointsRequest other) {
+ if (other == GlobalNetworkEndpointGroupsAttachEndpointsRequest.getDefaultInstance())
+ return this;
+ if (other.getNetworkEndpointsList() != null) {
+ this.networkEndpoints = other.networkEndpoints;
+ }
+ return this;
+ }
+
+ Builder(GlobalNetworkEndpointGroupsAttachEndpointsRequest source) {
+ this.networkEndpoints = source.networkEndpoints;
+ }
+
+ /** The list of network endpoints to be attached. */
+ public List getNetworkEndpointsList() {
+ return networkEndpoints;
+ }
+
+ /** The list of network endpoints to be attached. */
+ public Builder addAllNetworkEndpoints(List networkEndpoints) {
+ if (this.networkEndpoints == null) {
+ this.networkEndpoints = new LinkedList<>();
+ }
+ this.networkEndpoints.addAll(networkEndpoints);
+ return this;
+ }
+
+ /** The list of network endpoints to be attached. */
+ public Builder addNetworkEndpoints(NetworkEndpoint networkEndpoints) {
+ if (this.networkEndpoints == null) {
+ this.networkEndpoints = new LinkedList<>();
+ }
+ this.networkEndpoints.add(networkEndpoints);
+ return this;
+ }
+
+ public GlobalNetworkEndpointGroupsAttachEndpointsRequest build() {
+ return new GlobalNetworkEndpointGroupsAttachEndpointsRequest(networkEndpoints);
+ }
+
+ public Builder clone() {
+ Builder newBuilder = new Builder();
+ newBuilder.addAllNetworkEndpoints(this.networkEndpoints);
+ return newBuilder;
+ }
+ }
+
+ @Override
+ public String toString() {
+ return "GlobalNetworkEndpointGroupsAttachEndpointsRequest{"
+ + "networkEndpoints="
+ + networkEndpoints
+ + "}";
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof GlobalNetworkEndpointGroupsAttachEndpointsRequest) {
+ GlobalNetworkEndpointGroupsAttachEndpointsRequest that =
+ (GlobalNetworkEndpointGroupsAttachEndpointsRequest) o;
+ return Objects.equals(this.networkEndpoints, that.getNetworkEndpointsList());
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(networkEndpoints);
+ }
+}
diff --git a/src/main/java/com/google/cloud/compute/v1/GlobalNetworkEndpointGroupsDetachEndpointsRequest.java b/src/main/java/com/google/cloud/compute/v1/GlobalNetworkEndpointGroupsDetachEndpointsRequest.java
new file mode 100644
index 000000000..309d3a411
--- /dev/null
+++ b/src/main/java/com/google/cloud/compute/v1/GlobalNetworkEndpointGroupsDetachEndpointsRequest.java
@@ -0,0 +1,170 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+package com.google.cloud.compute.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.ApiMessage;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Objects;
+import javax.annotation.Generated;
+import javax.annotation.Nullable;
+
+@Generated("by GAPIC")
+@BetaApi
+public final class GlobalNetworkEndpointGroupsDetachEndpointsRequest implements ApiMessage {
+ private final List networkEndpoints;
+
+ private GlobalNetworkEndpointGroupsDetachEndpointsRequest() {
+ this.networkEndpoints = null;
+ }
+
+ private GlobalNetworkEndpointGroupsDetachEndpointsRequest(
+ List networkEndpoints) {
+ this.networkEndpoints = networkEndpoints;
+ }
+
+ @Override
+ public Object getFieldValue(String fieldName) {
+ if ("networkEndpoints".equals(fieldName)) {
+ return networkEndpoints;
+ }
+ return null;
+ }
+
+ @Nullable
+ @Override
+ public ApiMessage getApiMessageRequestBody() {
+ return null;
+ }
+
+ @Nullable
+ @Override
+ /**
+ * The fields that should be serialized (even if they have empty values). If the containing
+ * message object has a non-null fieldmask, then all the fields in the field mask (and only those
+ * fields in the field mask) will be serialized. If the containing object does not have a
+ * fieldmask, then only non-empty fields will be serialized.
+ */
+ public List getFieldMask() {
+ return null;
+ }
+
+ /** The list of network endpoints to be detached. */
+ public List getNetworkEndpointsList() {
+ return networkEndpoints;
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(GlobalNetworkEndpointGroupsDetachEndpointsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ public static GlobalNetworkEndpointGroupsDetachEndpointsRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final GlobalNetworkEndpointGroupsDetachEndpointsRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new GlobalNetworkEndpointGroupsDetachEndpointsRequest();
+ }
+
+ public static class Builder {
+ private List networkEndpoints;
+
+ Builder() {}
+
+ public Builder mergeFrom(GlobalNetworkEndpointGroupsDetachEndpointsRequest other) {
+ if (other == GlobalNetworkEndpointGroupsDetachEndpointsRequest.getDefaultInstance())
+ return this;
+ if (other.getNetworkEndpointsList() != null) {
+ this.networkEndpoints = other.networkEndpoints;
+ }
+ return this;
+ }
+
+ Builder(GlobalNetworkEndpointGroupsDetachEndpointsRequest source) {
+ this.networkEndpoints = source.networkEndpoints;
+ }
+
+ /** The list of network endpoints to be detached. */
+ public List getNetworkEndpointsList() {
+ return networkEndpoints;
+ }
+
+ /** The list of network endpoints to be detached. */
+ public Builder addAllNetworkEndpoints(List networkEndpoints) {
+ if (this.networkEndpoints == null) {
+ this.networkEndpoints = new LinkedList<>();
+ }
+ this.networkEndpoints.addAll(networkEndpoints);
+ return this;
+ }
+
+ /** The list of network endpoints to be detached. */
+ public Builder addNetworkEndpoints(NetworkEndpoint networkEndpoints) {
+ if (this.networkEndpoints == null) {
+ this.networkEndpoints = new LinkedList<>();
+ }
+ this.networkEndpoints.add(networkEndpoints);
+ return this;
+ }
+
+ public GlobalNetworkEndpointGroupsDetachEndpointsRequest build() {
+ return new GlobalNetworkEndpointGroupsDetachEndpointsRequest(networkEndpoints);
+ }
+
+ public Builder clone() {
+ Builder newBuilder = new Builder();
+ newBuilder.addAllNetworkEndpoints(this.networkEndpoints);
+ return newBuilder;
+ }
+ }
+
+ @Override
+ public String toString() {
+ return "GlobalNetworkEndpointGroupsDetachEndpointsRequest{"
+ + "networkEndpoints="
+ + networkEndpoints
+ + "}";
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof GlobalNetworkEndpointGroupsDetachEndpointsRequest) {
+ GlobalNetworkEndpointGroupsDetachEndpointsRequest that =
+ (GlobalNetworkEndpointGroupsDetachEndpointsRequest) o;
+ return Objects.equals(this.networkEndpoints, that.getNetworkEndpointsList());
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(networkEndpoints);
+ }
+}
diff --git a/src/main/java/com/google/cloud/compute/v1/GlobalOperationClient.java b/src/main/java/com/google/cloud/compute/v1/GlobalOperationClient.java
index 5a79fbaec..e28bfce87 100644
--- a/src/main/java/com/google/cloud/compute/v1/GlobalOperationClient.java
+++ b/src/main/java/com/google/cloud/compute/v1/GlobalOperationClient.java
@@ -162,21 +162,29 @@ public GlobalOperationStub getStub() {
*
*
* try (GlobalOperationClient globalOperationClient = GlobalOperationClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (OperationsScopedList element : globalOperationClient.aggregatedListGlobalOperations(project).iterateAll()) {
+ * for (OperationsScopedList element : globalOperationClient.aggregatedListGlobalOperations(includeAllScopes, project).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Project ID for this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
public final AggregatedListGlobalOperationsPagedResponse aggregatedListGlobalOperations(
- ProjectName project) {
+ Boolean includeAllScopes, ProjectName project) {
AggregatedListGlobalOperationsHttpRequest request =
AggregatedListGlobalOperationsHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
.setProject(project == null ? null : project.toString())
.build();
return aggregatedListGlobalOperations(request);
@@ -190,21 +198,31 @@ public final AggregatedListGlobalOperationsPagedResponse aggregatedListGlobalOpe
*
*
* try (GlobalOperationClient globalOperationClient = GlobalOperationClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (OperationsScopedList element : globalOperationClient.aggregatedListGlobalOperations(project.toString()).iterateAll()) {
+ * for (OperationsScopedList element : globalOperationClient.aggregatedListGlobalOperations(includeAllScopes, project.toString()).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Project ID for this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
public final AggregatedListGlobalOperationsPagedResponse aggregatedListGlobalOperations(
- String project) {
+ Boolean includeAllScopes, String project) {
AggregatedListGlobalOperationsHttpRequest request =
- AggregatedListGlobalOperationsHttpRequest.newBuilder().setProject(project).build();
+ AggregatedListGlobalOperationsHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
+ .setProject(project)
+ .build();
return aggregatedListGlobalOperations(request);
}
@@ -216,8 +234,10 @@ public final AggregatedListGlobalOperationsPagedResponse aggregatedListGlobalOpe
*
*
* try (GlobalOperationClient globalOperationClient = GlobalOperationClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListGlobalOperationsHttpRequest request = AggregatedListGlobalOperationsHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* for (OperationsScopedList element : globalOperationClient.aggregatedListGlobalOperations(request).iterateAll()) {
@@ -243,8 +263,10 @@ public final AggregatedListGlobalOperationsPagedResponse aggregatedListGlobalOpe
*
*
* try (GlobalOperationClient globalOperationClient = GlobalOperationClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListGlobalOperationsHttpRequest request = AggregatedListGlobalOperationsHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* ApiFuture<AggregatedListGlobalOperationsPagedResponse> future = globalOperationClient.aggregatedListGlobalOperationsPagedCallable().futureCall(request);
@@ -270,8 +292,10 @@ public final AggregatedListGlobalOperationsPagedResponse aggregatedListGlobalOpe
*
*
* try (GlobalOperationClient globalOperationClient = GlobalOperationClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListGlobalOperationsHttpRequest request = AggregatedListGlobalOperationsHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* while (true) {
diff --git a/src/main/java/com/google/cloud/compute/v1/HealthCheck.java b/src/main/java/com/google/cloud/compute/v1/HealthCheck.java
index 1a4720c61..fb6de9812 100644
--- a/src/main/java/com/google/cloud/compute/v1/HealthCheck.java
+++ b/src/main/java/com/google/cloud/compute/v1/HealthCheck.java
@@ -29,8 +29,8 @@
*
* Google Compute Engine has two Health Check resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/healthChecks) *
- * [Regional](/compute/docs/reference/rest/latest/regionHealthChecks)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
*
*
Internal HTTP(S) load balancers use regional health checks. All other types of GCP load
* balancers and managed instance group auto-healing use global health checks. For more information,
diff --git a/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java b/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java
index 77dc8f148..6b414f0f4 100644
--- a/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java
+++ b/src/main/java/com/google/cloud/compute/v1/HealthCheckClient.java
@@ -161,21 +161,29 @@ public HealthCheckStub getStub() {
*
*
* try (HealthCheckClient healthCheckClient = HealthCheckClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (HealthChecksScopedList element : healthCheckClient.aggregatedListHealthChecks(project).iterateAll()) {
+ * for (HealthChecksScopedList element : healthCheckClient.aggregatedListHealthChecks(includeAllScopes, project).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Name of the project scoping this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
public final AggregatedListHealthChecksPagedResponse aggregatedListHealthChecks(
- ProjectName project) {
+ Boolean includeAllScopes, ProjectName project) {
AggregatedListHealthChecksHttpRequest request =
AggregatedListHealthChecksHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
.setProject(project == null ? null : project.toString())
.build();
return aggregatedListHealthChecks(request);
@@ -190,20 +198,31 @@ public final AggregatedListHealthChecksPagedResponse aggregatedListHealthChecks(
*
*
* try (HealthCheckClient healthCheckClient = HealthCheckClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (HealthChecksScopedList element : healthCheckClient.aggregatedListHealthChecks(project.toString()).iterateAll()) {
+ * for (HealthChecksScopedList element : healthCheckClient.aggregatedListHealthChecks(includeAllScopes, project.toString()).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Name of the project scoping this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
- public final AggregatedListHealthChecksPagedResponse aggregatedListHealthChecks(String project) {
+ public final AggregatedListHealthChecksPagedResponse aggregatedListHealthChecks(
+ Boolean includeAllScopes, String project) {
AggregatedListHealthChecksHttpRequest request =
- AggregatedListHealthChecksHttpRequest.newBuilder().setProject(project).build();
+ AggregatedListHealthChecksHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
+ .setProject(project)
+ .build();
return aggregatedListHealthChecks(request);
}
@@ -216,8 +235,10 @@ public final AggregatedListHealthChecksPagedResponse aggregatedListHealthChecks(
*
*
* try (HealthCheckClient healthCheckClient = HealthCheckClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListHealthChecksHttpRequest request = AggregatedListHealthChecksHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* for (HealthChecksScopedList element : healthCheckClient.aggregatedListHealthChecks(request).iterateAll()) {
@@ -244,8 +265,10 @@ public final AggregatedListHealthChecksPagedResponse aggregatedListHealthChecks(
*
*
* try (HealthCheckClient healthCheckClient = HealthCheckClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListHealthChecksHttpRequest request = AggregatedListHealthChecksHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* ApiFuture<AggregatedListHealthChecksPagedResponse> future = healthCheckClient.aggregatedListHealthChecksPagedCallable().futureCall(request);
@@ -272,8 +295,10 @@ public final AggregatedListHealthChecksPagedResponse aggregatedListHealthChecks(
*
*
* try (HealthCheckClient healthCheckClient = HealthCheckClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListHealthChecksHttpRequest request = AggregatedListHealthChecksHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* while (true) {
@@ -508,8 +533,8 @@ public final UnaryCallable getHealthChec
* @param project Project ID for this request.
* @param healthCheckResource Represents a Health Check resource.
* Google Compute Engine has two Health Check resources:
- *
* [Global](/compute/docs/reference/rest/latest/healthChecks) *
- * [Regional](/compute/docs/reference/rest/latest/regionHealthChecks)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
*
Internal HTTP(S) load balancers use regional health checks. All other types of GCP load
* balancers and managed instance group auto-healing use global health checks. For more
* information, read Health Check Concepts.
@@ -544,8 +569,8 @@ public final Operation insertHealthCheck(ProjectName project, HealthCheck health
* @param project Project ID for this request.
* @param healthCheckResource Represents a Health Check resource.
*
Google Compute Engine has two Health Check resources:
- *
* [Global](/compute/docs/reference/rest/latest/healthChecks) *
- * [Regional](/compute/docs/reference/rest/latest/regionHealthChecks)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
*
Internal HTTP(S) load balancers use regional health checks. All other types of GCP load
* balancers and managed instance group auto-healing use global health checks. For more
* information, read Health Check Concepts.
@@ -770,8 +795,8 @@ public final ListHealthChecksPagedResponse listHealthChecks(ListHealthChecksHttp
* @param healthCheck Name of the HealthCheck resource to patch.
* @param healthCheckResource Represents a Health Check resource.
*
Google Compute Engine has two Health Check resources:
- *
* [Global](/compute/docs/reference/rest/latest/healthChecks) *
- * [Regional](/compute/docs/reference/rest/latest/regionHealthChecks)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
*
Internal HTTP(S) load balancers use regional health checks. All other types of GCP load
* balancers and managed instance group auto-healing use global health checks. For more
* information, read Health Check Concepts.
@@ -816,8 +841,8 @@ public final Operation patchHealthCheck(
* @param healthCheck Name of the HealthCheck resource to patch.
* @param healthCheckResource Represents a Health Check resource.
*
Google Compute Engine has two Health Check resources:
- *
* [Global](/compute/docs/reference/rest/latest/healthChecks) *
- * [Regional](/compute/docs/reference/rest/latest/regionHealthChecks)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
*
Internal HTTP(S) load balancers use regional health checks. All other types of GCP load
* balancers and managed instance group auto-healing use global health checks. For more
* information, read Health Check Concepts.
@@ -916,8 +941,8 @@ public final UnaryCallable patchHealthCh
* @param healthCheck Name of the HealthCheck resource to update.
* @param healthCheckResource Represents a Health Check resource.
* Google Compute Engine has two Health Check resources:
- *
* [Global](/compute/docs/reference/rest/latest/healthChecks) *
- * [Regional](/compute/docs/reference/rest/latest/regionHealthChecks)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
*
Internal HTTP(S) load balancers use regional health checks. All other types of GCP load
* balancers and managed instance group auto-healing use global health checks. For more
* information, read Health Check Concepts.
@@ -961,8 +986,8 @@ public final Operation updateHealthCheck(
* @param healthCheck Name of the HealthCheck resource to update.
* @param healthCheckResource Represents a Health Check resource.
*
Google Compute Engine has two Health Check resources:
- *
* [Global](/compute/docs/reference/rest/latest/healthChecks) *
- * [Regional](/compute/docs/reference/rest/latest/regionHealthChecks)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
*
Internal HTTP(S) load balancers use regional health checks. All other types of GCP load
* balancers and managed instance group auto-healing use global health checks. For more
* information, read Health Check Concepts.
diff --git a/src/main/java/com/google/cloud/compute/v1/HostRule.java b/src/main/java/com/google/cloud/compute/v1/HostRule.java
index 91a11ea6a..26009a979 100644
--- a/src/main/java/com/google/cloud/compute/v1/HostRule.java
+++ b/src/main/java/com/google/cloud/compute/v1/HostRule.java
@@ -86,9 +86,9 @@ public String getDescription() {
}
/**
- * The list of host patterns to match. They must be valid hostnames, except * will match any
- * string of ([a-z0-9-.]*). In that case, * must be the first character and must be
- * followed in the pattern by either - or ..
+ * The list of host patterns to match. They must be valid hostnames with optional port numbers in
+ * the format host:port. * matches any string of ([a-z0-9-.]*). In that case, * must
+ * be the first character and must be followed in the pattern by either - or ..
*/
public List getHostsList() {
return hosts;
@@ -167,18 +167,18 @@ public Builder setDescription(String description) {
}
/**
- * The list of host patterns to match. They must be valid hostnames, except * will match any
- * string of ([a-z0-9-.]*). In that case, * must be the first character and must be
- * followed in the pattern by either - or ..
+ * The list of host patterns to match. They must be valid hostnames with optional port numbers
+ * in the format host:port. * matches any string of ([a-z0-9-.]*). In that case, *
+ * must be the first character and must be followed in the pattern by either - or ..
*/
public List getHostsList() {
return hosts;
}
/**
- * The list of host patterns to match. They must be valid hostnames, except * will match any
- * string of ([a-z0-9-.]*). In that case, * must be the first character and must be
- * followed in the pattern by either - or ..
+ * The list of host patterns to match. They must be valid hostnames with optional port numbers
+ * in the format host:port. * matches any string of ([a-z0-9-.]*). In that case, *
+ * must be the first character and must be followed in the pattern by either - or ..
*/
public Builder addAllHosts(List hosts) {
if (this.hosts == null) {
@@ -189,9 +189,9 @@ public Builder addAllHosts(List hosts) {
}
/**
- * The list of host patterns to match. They must be valid hostnames, except * will match any
- * string of ([a-z0-9-.]*). In that case, * must be the first character and must be
- * followed in the pattern by either - or ..
+ * The list of host patterns to match. They must be valid hostnames with optional port numbers
+ * in the format host:port. * matches any string of ([a-z0-9-.]*). In that case, *
+ * must be the first character and must be followed in the pattern by either - or ..
*/
public Builder addHosts(String hosts) {
if (this.hosts == null) {
diff --git a/src/main/java/com/google/cloud/compute/v1/Image.java b/src/main/java/com/google/cloud/compute/v1/Image.java
index 7e0685f55..803c939b7 100644
--- a/src/main/java/com/google/cloud/compute/v1/Image.java
+++ b/src/main/java/com/google/cloud/compute/v1/Image.java
@@ -50,6 +50,7 @@ public final class Image implements ApiMessage {
private final String name;
private final RawDisk rawDisk;
private final String selfLink;
+ private final InitialStateConfig shieldedInstanceInitialState;
private final String sourceDisk;
private final CustomerEncryptionKey sourceDiskEncryptionKey;
private final String sourceDiskId;
@@ -81,6 +82,7 @@ private Image() {
this.name = null;
this.rawDisk = null;
this.selfLink = null;
+ this.shieldedInstanceInitialState = null;
this.sourceDisk = null;
this.sourceDiskEncryptionKey = null;
this.sourceDiskId = null;
@@ -113,6 +115,7 @@ private Image(
String name,
RawDisk rawDisk,
String selfLink,
+ InitialStateConfig shieldedInstanceInitialState,
String sourceDisk,
CustomerEncryptionKey sourceDiskEncryptionKey,
String sourceDiskId,
@@ -142,6 +145,7 @@ private Image(
this.name = name;
this.rawDisk = rawDisk;
this.selfLink = selfLink;
+ this.shieldedInstanceInitialState = shieldedInstanceInitialState;
this.sourceDisk = sourceDisk;
this.sourceDiskEncryptionKey = sourceDiskEncryptionKey;
this.sourceDiskId = sourceDiskId;
@@ -209,6 +213,9 @@ public Object getFieldValue(String fieldName) {
if ("selfLink".equals(fieldName)) {
return selfLink;
}
+ if ("shieldedInstanceInitialState".equals(fieldName)) {
+ return shieldedInstanceInitialState;
+ }
if ("sourceDisk".equals(fieldName)) {
return sourceDisk;
}
@@ -387,6 +394,11 @@ public String getSelfLink() {
return selfLink;
}
+ /** Set the secure boot keys of shielded instance. */
+ public InitialStateConfig getShieldedInstanceInitialState() {
+ return shieldedInstanceInitialState;
+ }
+
/**
* URL of the source disk used to create this image. This can be a full or valid partial URL. You
* must provide either this property or the rawDisk.source property but not both to create an
@@ -526,6 +538,7 @@ public static class Builder {
private String name;
private RawDisk rawDisk;
private String selfLink;
+ private InitialStateConfig shieldedInstanceInitialState;
private String sourceDisk;
private CustomerEncryptionKey sourceDiskEncryptionKey;
private String sourceDiskId;
@@ -594,6 +607,9 @@ public Builder mergeFrom(Image other) {
if (other.getSelfLink() != null) {
this.selfLink = other.selfLink;
}
+ if (other.getShieldedInstanceInitialState() != null) {
+ this.shieldedInstanceInitialState = other.shieldedInstanceInitialState;
+ }
if (other.getSourceDisk() != null) {
this.sourceDisk = other.sourceDisk;
}
@@ -651,6 +667,7 @@ public Builder mergeFrom(Image other) {
this.name = source.name;
this.rawDisk = source.rawDisk;
this.selfLink = source.selfLink;
+ this.shieldedInstanceInitialState = source.shieldedInstanceInitialState;
this.sourceDisk = source.sourceDisk;
this.sourceDiskEncryptionKey = source.sourceDiskEncryptionKey;
this.sourceDiskId = source.sourceDiskId;
@@ -965,6 +982,18 @@ public Builder setSelfLink(String selfLink) {
return this;
}
+ /** Set the secure boot keys of shielded instance. */
+ public InitialStateConfig getShieldedInstanceInitialState() {
+ return shieldedInstanceInitialState;
+ }
+
+ /** Set the secure boot keys of shielded instance. */
+ public Builder setShieldedInstanceInitialState(
+ InitialStateConfig shieldedInstanceInitialState) {
+ this.shieldedInstanceInitialState = shieldedInstanceInitialState;
+ return this;
+ }
+
/**
* URL of the source disk used to create this image. This can be a full or valid partial URL.
* You must provide either this property or the rawDisk.source property but not both to create
@@ -1208,6 +1237,7 @@ public Image build() {
name,
rawDisk,
selfLink,
+ shieldedInstanceInitialState,
sourceDisk,
sourceDiskEncryptionKey,
sourceDiskId,
@@ -1241,6 +1271,7 @@ public Builder clone() {
newBuilder.setName(this.name);
newBuilder.setRawDisk(this.rawDisk);
newBuilder.setSelfLink(this.selfLink);
+ newBuilder.setShieldedInstanceInitialState(this.shieldedInstanceInitialState);
newBuilder.setSourceDisk(this.sourceDisk);
newBuilder.setSourceDiskEncryptionKey(this.sourceDiskEncryptionKey);
newBuilder.setSourceDiskId(this.sourceDiskId);
@@ -1311,6 +1342,9 @@ public String toString() {
+ "selfLink="
+ selfLink
+ ", "
+ + "shieldedInstanceInitialState="
+ + shieldedInstanceInitialState
+ + ", "
+ "sourceDisk="
+ sourceDisk
+ ", "
@@ -1373,6 +1407,8 @@ public boolean equals(Object o) {
&& Objects.equals(this.name, that.getName())
&& Objects.equals(this.rawDisk, that.getRawDisk())
&& Objects.equals(this.selfLink, that.getSelfLink())
+ && Objects.equals(
+ this.shieldedInstanceInitialState, that.getShieldedInstanceInitialState())
&& Objects.equals(this.sourceDisk, that.getSourceDisk())
&& Objects.equals(this.sourceDiskEncryptionKey, that.getSourceDiskEncryptionKey())
&& Objects.equals(this.sourceDiskId, that.getSourceDiskId())
@@ -1409,6 +1445,7 @@ public int hashCode() {
name,
rawDisk,
selfLink,
+ shieldedInstanceInitialState,
sourceDisk,
sourceDiskEncryptionKey,
sourceDiskId,
diff --git a/src/main/java/com/google/cloud/compute/v1/InitialStateConfig.java b/src/main/java/com/google/cloud/compute/v1/InitialStateConfig.java
new file mode 100644
index 000000000..f3d8f2bca
--- /dev/null
+++ b/src/main/java/com/google/cloud/compute/v1/InitialStateConfig.java
@@ -0,0 +1,293 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+package com.google.cloud.compute.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.ApiMessage;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Objects;
+import javax.annotation.Generated;
+import javax.annotation.Nullable;
+
+@Generated("by GAPIC")
+@BetaApi
+/** Initial State for shielded instance, these are public keys which are safe to store in public */
+public final class InitialStateConfig implements ApiMessage {
+ private final List dbs;
+ private final List dbxs;
+ private final List keks;
+ private final FileContentBuffer pk;
+
+ private InitialStateConfig() {
+ this.dbs = null;
+ this.dbxs = null;
+ this.keks = null;
+ this.pk = null;
+ }
+
+ private InitialStateConfig(
+ List dbs,
+ List dbxs,
+ List keks,
+ FileContentBuffer pk) {
+ this.dbs = dbs;
+ this.dbxs = dbxs;
+ this.keks = keks;
+ this.pk = pk;
+ }
+
+ @Override
+ public Object getFieldValue(String fieldName) {
+ if ("dbs".equals(fieldName)) {
+ return dbs;
+ }
+ if ("dbxs".equals(fieldName)) {
+ return dbxs;
+ }
+ if ("keks".equals(fieldName)) {
+ return keks;
+ }
+ if ("pk".equals(fieldName)) {
+ return pk;
+ }
+ return null;
+ }
+
+ @Nullable
+ @Override
+ public ApiMessage getApiMessageRequestBody() {
+ return null;
+ }
+
+ @Nullable
+ @Override
+ /**
+ * The fields that should be serialized (even if they have empty values). If the containing
+ * message object has a non-null fieldmask, then all the fields in the field mask (and only those
+ * fields in the field mask) will be serialized. If the containing object does not have a
+ * fieldmask, then only non-empty fields will be serialized.
+ */
+ public List getFieldMask() {
+ return null;
+ }
+
+ /** The Key Database (db). */
+ public List getDbsList() {
+ return dbs;
+ }
+
+ /** The forbidden key database (dbx). */
+ public List getDbxsList() {
+ return dbxs;
+ }
+
+ /** The Key Exchange Key (KEK). */
+ public List getKeksList() {
+ return keks;
+ }
+
+ /** The Platform Key (PK). */
+ public FileContentBuffer getPk() {
+ return pk;
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(InitialStateConfig prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ public static InitialStateConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final InitialStateConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new InitialStateConfig();
+ }
+
+ public static class Builder {
+ private List dbs;
+ private List dbxs;
+ private List keks;
+ private FileContentBuffer pk;
+
+ Builder() {}
+
+ public Builder mergeFrom(InitialStateConfig other) {
+ if (other == InitialStateConfig.getDefaultInstance()) return this;
+ if (other.getDbsList() != null) {
+ this.dbs = other.dbs;
+ }
+ if (other.getDbxsList() != null) {
+ this.dbxs = other.dbxs;
+ }
+ if (other.getKeksList() != null) {
+ this.keks = other.keks;
+ }
+ if (other.getPk() != null) {
+ this.pk = other.pk;
+ }
+ return this;
+ }
+
+ Builder(InitialStateConfig source) {
+ this.dbs = source.dbs;
+ this.dbxs = source.dbxs;
+ this.keks = source.keks;
+ this.pk = source.pk;
+ }
+
+ /** The Key Database (db). */
+ public List getDbsList() {
+ return dbs;
+ }
+
+ /** The Key Database (db). */
+ public Builder addAllDbs(List dbs) {
+ if (this.dbs == null) {
+ this.dbs = new LinkedList<>();
+ }
+ this.dbs.addAll(dbs);
+ return this;
+ }
+
+ /** The Key Database (db). */
+ public Builder addDbs(FileContentBuffer dbs) {
+ if (this.dbs == null) {
+ this.dbs = new LinkedList<>();
+ }
+ this.dbs.add(dbs);
+ return this;
+ }
+
+ /** The forbidden key database (dbx). */
+ public List getDbxsList() {
+ return dbxs;
+ }
+
+ /** The forbidden key database (dbx). */
+ public Builder addAllDbxs(List dbxs) {
+ if (this.dbxs == null) {
+ this.dbxs = new LinkedList<>();
+ }
+ this.dbxs.addAll(dbxs);
+ return this;
+ }
+
+ /** The forbidden key database (dbx). */
+ public Builder addDbxs(FileContentBuffer dbxs) {
+ if (this.dbxs == null) {
+ this.dbxs = new LinkedList<>();
+ }
+ this.dbxs.add(dbxs);
+ return this;
+ }
+
+ /** The Key Exchange Key (KEK). */
+ public List getKeksList() {
+ return keks;
+ }
+
+ /** The Key Exchange Key (KEK). */
+ public Builder addAllKeks(List keks) {
+ if (this.keks == null) {
+ this.keks = new LinkedList<>();
+ }
+ this.keks.addAll(keks);
+ return this;
+ }
+
+ /** The Key Exchange Key (KEK). */
+ public Builder addKeks(FileContentBuffer keks) {
+ if (this.keks == null) {
+ this.keks = new LinkedList<>();
+ }
+ this.keks.add(keks);
+ return this;
+ }
+
+ /** The Platform Key (PK). */
+ public FileContentBuffer getPk() {
+ return pk;
+ }
+
+ /** The Platform Key (PK). */
+ public Builder setPk(FileContentBuffer pk) {
+ this.pk = pk;
+ return this;
+ }
+
+ public InitialStateConfig build() {
+
+ return new InitialStateConfig(dbs, dbxs, keks, pk);
+ }
+
+ public Builder clone() {
+ Builder newBuilder = new Builder();
+ newBuilder.addAllDbs(this.dbs);
+ newBuilder.addAllDbxs(this.dbxs);
+ newBuilder.addAllKeks(this.keks);
+ newBuilder.setPk(this.pk);
+ return newBuilder;
+ }
+ }
+
+ @Override
+ public String toString() {
+ return "InitialStateConfig{"
+ + "dbs="
+ + dbs
+ + ", "
+ + "dbxs="
+ + dbxs
+ + ", "
+ + "keks="
+ + keks
+ + ", "
+ + "pk="
+ + pk
+ + "}";
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof InitialStateConfig) {
+ InitialStateConfig that = (InitialStateConfig) o;
+ return Objects.equals(this.dbs, that.getDbsList())
+ && Objects.equals(this.dbxs, that.getDbxsList())
+ && Objects.equals(this.keks, that.getKeksList())
+ && Objects.equals(this.pk, that.getPk());
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(dbs, dbxs, keks, pk);
+ }
+}
diff --git a/src/main/java/com/google/cloud/compute/v1/InsertAutoscalerHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/InsertAutoscalerHttpRequest.java
index 6f5ab324c..6beb00059 100644
--- a/src/main/java/com/google/cloud/compute/v1/InsertAutoscalerHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/InsertAutoscalerHttpRequest.java
@@ -139,8 +139,8 @@ public String getAccessToken() {
*
* Google Compute Engine has two Autoscaler resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/autoscalers) *
- * [Regional](/compute/docs/reference/rest/latest/regionAutoscalers)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/autoscalers) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionAutoscalers)
*
*
Use autoscalers to automatically add or delete instances from a managed instance group
* according to your defined autoscaling policy. For more information, read Autoscaling Groups of
@@ -313,8 +313,8 @@ public Builder setAccessToken(String access_token) {
*
*
Google Compute Engine has two Autoscaler resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/autoscalers) *
- * [Regional](/compute/docs/reference/rest/latest/regionAutoscalers)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/autoscalers) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionAutoscalers)
*
*
Use autoscalers to automatically add or delete instances from a managed instance group
* according to your defined autoscaling policy. For more information, read Autoscaling Groups
@@ -334,8 +334,8 @@ public Autoscaler getAutoscalerResource() {
*
*
Google Compute Engine has two Autoscaler resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/autoscalers) *
- * [Regional](/compute/docs/reference/rest/latest/regionAutoscalers)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/autoscalers) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionAutoscalers)
*
*
Use autoscalers to automatically add or delete instances from a managed instance group
* according to your defined autoscaling policy. For more information, read Autoscaling Groups
diff --git a/src/main/java/com/google/cloud/compute/v1/InsertBackendServiceHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/InsertBackendServiceHttpRequest.java
index 8f6d104d2..9d25ebdb8 100644
--- a/src/main/java/com/google/cloud/compute/v1/InsertBackendServiceHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/InsertBackendServiceHttpRequest.java
@@ -27,8 +27,8 @@
/**
* Request object for method compute.backendServices.insert. Creates a BackendService resource in
* the specified project using the data included in the request. There are several restrictions and
- * guidelines to keep in mind when creating a backend service. Read Restrictions and Guidelines for
- * more information.
+ * guidelines to keep in mind when creating a backend service. Read Understanding backend services
+ * for more information.
*/
public final class InsertBackendServiceHttpRequest implements ApiMessage {
private final String access_token;
@@ -144,8 +144,8 @@ public String getAccessToken() {
*
*
Backend services in Google Compute Engine can be either regionally or globally scoped.
*
- *
* [Global](/compute/docs/reference/rest/latest/backendServices) *
- * [Regional](/compute/docs/reference/rest/latest/regionBackendServices)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/backendServices) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionBackendServices)
*
*
For more information, read Backend Services.
*
@@ -316,8 +316,8 @@ public Builder setAccessToken(String access_token) {
*
*
Backend services in Google Compute Engine can be either regionally or globally scoped.
*
- *
* [Global](/compute/docs/reference/rest/latest/backendServices) *
- * [Regional](/compute/docs/reference/rest/latest/regionBackendServices)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/backendServices) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionBackendServices)
*
*
For more information, read Backend Services.
*
@@ -335,8 +335,8 @@ public BackendService getBackendServiceResource() {
*
*
Backend services in Google Compute Engine can be either regionally or globally scoped.
*
- *
* [Global](/compute/docs/reference/rest/latest/backendServices) *
- * [Regional](/compute/docs/reference/rest/latest/regionBackendServices)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/backendServices) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionBackendServices)
*
*
For more information, read Backend Services.
*
diff --git a/src/main/java/com/google/cloud/compute/v1/InsertDiskHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/InsertDiskHttpRequest.java
index 353f16c8c..49d05c1b2 100644
--- a/src/main/java/com/google/cloud/compute/v1/InsertDiskHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/InsertDiskHttpRequest.java
@@ -153,8 +153,8 @@ public String getCallback() {
*
*
Google Compute Engine has two Disk resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/disks) *
- * [Regional](/compute/docs/reference/rest/latest/regionDisks)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/disks) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionDisks)
*
*
Persistent disks are required for running your VM instances. Create both boot and non-boot
* (data) persistent disks. For more information, read Persistent Disks. For more storage options,
@@ -345,8 +345,8 @@ public Builder setCallback(String callback) {
*
*
Google Compute Engine has two Disk resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/disks) *
- * [Regional](/compute/docs/reference/rest/latest/regionDisks)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/disks) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionDisks)
*
*
Persistent disks are required for running your VM instances. Create both boot and non-boot
* (data) persistent disks. For more information, read Persistent Disks. For more storage
@@ -368,8 +368,8 @@ public Disk getDiskResource() {
*
*
Google Compute Engine has two Disk resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/disks) *
- * [Regional](/compute/docs/reference/rest/latest/regionDisks)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/disks) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionDisks)
*
*
Persistent disks are required for running your VM instances. Create both boot and non-boot
* (data) persistent disks. For more information, read Persistent Disks. For more storage
diff --git a/src/main/java/com/google/cloud/compute/v1/InsertForwardingRuleHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/InsertForwardingRuleHttpRequest.java
index 699d53299..421c58dbb 100644
--- a/src/main/java/com/google/cloud/compute/v1/InsertForwardingRuleHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/InsertForwardingRuleHttpRequest.java
@@ -149,8 +149,8 @@ public String getFields() {
*
*
Forwarding rule resources in GCP can be either regional or global in scope:
*
- *
* [Global](/compute/docs/reference/rest/latest/globalForwardingRules) *
- * [Regional](/compute/docs/reference/rest/latest/forwardingRules)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/globalForwardingRules) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/forwardingRules)
*
*
A forwarding rule and its corresponding IP address represent the frontend configuration of a
* Google Cloud Platform load balancer. Forwarding rules can also reference target instances and
@@ -336,8 +336,8 @@ public Builder setFields(String fields) {
*
*
Forwarding rule resources in GCP can be either regional or global in scope:
*
- *
* [Global](/compute/docs/reference/rest/latest/globalForwardingRules) *
- * [Regional](/compute/docs/reference/rest/latest/forwardingRules)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/globalForwardingRules) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/forwardingRules)
*
*
A forwarding rule and its corresponding IP address represent the frontend configuration of
* a Google Cloud Platform load balancer. Forwarding rules can also reference target instances
@@ -358,8 +358,8 @@ public ForwardingRule getForwardingRuleResource() {
*
*
Forwarding rule resources in GCP can be either regional or global in scope:
*
- *
* [Global](/compute/docs/reference/rest/latest/globalForwardingRules) *
- * [Regional](/compute/docs/reference/rest/latest/forwardingRules)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/globalForwardingRules) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/forwardingRules)
*
*
A forwarding rule and its corresponding IP address represent the frontend configuration of
* a Google Cloud Platform load balancer. Forwarding rules can also reference target instances
diff --git a/src/main/java/com/google/cloud/compute/v1/InsertGlobalForwardingRuleHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/InsertGlobalForwardingRuleHttpRequest.java
index c41b154e5..3b436b808 100644
--- a/src/main/java/com/google/cloud/compute/v1/InsertGlobalForwardingRuleHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/InsertGlobalForwardingRuleHttpRequest.java
@@ -149,8 +149,8 @@ public String getFields() {
*
*
Forwarding rule resources in GCP can be either regional or global in scope:
*
- *
* [Global](/compute/docs/reference/rest/latest/globalForwardingRules) *
- * [Regional](/compute/docs/reference/rest/latest/forwardingRules)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/globalForwardingRules) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/forwardingRules)
*
*
A forwarding rule and its corresponding IP address represent the frontend configuration of a
* Google Cloud Platform load balancer. Forwarding rules can also reference target instances and
@@ -336,8 +336,8 @@ public Builder setFields(String fields) {
*
*
Forwarding rule resources in GCP can be either regional or global in scope:
*
- *
* [Global](/compute/docs/reference/rest/latest/globalForwardingRules) *
- * [Regional](/compute/docs/reference/rest/latest/forwardingRules)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/globalForwardingRules) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/forwardingRules)
*
*
A forwarding rule and its corresponding IP address represent the frontend configuration of
* a Google Cloud Platform load balancer. Forwarding rules can also reference target instances
@@ -358,8 +358,8 @@ public ForwardingRule getForwardingRuleResource() {
*
*
Forwarding rule resources in GCP can be either regional or global in scope:
*
- *
* [Global](/compute/docs/reference/rest/latest/globalForwardingRules) *
- * [Regional](/compute/docs/reference/rest/latest/forwardingRules)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/globalForwardingRules) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/forwardingRules)
*
*
A forwarding rule and its corresponding IP address represent the frontend configuration of
* a Google Cloud Platform load balancer. Forwarding rules can also reference target instances
diff --git a/src/main/java/com/google/cloud/compute/v1/InsertGlobalNetworkEndpointGroupHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/InsertGlobalNetworkEndpointGroupHttpRequest.java
new file mode 100644
index 000000000..d476a99d0
--- /dev/null
+++ b/src/main/java/com/google/cloud/compute/v1/InsertGlobalNetworkEndpointGroupHttpRequest.java
@@ -0,0 +1,557 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+package com.google.cloud.compute.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.ApiMessage;
+import java.util.List;
+import java.util.Objects;
+import javax.annotation.Generated;
+import javax.annotation.Nullable;
+
+@Generated("by GAPIC")
+@BetaApi
+/**
+ * Request object for method compute.globalNetworkEndpointGroups.insert. Creates a network endpoint
+ * group in the specified project using the parameters that are included in the request.
+ */
+public final class InsertGlobalNetworkEndpointGroupHttpRequest implements ApiMessage {
+ private final String access_token;
+ private final String callback;
+ private final String fields;
+ private final String key;
+ private final NetworkEndpointGroup networkEndpointGroupResource;
+ private final String prettyPrint;
+ private final String project;
+ private final String quotaUser;
+ private final String requestId;
+ private final String userIp;
+
+ private InsertGlobalNetworkEndpointGroupHttpRequest() {
+ this.access_token = null;
+ this.callback = null;
+ this.fields = null;
+ this.key = null;
+ this.networkEndpointGroupResource = null;
+ this.prettyPrint = null;
+ this.project = null;
+ this.quotaUser = null;
+ this.requestId = null;
+ this.userIp = null;
+ }
+
+ private InsertGlobalNetworkEndpointGroupHttpRequest(
+ String access_token,
+ String callback,
+ String fields,
+ String key,
+ NetworkEndpointGroup networkEndpointGroupResource,
+ String prettyPrint,
+ String project,
+ String quotaUser,
+ String requestId,
+ String userIp) {
+ this.access_token = access_token;
+ this.callback = callback;
+ this.fields = fields;
+ this.key = key;
+ this.networkEndpointGroupResource = networkEndpointGroupResource;
+ this.prettyPrint = prettyPrint;
+ this.project = project;
+ this.quotaUser = quotaUser;
+ this.requestId = requestId;
+ this.userIp = userIp;
+ }
+
+ @Override
+ public Object getFieldValue(String fieldName) {
+ if ("access_token".equals(fieldName)) {
+ return access_token;
+ }
+ if ("callback".equals(fieldName)) {
+ return callback;
+ }
+ if ("fields".equals(fieldName)) {
+ return fields;
+ }
+ if ("key".equals(fieldName)) {
+ return key;
+ }
+ if ("networkEndpointGroupResource".equals(fieldName)) {
+ return networkEndpointGroupResource;
+ }
+ if ("prettyPrint".equals(fieldName)) {
+ return prettyPrint;
+ }
+ if ("project".equals(fieldName)) {
+ return project;
+ }
+ if ("quotaUser".equals(fieldName)) {
+ return quotaUser;
+ }
+ if ("requestId".equals(fieldName)) {
+ return requestId;
+ }
+ if ("userIp".equals(fieldName)) {
+ return userIp;
+ }
+ return null;
+ }
+
+ @Nullable
+ @Override
+ public NetworkEndpointGroup getApiMessageRequestBody() {
+ return networkEndpointGroupResource;
+ }
+
+ @Nullable
+ @Override
+ /**
+ * The fields that should be serialized (even if they have empty values). If the containing
+ * message object has a non-null fieldmask, then all the fields in the field mask (and only those
+ * fields in the field mask) will be serialized. If the containing object does not have a
+ * fieldmask, then only non-empty fields will be serialized.
+ */
+ public List getFieldMask() {
+ return null;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /**
+ * Represents a collection of network endpoints.
+ *
+ * For more information read Network endpoint groups overview. (== resource_for
+ * {$api_version}.networkEndpointGroups ==) Next ID: 21
+ */
+ public NetworkEndpointGroup getNetworkEndpointGroupResource() {
+ return networkEndpointGroupResource;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /**
+ * Project ID for this request. It must have the format `{project}/global/networkEndpointGroups`.
+ * \`{project}\` must start with a letter, and contain only letters (\`[A-Za-z]\`), numbers
+ * (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`), periods (\`.\`), tildes (\`~\`), plus
+ * (\`+\`) or percent * signs (\`%\`). It must be between 3 and 255 characters in length, and
+ * it * must not start with \`"goog"\`.
+ */
+ public String getProject() {
+ return project;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /**
+ * An optional request ID to identify requests. Specify a unique request ID so that if you must
+ * retry your request, the server will know to ignore the request if it has already been
+ * completed.
+ *
+ *
For example, consider a situation where you make an initial request and the request times
+ * out. If you make the request again with the same request ID, the server can check if original
+ * operation with the same request ID was received, and if so, will ignore the second request.
+ * This prevents clients from accidentally creating duplicate commitments.
+ *
+ *
The request ID must be a valid UUID with the exception that zero UUID is not supported
+ * (00000000-0000-0000-0000-000000000000).
+ */
+ public String getRequestId() {
+ return requestId;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(InsertGlobalNetworkEndpointGroupHttpRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ public static InsertGlobalNetworkEndpointGroupHttpRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final InsertGlobalNetworkEndpointGroupHttpRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new InsertGlobalNetworkEndpointGroupHttpRequest();
+ }
+
+ public static class Builder {
+ private String access_token;
+ private String callback;
+ private String fields;
+ private String key;
+ private NetworkEndpointGroup networkEndpointGroupResource;
+ private String prettyPrint;
+ private String project;
+ private String quotaUser;
+ private String requestId;
+ private String userIp;
+
+ Builder() {}
+
+ public Builder mergeFrom(InsertGlobalNetworkEndpointGroupHttpRequest other) {
+ if (other == InsertGlobalNetworkEndpointGroupHttpRequest.getDefaultInstance()) return this;
+ if (other.getAccessToken() != null) {
+ this.access_token = other.access_token;
+ }
+ if (other.getCallback() != null) {
+ this.callback = other.callback;
+ }
+ if (other.getFields() != null) {
+ this.fields = other.fields;
+ }
+ if (other.getKey() != null) {
+ this.key = other.key;
+ }
+ if (other.getNetworkEndpointGroupResource() != null) {
+ this.networkEndpointGroupResource = other.networkEndpointGroupResource;
+ }
+ if (other.getPrettyPrint() != null) {
+ this.prettyPrint = other.prettyPrint;
+ }
+ if (other.getProject() != null) {
+ this.project = other.project;
+ }
+ if (other.getQuotaUser() != null) {
+ this.quotaUser = other.quotaUser;
+ }
+ if (other.getRequestId() != null) {
+ this.requestId = other.requestId;
+ }
+ if (other.getUserIp() != null) {
+ this.userIp = other.userIp;
+ }
+ return this;
+ }
+
+ Builder(InsertGlobalNetworkEndpointGroupHttpRequest source) {
+ this.access_token = source.access_token;
+ this.callback = source.callback;
+ this.fields = source.fields;
+ this.key = source.key;
+ this.networkEndpointGroupResource = source.networkEndpointGroupResource;
+ this.prettyPrint = source.prettyPrint;
+ this.project = source.project;
+ this.quotaUser = source.quotaUser;
+ this.requestId = source.requestId;
+ this.userIp = source.userIp;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public String getAccessToken() {
+ return access_token;
+ }
+
+ /** OAuth 2.0 token for the current user. */
+ public Builder setAccessToken(String access_token) {
+ this.access_token = access_token;
+ return this;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public String getCallback() {
+ return callback;
+ }
+
+ /** Name of the JavaScript callback function that handles the response. */
+ public Builder setCallback(String callback) {
+ this.callback = callback;
+ return this;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public String getFields() {
+ return fields;
+ }
+
+ /** Selector specifying a subset of fields to include in the response. */
+ public Builder setFields(String fields) {
+ this.fields = fields;
+ return this;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public String getKey() {
+ return key;
+ }
+
+ /** API key. Required unless you provide an OAuth 2.0 token. */
+ public Builder setKey(String key) {
+ this.key = key;
+ return this;
+ }
+
+ /**
+ * Represents a collection of network endpoints.
+ *
+ *
For more information read Network endpoint groups overview. (== resource_for
+ * {$api_version}.networkEndpointGroups ==) Next ID: 21
+ */
+ public NetworkEndpointGroup getNetworkEndpointGroupResource() {
+ return networkEndpointGroupResource;
+ }
+
+ /**
+ * Represents a collection of network endpoints.
+ *
+ *
For more information read Network endpoint groups overview. (== resource_for
+ * {$api_version}.networkEndpointGroups ==) Next ID: 21
+ */
+ public Builder setNetworkEndpointGroupResource(
+ NetworkEndpointGroup networkEndpointGroupResource) {
+ this.networkEndpointGroupResource = networkEndpointGroupResource;
+ return this;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public String getPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /** Returns response with indentations and line breaks. */
+ public Builder setPrettyPrint(String prettyPrint) {
+ this.prettyPrint = prettyPrint;
+ return this;
+ }
+
+ /**
+ * Project ID for this request. It must have the format
+ * `{project}/global/networkEndpointGroups`. \`{project}\` must start with a letter, and contain
+ * only letters (\`[A-Za-z]\`), numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`),
+ * periods (\`.\`), tildes (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be
+ * between 3 and 255 characters in length, and it * must not start with \`"goog"\`.
+ */
+ public String getProject() {
+ return project;
+ }
+
+ /**
+ * Project ID for this request. It must have the format
+ * `{project}/global/networkEndpointGroups`. \`{project}\` must start with a letter, and contain
+ * only letters (\`[A-Za-z]\`), numbers (\`[0-9]\`), dashes (\`-\`), * underscores (\`_\`),
+ * periods (\`.\`), tildes (\`~\`), plus (\`+\`) or percent * signs (\`%\`). It must be
+ * between 3 and 255 characters in length, and it * must not start with \`"goog"\`.
+ */
+ public Builder setProject(String project) {
+ this.project = project;
+ return this;
+ }
+
+ /** Alternative to userIp. */
+ public String getQuotaUser() {
+ return quotaUser;
+ }
+
+ /** Alternative to userIp. */
+ public Builder setQuotaUser(String quotaUser) {
+ this.quotaUser = quotaUser;
+ 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).
+ */
+ public 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 Builder setRequestId(String requestId) {
+ this.requestId = requestId;
+ return this;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public String getUserIp() {
+ return userIp;
+ }
+
+ /** IP address of the end user for whom the API call is being made. */
+ public Builder setUserIp(String userIp) {
+ this.userIp = userIp;
+ return this;
+ }
+
+ public InsertGlobalNetworkEndpointGroupHttpRequest build() {
+ String missing = "";
+
+ if (project == null) {
+ missing += " project";
+ }
+
+ if (!missing.isEmpty()) {
+ throw new IllegalStateException("Missing required properties:" + missing);
+ }
+ return new InsertGlobalNetworkEndpointGroupHttpRequest(
+ access_token,
+ callback,
+ fields,
+ key,
+ networkEndpointGroupResource,
+ prettyPrint,
+ project,
+ quotaUser,
+ requestId,
+ userIp);
+ }
+
+ public Builder clone() {
+ Builder newBuilder = new Builder();
+ newBuilder.setAccessToken(this.access_token);
+ newBuilder.setCallback(this.callback);
+ newBuilder.setFields(this.fields);
+ newBuilder.setKey(this.key);
+ newBuilder.setNetworkEndpointGroupResource(this.networkEndpointGroupResource);
+ newBuilder.setPrettyPrint(this.prettyPrint);
+ newBuilder.setProject(this.project);
+ newBuilder.setQuotaUser(this.quotaUser);
+ newBuilder.setRequestId(this.requestId);
+ newBuilder.setUserIp(this.userIp);
+ return newBuilder;
+ }
+ }
+
+ @Override
+ public String toString() {
+ return "InsertGlobalNetworkEndpointGroupHttpRequest{"
+ + "access_token="
+ + access_token
+ + ", "
+ + "callback="
+ + callback
+ + ", "
+ + "fields="
+ + fields
+ + ", "
+ + "key="
+ + key
+ + ", "
+ + "networkEndpointGroupResource="
+ + networkEndpointGroupResource
+ + ", "
+ + "prettyPrint="
+ + prettyPrint
+ + ", "
+ + "project="
+ + project
+ + ", "
+ + "quotaUser="
+ + quotaUser
+ + ", "
+ + "requestId="
+ + requestId
+ + ", "
+ + "userIp="
+ + userIp
+ + "}";
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof InsertGlobalNetworkEndpointGroupHttpRequest) {
+ InsertGlobalNetworkEndpointGroupHttpRequest that =
+ (InsertGlobalNetworkEndpointGroupHttpRequest) o;
+ return Objects.equals(this.access_token, that.getAccessToken())
+ && Objects.equals(this.callback, that.getCallback())
+ && Objects.equals(this.fields, that.getFields())
+ && Objects.equals(this.key, that.getKey())
+ && Objects.equals(
+ this.networkEndpointGroupResource, that.getNetworkEndpointGroupResource())
+ && Objects.equals(this.prettyPrint, that.getPrettyPrint())
+ && Objects.equals(this.project, that.getProject())
+ && Objects.equals(this.quotaUser, that.getQuotaUser())
+ && Objects.equals(this.requestId, that.getRequestId())
+ && Objects.equals(this.userIp, that.getUserIp());
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ access_token,
+ callback,
+ fields,
+ key,
+ networkEndpointGroupResource,
+ prettyPrint,
+ project,
+ quotaUser,
+ requestId,
+ userIp);
+ }
+}
diff --git a/src/main/java/com/google/cloud/compute/v1/InsertHealthCheckHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/InsertHealthCheckHttpRequest.java
index daab8d3b5..8bd4b64e5 100644
--- a/src/main/java/com/google/cloud/compute/v1/InsertHealthCheckHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/InsertHealthCheckHttpRequest.java
@@ -149,8 +149,8 @@ public String getFields() {
*
*
Google Compute Engine has two Health Check resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/healthChecks) *
- * [Regional](/compute/docs/reference/rest/latest/regionHealthChecks)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
*
*
Internal HTTP(S) load balancers use regional health checks. All other types of GCP load
* balancers and managed instance group auto-healing use global health checks. For more
@@ -333,8 +333,8 @@ public Builder setFields(String fields) {
*
*
Google Compute Engine has two Health Check resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/healthChecks) *
- * [Regional](/compute/docs/reference/rest/latest/regionHealthChecks)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
*
*
Internal HTTP(S) load balancers use regional health checks. All other types of GCP load
* balancers and managed instance group auto-healing use global health checks. For more
@@ -352,8 +352,8 @@ public HealthCheck getHealthCheckResource() {
*
*
Google Compute Engine has two Health Check resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/healthChecks) *
- * [Regional](/compute/docs/reference/rest/latest/regionHealthChecks)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
*
*
Internal HTTP(S) load balancers use regional health checks. All other types of GCP load
* balancers and managed instance group auto-healing use global health checks. For more
diff --git a/src/main/java/com/google/cloud/compute/v1/InsertLicenseHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/InsertLicenseHttpRequest.java
index 94f7f513b..bcd3cf9e4 100644
--- a/src/main/java/com/google/cloud/compute/v1/InsertLicenseHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/InsertLicenseHttpRequest.java
@@ -26,7 +26,8 @@
@BetaApi
/**
* Request object for method compute.licenses.insert. Create a License resource in the specified
- * project.
+ * project. Caution This resource is intended for use only by third-party partners who are creating
+ * Cloud Marketplace images.
*/
public final class InsertLicenseHttpRequest implements ApiMessage {
private final String access_token;
@@ -149,7 +150,13 @@ public String getKey() {
return key;
}
- /** A license resource. */
+ /**
+ * Represents a License resource.
+ *
+ *
A License represents billing and aggregate usage data for public and marketplace images.
+ * Caution This resource is intended for use only by third-party partners who are creating Cloud
+ * Marketplace images. (== resource_for {$api_version}.licenses ==)
+ */
public License getLicenseResource() {
return licenseResource;
}
@@ -325,12 +332,24 @@ public Builder setKey(String key) {
return this;
}
- /** A license resource. */
+ /**
+ * Represents a License resource.
+ *
+ *
A License represents billing and aggregate usage data for public and marketplace images.
+ * Caution This resource is intended for use only by third-party partners who are creating Cloud
+ * Marketplace images. (== resource_for {$api_version}.licenses ==)
+ */
public License getLicenseResource() {
return licenseResource;
}
- /** A license resource. */
+ /**
+ * Represents a License resource.
+ *
+ *
A License represents billing and aggregate usage data for public and marketplace images.
+ * Caution This resource is intended for use only by third-party partners who are creating Cloud
+ * Marketplace images. (== resource_for {$api_version}.licenses ==)
+ */
public Builder setLicenseResource(License licenseResource) {
this.licenseResource = licenseResource;
return this;
diff --git a/src/main/java/com/google/cloud/compute/v1/InsertNetworkEndpointGroupHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/InsertNetworkEndpointGroupHttpRequest.java
index b9a8c3fb0..7376293a6 100644
--- a/src/main/java/com/google/cloud/compute/v1/InsertNetworkEndpointGroupHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/InsertNetworkEndpointGroupHttpRequest.java
@@ -152,8 +152,8 @@ public String getKey() {
/**
* Represents a collection of network endpoints.
*
- *
For more information read Setting up network endpoint groups in load balancing. (==
- * resource_for {$api_version}.networkEndpointGroups ==) Next ID: 21
+ *
For more information read Network endpoint groups overview. (== resource_for
+ * {$api_version}.networkEndpointGroups ==) Next ID: 21
*/
public NetworkEndpointGroup getNetworkEndpointGroupResource() {
return networkEndpointGroupResource;
@@ -334,8 +334,8 @@ public Builder setKey(String key) {
/**
* Represents a collection of network endpoints.
*
- *
For more information read Setting up network endpoint groups in load balancing. (==
- * resource_for {$api_version}.networkEndpointGroups ==) Next ID: 21
+ *
For more information read Network endpoint groups overview. (== resource_for
+ * {$api_version}.networkEndpointGroups ==) Next ID: 21
*/
public NetworkEndpointGroup getNetworkEndpointGroupResource() {
return networkEndpointGroupResource;
@@ -344,8 +344,8 @@ public NetworkEndpointGroup getNetworkEndpointGroupResource() {
/**
* Represents a collection of network endpoints.
*
- *
For more information read Setting up network endpoint groups in load balancing. (==
- * resource_for {$api_version}.networkEndpointGroups ==) Next ID: 21
+ *
For more information read Network endpoint groups overview. (== resource_for
+ * {$api_version}.networkEndpointGroups ==) Next ID: 21
*/
public Builder setNetworkEndpointGroupResource(
NetworkEndpointGroup networkEndpointGroupResource) {
diff --git a/src/main/java/com/google/cloud/compute/v1/InsertNodeTemplateHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/InsertNodeTemplateHttpRequest.java
index 517a7ac21..712a85b32 100644
--- a/src/main/java/com/google/cloud/compute/v1/InsertNodeTemplateHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/InsertNodeTemplateHttpRequest.java
@@ -154,7 +154,7 @@ public String getKey() {
*
*
You can use a template to define properties for nodes in a node group. For more information,
* read Creating node groups and instances. (== resource_for {$api_version}.nodeTemplates ==) (==
- * NextID: 18 ==)
+ * NextID: 19 ==)
*/
public NodeTemplate getNodeTemplateResource() {
return nodeTemplateResource;
@@ -336,7 +336,7 @@ public Builder setKey(String key) {
*
*
You can use a template to define properties for nodes in a node group. For more
* information, read Creating node groups and instances. (== resource_for
- * {$api_version}.nodeTemplates ==) (== NextID: 18 ==)
+ * {$api_version}.nodeTemplates ==) (== NextID: 19 ==)
*/
public NodeTemplate getNodeTemplateResource() {
return nodeTemplateResource;
@@ -347,7 +347,7 @@ public NodeTemplate getNodeTemplateResource() {
*
*
You can use a template to define properties for nodes in a node group. For more
* information, read Creating node groups and instances. (== resource_for
- * {$api_version}.nodeTemplates ==) (== NextID: 18 ==)
+ * {$api_version}.nodeTemplates ==) (== NextID: 19 ==)
*/
public Builder setNodeTemplateResource(NodeTemplate nodeTemplateResource) {
this.nodeTemplateResource = nodeTemplateResource;
diff --git a/src/main/java/com/google/cloud/compute/v1/InsertRegionAutoscalerHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/InsertRegionAutoscalerHttpRequest.java
index 1e7a01265..d4eacbf09 100644
--- a/src/main/java/com/google/cloud/compute/v1/InsertRegionAutoscalerHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/InsertRegionAutoscalerHttpRequest.java
@@ -139,8 +139,8 @@ public String getAccessToken() {
*
*
Google Compute Engine has two Autoscaler resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/autoscalers) *
- * [Regional](/compute/docs/reference/rest/latest/regionAutoscalers)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/autoscalers) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionAutoscalers)
*
*
Use autoscalers to automatically add or delete instances from a managed instance group
* according to your defined autoscaling policy. For more information, read Autoscaling Groups of
@@ -313,8 +313,8 @@ public Builder setAccessToken(String access_token) {
*
*
Google Compute Engine has two Autoscaler resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/autoscalers) *
- * [Regional](/compute/docs/reference/rest/latest/regionAutoscalers)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/autoscalers) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionAutoscalers)
*
*
Use autoscalers to automatically add or delete instances from a managed instance group
* according to your defined autoscaling policy. For more information, read Autoscaling Groups
@@ -334,8 +334,8 @@ public Autoscaler getAutoscalerResource() {
*
*
Google Compute Engine has two Autoscaler resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/autoscalers) *
- * [Regional](/compute/docs/reference/rest/latest/regionAutoscalers)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/autoscalers) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionAutoscalers)
*
*
Use autoscalers to automatically add or delete instances from a managed instance group
* according to your defined autoscaling policy. For more information, read Autoscaling Groups
diff --git a/src/main/java/com/google/cloud/compute/v1/InsertRegionBackendServiceHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/InsertRegionBackendServiceHttpRequest.java
index 2538f7d78..2a9e570a6 100644
--- a/src/main/java/com/google/cloud/compute/v1/InsertRegionBackendServiceHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/InsertRegionBackendServiceHttpRequest.java
@@ -28,7 +28,7 @@
* Request object for method compute.regionBackendServices.insert. Creates a regional BackendService
* resource in the specified project using the data included in the request. There are several
* restrictions and guidelines to keep in mind when creating a regional backend service. Read
- * Restrictions and Guidelines for more information.
+ * Understanding backend services for more information.
*/
public final class InsertRegionBackendServiceHttpRequest implements ApiMessage {
private final String access_token;
@@ -144,8 +144,8 @@ public String getAccessToken() {
*
*
Backend services in Google Compute Engine can be either regionally or globally scoped.
*
- *
* [Global](/compute/docs/reference/rest/latest/backendServices) *
- * [Regional](/compute/docs/reference/rest/latest/regionBackendServices)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/backendServices) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionBackendServices)
*
*
For more information, read Backend Services.
*
@@ -316,8 +316,8 @@ public Builder setAccessToken(String access_token) {
*
*
Backend services in Google Compute Engine can be either regionally or globally scoped.
*
- *
* [Global](/compute/docs/reference/rest/latest/backendServices) *
- * [Regional](/compute/docs/reference/rest/latest/regionBackendServices)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/backendServices) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionBackendServices)
*
*
For more information, read Backend Services.
*
@@ -335,8 +335,8 @@ public BackendService getBackendServiceResource() {
*
*
Backend services in Google Compute Engine can be either regionally or globally scoped.
*
- *
* [Global](/compute/docs/reference/rest/latest/backendServices) *
- * [Regional](/compute/docs/reference/rest/latest/regionBackendServices)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/backendServices) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionBackendServices)
*
*
For more information, read Backend Services.
*
diff --git a/src/main/java/com/google/cloud/compute/v1/InsertRegionDiskHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/InsertRegionDiskHttpRequest.java
index d8b729160..beef94dd5 100644
--- a/src/main/java/com/google/cloud/compute/v1/InsertRegionDiskHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/InsertRegionDiskHttpRequest.java
@@ -151,8 +151,8 @@ public String getCallback() {
*
*
Google Compute Engine has two Disk resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/disks) *
- * [Regional](/compute/docs/reference/rest/latest/regionDisks)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/disks) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionDisks)
*
*
Persistent disks are required for running your VM instances. Create both boot and non-boot
* (data) persistent disks. For more information, read Persistent Disks. For more storage options,
@@ -343,8 +343,8 @@ public Builder setCallback(String callback) {
*
*
Google Compute Engine has two Disk resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/disks) *
- * [Regional](/compute/docs/reference/rest/latest/regionDisks)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/disks) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionDisks)
*
*
Persistent disks are required for running your VM instances. Create both boot and non-boot
* (data) persistent disks. For more information, read Persistent Disks. For more storage
@@ -366,8 +366,8 @@ public Disk getDiskResource() {
*
*
Google Compute Engine has two Disk resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/disks) *
- * [Regional](/compute/docs/reference/rest/latest/regionDisks)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/disks) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionDisks)
*
*
Persistent disks are required for running your VM instances. Create both boot and non-boot
* (data) persistent disks. For more information, read Persistent Disks. For more storage
diff --git a/src/main/java/com/google/cloud/compute/v1/InsertRegionHealthCheckHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/InsertRegionHealthCheckHttpRequest.java
index 5cc2d9459..c13f95bb0 100644
--- a/src/main/java/com/google/cloud/compute/v1/InsertRegionHealthCheckHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/InsertRegionHealthCheckHttpRequest.java
@@ -149,8 +149,8 @@ public String getFields() {
*
*
Google Compute Engine has two Health Check resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/healthChecks) *
- * [Regional](/compute/docs/reference/rest/latest/regionHealthChecks)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
*
*
Internal HTTP(S) load balancers use regional health checks. All other types of GCP load
* balancers and managed instance group auto-healing use global health checks. For more
@@ -333,8 +333,8 @@ public Builder setFields(String fields) {
*
*
Google Compute Engine has two Health Check resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/healthChecks) *
- * [Regional](/compute/docs/reference/rest/latest/regionHealthChecks)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
*
*
Internal HTTP(S) load balancers use regional health checks. All other types of GCP load
* balancers and managed instance group auto-healing use global health checks. For more
@@ -352,8 +352,8 @@ public HealthCheck getHealthCheckResource() {
*
*
Google Compute Engine has two Health Check resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/healthChecks) *
- * [Regional](/compute/docs/reference/rest/latest/regionHealthChecks)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/healthChecks) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionHealthChecks)
*
*
Internal HTTP(S) load balancers use regional health checks. All other types of GCP load
* balancers and managed instance group auto-healing use global health checks. For more
diff --git a/src/main/java/com/google/cloud/compute/v1/InsertRegionSslCertificateHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/InsertRegionSslCertificateHttpRequest.java
index e5ad1d8c4..4ca7c2d72 100644
--- a/src/main/java/com/google/cloud/compute/v1/InsertRegionSslCertificateHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/InsertRegionSslCertificateHttpRequest.java
@@ -192,17 +192,19 @@ public String getRequestId() {
*
*
Google Compute Engine has two SSL Certificate resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/sslCertificates) *
- * [Regional](/compute/docs/reference/rest/latest/regionSslCertificates)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/sslCertificates) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionSslCertificates)
*
- *
- sslCertificates are used by: - external HTTPS load balancers - SSL proxy load balancers
+ *
The sslCertificates are used by: - external HTTPS load balancers - SSL proxy load balancers
*
- *
- regionSslCertificates are used by: - internal HTTPS load balancers
+ *
The regionSslCertificates are used by internal HTTPS load balancers.
*
- *
This SSL certificate resource also contains a private key. You can use SSL keys and
- * certificates to secure connections to a load balancer. For more information, read Creating and
- * Using SSL Certificates. (== resource_for {$api_version}.sslCertificates ==) (== resource_for
- * {$api_version}.regionSslCertificates ==) Next ID: 17
+ *
Optionally, certificate file contents that you upload can contain a set of up to five
+ * PEM-encoded certificates. The API call creates an object (sslCertificate) that holds this data.
+ * You can use SSL keys and certificates to secure connections to a load balancer. For more
+ * information, read Creating and using SSL certificates and SSL certificates quotas and limits.
+ * (== resource_for {$api_version}.sslCertificates ==) (== resource_for
+ * {$api_version}.regionSslCertificates ==)
*/
public SslCertificate getSslCertificateResource() {
return sslCertificateResource;
@@ -426,17 +428,20 @@ public Builder setRequestId(String requestId) {
*
*
Google Compute Engine has two SSL Certificate resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/sslCertificates) *
- * [Regional](/compute/docs/reference/rest/latest/regionSslCertificates)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/sslCertificates) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionSslCertificates)
*
- *
- sslCertificates are used by: - external HTTPS load balancers - SSL proxy load balancers
+ *
The sslCertificates are used by: - external HTTPS load balancers - SSL proxy load
+ * balancers
*
- *
- regionSslCertificates are used by: - internal HTTPS load balancers
+ *
The regionSslCertificates are used by internal HTTPS load balancers.
*
- *
This SSL certificate resource also contains a private key. You can use SSL keys and
- * certificates to secure connections to a load balancer. For more information, read Creating
- * and Using SSL Certificates. (== resource_for {$api_version}.sslCertificates ==) (==
- * resource_for {$api_version}.regionSslCertificates ==) Next ID: 17
+ *
Optionally, certificate file contents that you upload can contain a set of up to five
+ * PEM-encoded certificates. The API call creates an object (sslCertificate) that holds this
+ * data. You can use SSL keys and certificates to secure connections to a load balancer. For
+ * more information, read Creating and using SSL certificates and SSL certificates quotas and
+ * limits. (== resource_for {$api_version}.sslCertificates ==) (== resource_for
+ * {$api_version}.regionSslCertificates ==)
*/
public SslCertificate getSslCertificateResource() {
return sslCertificateResource;
@@ -447,17 +452,20 @@ public SslCertificate getSslCertificateResource() {
*
*
Google Compute Engine has two SSL Certificate resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/sslCertificates) *
- * [Regional](/compute/docs/reference/rest/latest/regionSslCertificates)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/sslCertificates) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionSslCertificates)
*
- *
- sslCertificates are used by: - external HTTPS load balancers - SSL proxy load balancers
+ *
The sslCertificates are used by: - external HTTPS load balancers - SSL proxy load
+ * balancers
*
- *
- regionSslCertificates are used by: - internal HTTPS load balancers
+ *
The regionSslCertificates are used by internal HTTPS load balancers.
*
- *
This SSL certificate resource also contains a private key. You can use SSL keys and
- * certificates to secure connections to a load balancer. For more information, read Creating
- * and Using SSL Certificates. (== resource_for {$api_version}.sslCertificates ==) (==
- * resource_for {$api_version}.regionSslCertificates ==) Next ID: 17
+ *
Optionally, certificate file contents that you upload can contain a set of up to five
+ * PEM-encoded certificates. The API call creates an object (sslCertificate) that holds this
+ * data. You can use SSL keys and certificates to secure connections to a load balancer. For
+ * more information, read Creating and using SSL certificates and SSL certificates quotas and
+ * limits. (== resource_for {$api_version}.sslCertificates ==) (== resource_for
+ * {$api_version}.regionSslCertificates ==)
*/
public Builder setSslCertificateResource(SslCertificate sslCertificateResource) {
this.sslCertificateResource = sslCertificateResource;
diff --git a/src/main/java/com/google/cloud/compute/v1/InsertRegionTargetHttpProxyHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/InsertRegionTargetHttpProxyHttpRequest.java
index aff84b872..0c742384a 100644
--- a/src/main/java/com/google/cloud/compute/v1/InsertRegionTargetHttpProxyHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/InsertRegionTargetHttpProxyHttpRequest.java
@@ -192,8 +192,8 @@ public String getRequestId() {
*
*
Google Compute Engine has two Target HTTP Proxy resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/targetHttpProxies) *
- * [Regional](/compute/docs/reference/rest/latest/regionTargetHttpProxies)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/targetHttpProxies) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionTargetHttpProxies)
*
*
A target HTTP proxy is a component of GCP HTTP load balancers.
*
@@ -427,8 +427,8 @@ public Builder setRequestId(String requestId) {
*
*
Google Compute Engine has two Target HTTP Proxy resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/targetHttpProxies) *
- * [Regional](/compute/docs/reference/rest/latest/regionTargetHttpProxies)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/targetHttpProxies) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionTargetHttpProxies)
*
*
A target HTTP proxy is a component of GCP HTTP load balancers.
*
@@ -449,8 +449,8 @@ public TargetHttpProxy getTargetHttpProxyResource() {
*
*
Google Compute Engine has two Target HTTP Proxy resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/targetHttpProxies) *
- * [Regional](/compute/docs/reference/rest/latest/regionTargetHttpProxies)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/targetHttpProxies) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionTargetHttpProxies)
*
*
A target HTTP proxy is a component of GCP HTTP load balancers.
*
diff --git a/src/main/java/com/google/cloud/compute/v1/InsertRegionTargetHttpsProxyHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/InsertRegionTargetHttpsProxyHttpRequest.java
index 55ce17988..876152392 100644
--- a/src/main/java/com/google/cloud/compute/v1/InsertRegionTargetHttpsProxyHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/InsertRegionTargetHttpsProxyHttpRequest.java
@@ -192,8 +192,8 @@ public String getRequestId() {
*
*
Google Compute Engine has two Target HTTPS Proxy resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/targetHttpsProxies) *
- * [Regional](/compute/docs/reference/rest/latest/regionTargetHttpsProxies)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/targetHttpsProxies) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionTargetHttpsProxies)
*
*
A target HTTPS proxy is a component of GCP HTTPS load balancers.
*
@@ -427,8 +427,8 @@ public Builder setRequestId(String requestId) {
*
*
Google Compute Engine has two Target HTTPS Proxy resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/targetHttpsProxies) *
- * [Regional](/compute/docs/reference/rest/latest/regionTargetHttpsProxies)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/targetHttpsProxies) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionTargetHttpsProxies)
*
*
A target HTTPS proxy is a component of GCP HTTPS load balancers.
*
@@ -449,8 +449,8 @@ public TargetHttpsProxy getTargetHttpsProxyResource() {
*
*
Google Compute Engine has two Target HTTPS Proxy resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/targetHttpsProxies) *
- * [Regional](/compute/docs/reference/rest/latest/regionTargetHttpsProxies)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/targetHttpsProxies) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionTargetHttpsProxies)
*
*
A target HTTPS proxy is a component of GCP HTTPS load balancers.
*
diff --git a/src/main/java/com/google/cloud/compute/v1/InsertRegionUrlMapHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/InsertRegionUrlMapHttpRequest.java
index c358bc0d1..0380ec3e4 100644
--- a/src/main/java/com/google/cloud/compute/v1/InsertRegionUrlMapHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/InsertRegionUrlMapHttpRequest.java
@@ -180,8 +180,8 @@ public String getRequestId() {
*
*
Google Compute Engine has two URL Map resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/urlMaps) *
- * [Regional](/compute/docs/reference/rest/latest/regionUrlMaps)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/urlMaps) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionUrlMaps)
*
*
A URL map resource is a component of certain types of GCP load balancers and Traffic
* Director.
@@ -395,8 +395,8 @@ public Builder setRequestId(String requestId) {
*
*
Google Compute Engine has two URL Map resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/urlMaps) *
- * [Regional](/compute/docs/reference/rest/latest/regionUrlMaps)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/urlMaps) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionUrlMaps)
*
*
A URL map resource is a component of certain types of GCP load balancers and Traffic
* Director.
@@ -421,8 +421,8 @@ public UrlMap getUrlMapResource() {
*
*
Google Compute Engine has two URL Map resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/urlMaps) *
- * [Regional](/compute/docs/reference/rest/latest/regionUrlMaps)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/urlMaps) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionUrlMaps)
*
*
A URL map resource is a component of certain types of GCP load balancers and Traffic
* Director.
diff --git a/src/main/java/com/google/cloud/compute/v1/InsertResourcePolicyHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/InsertResourcePolicyHttpRequest.java
index c6df3ca07..b48a7f667 100644
--- a/src/main/java/com/google/cloud/compute/v1/InsertResourcePolicyHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/InsertResourcePolicyHttpRequest.java
@@ -184,6 +184,13 @@ public String getRequestId() {
return requestId;
}
+ /**
+ * Represents a Resource Policy resource. You can use resource policies to schedule actions for
+ * some Compute Engine resources. For example, you can use them to schedule persistent disk
+ * snapshots.
+ *
+ *
(== resource_for {$api_version}.resourcePolicies ==)
+ */
public ResourcePolicy getResourcePolicyResource() {
return resourcePolicyResource;
}
@@ -401,10 +408,24 @@ public Builder setRequestId(String requestId) {
return this;
}
+ /**
+ * Represents a Resource Policy resource. You can use resource policies to schedule actions for
+ * some Compute Engine resources. For example, you can use them to schedule persistent disk
+ * snapshots.
+ *
+ *
(== resource_for {$api_version}.resourcePolicies ==)
+ */
public ResourcePolicy getResourcePolicyResource() {
return resourcePolicyResource;
}
+ /**
+ * Represents a Resource Policy resource. You can use resource policies to schedule actions for
+ * some Compute Engine resources. For example, you can use them to schedule persistent disk
+ * snapshots.
+ *
+ *
(== resource_for {$api_version}.resourcePolicies ==)
+ */
public Builder setResourcePolicyResource(ResourcePolicy resourcePolicyResource) {
this.resourcePolicyResource = resourcePolicyResource;
return this;
diff --git a/src/main/java/com/google/cloud/compute/v1/InsertSslCertificateHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/InsertSslCertificateHttpRequest.java
index 045a082e0..84bf3ea9b 100644
--- a/src/main/java/com/google/cloud/compute/v1/InsertSslCertificateHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/InsertSslCertificateHttpRequest.java
@@ -192,17 +192,19 @@ public String getRequestId() {
*
*
Google Compute Engine has two SSL Certificate resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/sslCertificates) *
- * [Regional](/compute/docs/reference/rest/latest/regionSslCertificates)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/sslCertificates) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionSslCertificates)
*
- *
- sslCertificates are used by: - external HTTPS load balancers - SSL proxy load balancers
+ *
The sslCertificates are used by: - external HTTPS load balancers - SSL proxy load balancers
*
- *
- regionSslCertificates are used by: - internal HTTPS load balancers
+ *
The regionSslCertificates are used by internal HTTPS load balancers.
*
- *
This SSL certificate resource also contains a private key. You can use SSL keys and
- * certificates to secure connections to a load balancer. For more information, read Creating and
- * Using SSL Certificates. (== resource_for {$api_version}.sslCertificates ==) (== resource_for
- * {$api_version}.regionSslCertificates ==) Next ID: 17
+ *
Optionally, certificate file contents that you upload can contain a set of up to five
+ * PEM-encoded certificates. The API call creates an object (sslCertificate) that holds this data.
+ * You can use SSL keys and certificates to secure connections to a load balancer. For more
+ * information, read Creating and using SSL certificates and SSL certificates quotas and limits.
+ * (== resource_for {$api_version}.sslCertificates ==) (== resource_for
+ * {$api_version}.regionSslCertificates ==)
*/
public SslCertificate getSslCertificateResource() {
return sslCertificateResource;
@@ -426,17 +428,20 @@ public Builder setRequestId(String requestId) {
*
*
Google Compute Engine has two SSL Certificate resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/sslCertificates) *
- * [Regional](/compute/docs/reference/rest/latest/regionSslCertificates)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/sslCertificates) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionSslCertificates)
*
- *
- sslCertificates are used by: - external HTTPS load balancers - SSL proxy load balancers
+ *
The sslCertificates are used by: - external HTTPS load balancers - SSL proxy load
+ * balancers
*
- *
- regionSslCertificates are used by: - internal HTTPS load balancers
+ *
The regionSslCertificates are used by internal HTTPS load balancers.
*
- *
This SSL certificate resource also contains a private key. You can use SSL keys and
- * certificates to secure connections to a load balancer. For more information, read Creating
- * and Using SSL Certificates. (== resource_for {$api_version}.sslCertificates ==) (==
- * resource_for {$api_version}.regionSslCertificates ==) Next ID: 17
+ *
Optionally, certificate file contents that you upload can contain a set of up to five
+ * PEM-encoded certificates. The API call creates an object (sslCertificate) that holds this
+ * data. You can use SSL keys and certificates to secure connections to a load balancer. For
+ * more information, read Creating and using SSL certificates and SSL certificates quotas and
+ * limits. (== resource_for {$api_version}.sslCertificates ==) (== resource_for
+ * {$api_version}.regionSslCertificates ==)
*/
public SslCertificate getSslCertificateResource() {
return sslCertificateResource;
@@ -447,17 +452,20 @@ public SslCertificate getSslCertificateResource() {
*
*
Google Compute Engine has two SSL Certificate resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/sslCertificates) *
- * [Regional](/compute/docs/reference/rest/latest/regionSslCertificates)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/sslCertificates) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionSslCertificates)
*
- *
- sslCertificates are used by: - external HTTPS load balancers - SSL proxy load balancers
+ *
The sslCertificates are used by: - external HTTPS load balancers - SSL proxy load
+ * balancers
*
- *
- regionSslCertificates are used by: - internal HTTPS load balancers
+ *
The regionSslCertificates are used by internal HTTPS load balancers.
*
- *
This SSL certificate resource also contains a private key. You can use SSL keys and
- * certificates to secure connections to a load balancer. For more information, read Creating
- * and Using SSL Certificates. (== resource_for {$api_version}.sslCertificates ==) (==
- * resource_for {$api_version}.regionSslCertificates ==) Next ID: 17
+ *
Optionally, certificate file contents that you upload can contain a set of up to five
+ * PEM-encoded certificates. The API call creates an object (sslCertificate) that holds this
+ * data. You can use SSL keys and certificates to secure connections to a load balancer. For
+ * more information, read Creating and using SSL certificates and SSL certificates quotas and
+ * limits. (== resource_for {$api_version}.sslCertificates ==) (== resource_for
+ * {$api_version}.regionSslCertificates ==)
*/
public Builder setSslCertificateResource(SslCertificate sslCertificateResource) {
this.sslCertificateResource = sslCertificateResource;
diff --git a/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpProxyHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpProxyHttpRequest.java
index 4e119337f..fa4e88020 100644
--- a/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpProxyHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpProxyHttpRequest.java
@@ -192,8 +192,8 @@ public String getRequestId() {
*
*
Google Compute Engine has two Target HTTP Proxy resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/targetHttpProxies) *
- * [Regional](/compute/docs/reference/rest/latest/regionTargetHttpProxies)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/targetHttpProxies) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionTargetHttpProxies)
*
*
A target HTTP proxy is a component of GCP HTTP load balancers.
*
@@ -427,8 +427,8 @@ public Builder setRequestId(String requestId) {
*
*
Google Compute Engine has two Target HTTP Proxy resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/targetHttpProxies) *
- * [Regional](/compute/docs/reference/rest/latest/regionTargetHttpProxies)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/targetHttpProxies) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionTargetHttpProxies)
*
*
A target HTTP proxy is a component of GCP HTTP load balancers.
*
@@ -449,8 +449,8 @@ public TargetHttpProxy getTargetHttpProxyResource() {
*
*
Google Compute Engine has two Target HTTP Proxy resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/targetHttpProxies) *
- * [Regional](/compute/docs/reference/rest/latest/regionTargetHttpProxies)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/targetHttpProxies) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionTargetHttpProxies)
*
*
A target HTTP proxy is a component of GCP HTTP load balancers.
*
diff --git a/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpsProxyHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpsProxyHttpRequest.java
index 5644d3590..b6700f6ce 100644
--- a/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpsProxyHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/InsertTargetHttpsProxyHttpRequest.java
@@ -192,8 +192,8 @@ public String getRequestId() {
*
*
Google Compute Engine has two Target HTTPS Proxy resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/targetHttpsProxies) *
- * [Regional](/compute/docs/reference/rest/latest/regionTargetHttpsProxies)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/targetHttpsProxies) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionTargetHttpsProxies)
*
*
A target HTTPS proxy is a component of GCP HTTPS load balancers.
*
@@ -427,8 +427,8 @@ public Builder setRequestId(String requestId) {
*
*
Google Compute Engine has two Target HTTPS Proxy resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/targetHttpsProxies) *
- * [Regional](/compute/docs/reference/rest/latest/regionTargetHttpsProxies)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/targetHttpsProxies) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionTargetHttpsProxies)
*
*
A target HTTPS proxy is a component of GCP HTTPS load balancers.
*
@@ -449,8 +449,8 @@ public TargetHttpsProxy getTargetHttpsProxyResource() {
*
*
Google Compute Engine has two Target HTTPS Proxy resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/targetHttpsProxies) *
- * [Regional](/compute/docs/reference/rest/latest/regionTargetHttpsProxies)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/targetHttpsProxies) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionTargetHttpsProxies)
*
*
A target HTTPS proxy is a component of GCP HTTPS load balancers.
*
diff --git a/src/main/java/com/google/cloud/compute/v1/InsertUrlMapHttpRequest.java b/src/main/java/com/google/cloud/compute/v1/InsertUrlMapHttpRequest.java
index ade5858f3..6a5786359 100644
--- a/src/main/java/com/google/cloud/compute/v1/InsertUrlMapHttpRequest.java
+++ b/src/main/java/com/google/cloud/compute/v1/InsertUrlMapHttpRequest.java
@@ -192,8 +192,8 @@ public String getRequestId() {
*
*
Google Compute Engine has two URL Map resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/urlMaps) *
- * [Regional](/compute/docs/reference/rest/latest/regionUrlMaps)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/urlMaps) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionUrlMaps)
*
*
A URL map resource is a component of certain types of GCP load balancers and Traffic
* Director.
@@ -431,8 +431,8 @@ public Builder setRequestId(String requestId) {
*
*
Google Compute Engine has two URL Map resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/urlMaps) *
- * [Regional](/compute/docs/reference/rest/latest/regionUrlMaps)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/urlMaps) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionUrlMaps)
*
*
A URL map resource is a component of certain types of GCP load balancers and Traffic
* Director.
@@ -457,8 +457,8 @@ public UrlMap getUrlMapResource() {
*
*
Google Compute Engine has two URL Map resources:
*
- *
* [Global](/compute/docs/reference/rest/latest/urlMaps) *
- * [Regional](/compute/docs/reference/rest/latest/regionUrlMaps)
+ *
* [Global](/compute/docs/reference/rest/{$api_version}/urlMaps) *
+ * [Regional](/compute/docs/reference/rest/{$api_version}/regionUrlMaps)
*
*
A URL map resource is a component of certain types of GCP load balancers and Traffic
* Director.
diff --git a/src/main/java/com/google/cloud/compute/v1/Instance.java b/src/main/java/com/google/cloud/compute/v1/Instance.java
index f08934786..30f4293e6 100644
--- a/src/main/java/com/google/cloud/compute/v1/Instance.java
+++ b/src/main/java/com/google/cloud/compute/v1/Instance.java
@@ -40,6 +40,7 @@ public final class Instance implements ApiMessage {
private final String description;
private final List disks;
private final DisplayDevice displayDevice;
+ private final String fingerprint;
private final List guestAccelerators;
private final String hostname;
private final String id;
@@ -71,6 +72,7 @@ private Instance() {
this.description = null;
this.disks = null;
this.displayDevice = null;
+ this.fingerprint = null;
this.guestAccelerators = null;
this.hostname = null;
this.id = null;
@@ -103,6 +105,7 @@ private Instance(
String description,
List disks,
DisplayDevice displayDevice,
+ String fingerprint,
List guestAccelerators,
String hostname,
String id,
@@ -132,6 +135,7 @@ private Instance(
this.description = description;
this.disks = disks;
this.displayDevice = displayDevice;
+ this.fingerprint = fingerprint;
this.guestAccelerators = guestAccelerators;
this.hostname = hostname;
this.id = id;
@@ -179,6 +183,9 @@ public Object getFieldValue(String fieldName) {
if ("displayDevice".equals(fieldName)) {
return displayDevice;
}
+ if ("fingerprint".equals(fieldName)) {
+ return fingerprint;
+ }
if ("guestAccelerators".equals(fieldName)) {
return guestAccelerators;
}
@@ -310,6 +317,18 @@ public DisplayDevice getDisplayDevice() {
return displayDevice;
}
+ /**
+ * Specifies a fingerprint for this resource, which is essentially a hash of the instance's
+ * contents and used for optimistic locking. The fingerprint is initially generated by Compute
+ * Engine and changes after every request to modify or update the instance. You must always
+ * provide an up-to-date fingerprint hash in order to update the instance.
+ *
+ * To see the latest fingerprint, make get() request to the instance.
+ */
+ public String getFingerprint() {
+ return fingerprint;
+ }
+
/** A list of the type and count of accelerator cards attached to the instance. */
public List getGuestAcceleratorsList() {
return guestAccelerators;
@@ -512,6 +531,7 @@ public static class Builder {
private String description;
private List disks;
private DisplayDevice displayDevice;
+ private String fingerprint;
private List guestAccelerators;
private String hostname;
private String id;
@@ -560,6 +580,9 @@ public Builder mergeFrom(Instance other) {
if (other.getDisplayDevice() != null) {
this.displayDevice = other.displayDevice;
}
+ if (other.getFingerprint() != null) {
+ this.fingerprint = other.fingerprint;
+ }
if (other.getGuestAcceleratorsList() != null) {
this.guestAccelerators = other.guestAccelerators;
}
@@ -637,6 +660,7 @@ public Builder mergeFrom(Instance other) {
this.description = source.description;
this.disks = source.disks;
this.displayDevice = source.displayDevice;
+ this.fingerprint = source.fingerprint;
this.guestAccelerators = source.guestAccelerators;
this.hostname = source.hostname;
this.id = source.id;
@@ -771,6 +795,31 @@ public Builder setDisplayDevice(DisplayDevice displayDevice) {
return this;
}
+ /**
+ * Specifies a fingerprint for this resource, which is essentially a hash of the instance's
+ * contents and used for optimistic locking. The fingerprint is initially generated by Compute
+ * Engine and changes after every request to modify or update the instance. You must always
+ * provide an up-to-date fingerprint hash in order to update the instance.
+ *
+ * To see the latest fingerprint, make get() request to the instance.
+ */
+ public String getFingerprint() {
+ return fingerprint;
+ }
+
+ /**
+ * Specifies a fingerprint for this resource, which is essentially a hash of the instance's
+ * contents and used for optimistic locking. The fingerprint is initially generated by Compute
+ * Engine and changes after every request to modify or update the instance. You must always
+ * provide an up-to-date fingerprint hash in order to update the instance.
+ *
+ *
To see the latest fingerprint, make get() request to the instance.
+ */
+ public Builder setFingerprint(String fingerprint) {
+ this.fingerprint = fingerprint;
+ return this;
+ }
+
/** A list of the type and count of accelerator cards attached to the instance. */
public List getGuestAcceleratorsList() {
return guestAccelerators;
@@ -1203,6 +1252,7 @@ public Instance build() {
description,
disks,
displayDevice,
+ fingerprint,
guestAccelerators,
hostname,
id,
@@ -1236,6 +1286,7 @@ public Builder clone() {
newBuilder.setDescription(this.description);
newBuilder.addAllDisks(this.disks);
newBuilder.setDisplayDevice(this.displayDevice);
+ newBuilder.setFingerprint(this.fingerprint);
newBuilder.addAllGuestAccelerators(this.guestAccelerators);
newBuilder.setHostname(this.hostname);
newBuilder.setId(this.id);
@@ -1286,6 +1337,9 @@ public String toString() {
+ "displayDevice="
+ displayDevice
+ ", "
+ + "fingerprint="
+ + fingerprint
+ + ", "
+ "guestAccelerators="
+ guestAccelerators
+ ", "
@@ -1368,6 +1422,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.description, that.getDescription())
&& Objects.equals(this.disks, that.getDisksList())
&& Objects.equals(this.displayDevice, that.getDisplayDevice())
+ && Objects.equals(this.fingerprint, that.getFingerprint())
&& Objects.equals(this.guestAccelerators, that.getGuestAcceleratorsList())
&& Objects.equals(this.hostname, that.getHostname())
&& Objects.equals(this.id, that.getId())
@@ -1405,6 +1460,7 @@ public int hashCode() {
description,
disks,
displayDevice,
+ fingerprint,
guestAccelerators,
hostname,
id,
diff --git a/src/main/java/com/google/cloud/compute/v1/InstanceClient.java b/src/main/java/com/google/cloud/compute/v1/InstanceClient.java
index e56e32551..f18a30cc5 100644
--- a/src/main/java/com/google/cloud/compute/v1/InstanceClient.java
+++ b/src/main/java/com/google/cloud/compute/v1/InstanceClient.java
@@ -277,6 +277,125 @@ public final Operation addAccessConfigInstance(AddAccessConfigInstanceHttpReques
return stub.addAccessConfigInstanceCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Adds existing resource policies to an instance. You can only add one policy right now which
+ * will be applied to this instance for scheduling live migrations.
+ *
+ * Sample code:
+ *
+ *
+ * try (InstanceClient instanceClient = InstanceClient.create()) {
+ * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+ * InstancesAddResourcePoliciesRequest instancesAddResourcePoliciesRequestResource = InstancesAddResourcePoliciesRequest.newBuilder().build();
+ * Operation response = instanceClient.addResourcePoliciesInstance(instance, instancesAddResourcePoliciesRequestResource);
+ * }
+ *
+ *
+ * @param instance The instance name for this request.
+ * @param instancesAddResourcePoliciesRequestResource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation addResourcePoliciesInstance(
+ ProjectZoneInstanceName instance,
+ InstancesAddResourcePoliciesRequest instancesAddResourcePoliciesRequestResource) {
+ AddResourcePoliciesInstanceHttpRequest request =
+ AddResourcePoliciesInstanceHttpRequest.newBuilder()
+ .setInstance(instance == null ? null : instance.toString())
+ .setInstancesAddResourcePoliciesRequestResource(
+ instancesAddResourcePoliciesRequestResource)
+ .build();
+ return addResourcePoliciesInstance(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Adds existing resource policies to an instance. You can only add one policy right now which
+ * will be applied to this instance for scheduling live migrations.
+ *
+ * Sample code:
+ *
+ *
+ * try (InstanceClient instanceClient = InstanceClient.create()) {
+ * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+ * InstancesAddResourcePoliciesRequest instancesAddResourcePoliciesRequestResource = InstancesAddResourcePoliciesRequest.newBuilder().build();
+ * Operation response = instanceClient.addResourcePoliciesInstance(instance.toString(), instancesAddResourcePoliciesRequestResource);
+ * }
+ *
+ *
+ * @param instance The instance name for this request.
+ * @param instancesAddResourcePoliciesRequestResource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation addResourcePoliciesInstance(
+ String instance,
+ InstancesAddResourcePoliciesRequest instancesAddResourcePoliciesRequestResource) {
+ AddResourcePoliciesInstanceHttpRequest request =
+ AddResourcePoliciesInstanceHttpRequest.newBuilder()
+ .setInstance(instance)
+ .setInstancesAddResourcePoliciesRequestResource(
+ instancesAddResourcePoliciesRequestResource)
+ .build();
+ return addResourcePoliciesInstance(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Adds existing resource policies to an instance. You can only add one policy right now which
+ * will be applied to this instance for scheduling live migrations.
+ *
+ * Sample code:
+ *
+ *
+ * try (InstanceClient instanceClient = InstanceClient.create()) {
+ * String formattedInstance = ProjectZoneInstanceName.format("[PROJECT]", "[ZONE]", "[INSTANCE]");
+ * InstancesAddResourcePoliciesRequest instancesAddResourcePoliciesRequestResource = InstancesAddResourcePoliciesRequest.newBuilder().build();
+ * AddResourcePoliciesInstanceHttpRequest request = AddResourcePoliciesInstanceHttpRequest.newBuilder()
+ * .setInstance(formattedInstance)
+ * .setInstancesAddResourcePoliciesRequestResource(instancesAddResourcePoliciesRequestResource)
+ * .build();
+ * Operation response = instanceClient.addResourcePoliciesInstance(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation addResourcePoliciesInstance(
+ AddResourcePoliciesInstanceHttpRequest request) {
+ return addResourcePoliciesInstanceCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Adds existing resource policies to an instance. You can only add one policy right now which
+ * will be applied to this instance for scheduling live migrations.
+ *
+ * Sample code:
+ *
+ *
+ * try (InstanceClient instanceClient = InstanceClient.create()) {
+ * String formattedInstance = ProjectZoneInstanceName.format("[PROJECT]", "[ZONE]", "[INSTANCE]");
+ * InstancesAddResourcePoliciesRequest instancesAddResourcePoliciesRequestResource = InstancesAddResourcePoliciesRequest.newBuilder().build();
+ * AddResourcePoliciesInstanceHttpRequest request = AddResourcePoliciesInstanceHttpRequest.newBuilder()
+ * .setInstance(formattedInstance)
+ * .setInstancesAddResourcePoliciesRequestResource(instancesAddResourcePoliciesRequestResource)
+ * .build();
+ * ApiFuture<Operation> future = instanceClient.addResourcePoliciesInstanceCallable().futureCall(request);
+ * // Do something
+ * Operation response = future.get();
+ * }
+ *
+ */
+ @BetaApi
+ public final UnaryCallable
+ addResourcePoliciesInstanceCallable() {
+ return stub.addResourcePoliciesInstanceCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Retrieves aggregated list of all of the instances in your project across all regions and zones.
@@ -285,20 +404,29 @@ public final Operation addAccessConfigInstance(AddAccessConfigInstanceHttpReques
*
*
* try (InstanceClient instanceClient = InstanceClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (InstancesScopedList element : instanceClient.aggregatedListInstances(project).iterateAll()) {
+ * for (InstancesScopedList element : instanceClient.aggregatedListInstances(includeAllScopes, project).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Project ID for this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
- public final AggregatedListInstancesPagedResponse aggregatedListInstances(ProjectName project) {
+ public final AggregatedListInstancesPagedResponse aggregatedListInstances(
+ Boolean includeAllScopes, ProjectName project) {
AggregatedListInstancesHttpRequest request =
AggregatedListInstancesHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
.setProject(project == null ? null : project.toString())
.build();
return aggregatedListInstances(request);
@@ -312,20 +440,31 @@ public final AggregatedListInstancesPagedResponse aggregatedListInstances(Projec
*
*
* try (InstanceClient instanceClient = InstanceClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (InstancesScopedList element : instanceClient.aggregatedListInstances(project.toString()).iterateAll()) {
+ * for (InstancesScopedList element : instanceClient.aggregatedListInstances(includeAllScopes, project.toString()).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Project ID for this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
- public final AggregatedListInstancesPagedResponse aggregatedListInstances(String project) {
+ public final AggregatedListInstancesPagedResponse aggregatedListInstances(
+ Boolean includeAllScopes, String project) {
AggregatedListInstancesHttpRequest request =
- AggregatedListInstancesHttpRequest.newBuilder().setProject(project).build();
+ AggregatedListInstancesHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
+ .setProject(project)
+ .build();
return aggregatedListInstances(request);
}
@@ -337,8 +476,10 @@ public final AggregatedListInstancesPagedResponse aggregatedListInstances(String
*
*
* try (InstanceClient instanceClient = InstanceClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListInstancesHttpRequest request = AggregatedListInstancesHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* for (InstancesScopedList element : instanceClient.aggregatedListInstances(request).iterateAll()) {
@@ -364,8 +505,10 @@ public final AggregatedListInstancesPagedResponse aggregatedListInstances(
*
*
* try (InstanceClient instanceClient = InstanceClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListInstancesHttpRequest request = AggregatedListInstancesHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* ApiFuture<AggregatedListInstancesPagedResponse> future = instanceClient.aggregatedListInstancesPagedCallable().futureCall(request);
@@ -391,8 +534,10 @@ public final AggregatedListInstancesPagedResponse aggregatedListInstances(
*
*
* try (InstanceClient instanceClient = InstanceClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListInstancesHttpRequest request = AggregatedListInstancesHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* while (true) {
@@ -1813,6 +1958,121 @@ public final ListReferrersInstancesPagedResponse listReferrersInstances(
return stub.listReferrersInstancesCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Removes resource policies from an instance.
+ *
+ * Sample code:
+ *
+ *
+ * try (InstanceClient instanceClient = InstanceClient.create()) {
+ * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+ * InstancesRemoveResourcePoliciesRequest instancesRemoveResourcePoliciesRequestResource = InstancesRemoveResourcePoliciesRequest.newBuilder().build();
+ * Operation response = instanceClient.removeResourcePoliciesInstance(instance, instancesRemoveResourcePoliciesRequestResource);
+ * }
+ *
+ *
+ * @param instance The instance name for this request.
+ * @param instancesRemoveResourcePoliciesRequestResource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation removeResourcePoliciesInstance(
+ ProjectZoneInstanceName instance,
+ InstancesRemoveResourcePoliciesRequest instancesRemoveResourcePoliciesRequestResource) {
+ RemoveResourcePoliciesInstanceHttpRequest request =
+ RemoveResourcePoliciesInstanceHttpRequest.newBuilder()
+ .setInstance(instance == null ? null : instance.toString())
+ .setInstancesRemoveResourcePoliciesRequestResource(
+ instancesRemoveResourcePoliciesRequestResource)
+ .build();
+ return removeResourcePoliciesInstance(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Removes resource policies from an instance.
+ *
+ * Sample code:
+ *
+ *
+ * try (InstanceClient instanceClient = InstanceClient.create()) {
+ * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+ * InstancesRemoveResourcePoliciesRequest instancesRemoveResourcePoliciesRequestResource = InstancesRemoveResourcePoliciesRequest.newBuilder().build();
+ * Operation response = instanceClient.removeResourcePoliciesInstance(instance.toString(), instancesRemoveResourcePoliciesRequestResource);
+ * }
+ *
+ *
+ * @param instance The instance name for this request.
+ * @param instancesRemoveResourcePoliciesRequestResource
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation removeResourcePoliciesInstance(
+ String instance,
+ InstancesRemoveResourcePoliciesRequest instancesRemoveResourcePoliciesRequestResource) {
+ RemoveResourcePoliciesInstanceHttpRequest request =
+ RemoveResourcePoliciesInstanceHttpRequest.newBuilder()
+ .setInstance(instance)
+ .setInstancesRemoveResourcePoliciesRequestResource(
+ instancesRemoveResourcePoliciesRequestResource)
+ .build();
+ return removeResourcePoliciesInstance(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Removes resource policies from an instance.
+ *
+ * Sample code:
+ *
+ *
+ * try (InstanceClient instanceClient = InstanceClient.create()) {
+ * String formattedInstance = ProjectZoneInstanceName.format("[PROJECT]", "[ZONE]", "[INSTANCE]");
+ * InstancesRemoveResourcePoliciesRequest instancesRemoveResourcePoliciesRequestResource = InstancesRemoveResourcePoliciesRequest.newBuilder().build();
+ * RemoveResourcePoliciesInstanceHttpRequest request = RemoveResourcePoliciesInstanceHttpRequest.newBuilder()
+ * .setInstance(formattedInstance)
+ * .setInstancesRemoveResourcePoliciesRequestResource(instancesRemoveResourcePoliciesRequestResource)
+ * .build();
+ * Operation response = instanceClient.removeResourcePoliciesInstance(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation removeResourcePoliciesInstance(
+ RemoveResourcePoliciesInstanceHttpRequest request) {
+ return removeResourcePoliciesInstanceCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Removes resource policies from an instance.
+ *
+ * Sample code:
+ *
+ *
+ * try (InstanceClient instanceClient = InstanceClient.create()) {
+ * String formattedInstance = ProjectZoneInstanceName.format("[PROJECT]", "[ZONE]", "[INSTANCE]");
+ * InstancesRemoveResourcePoliciesRequest instancesRemoveResourcePoliciesRequestResource = InstancesRemoveResourcePoliciesRequest.newBuilder().build();
+ * RemoveResourcePoliciesInstanceHttpRequest request = RemoveResourcePoliciesInstanceHttpRequest.newBuilder()
+ * .setInstance(formattedInstance)
+ * .setInstancesRemoveResourcePoliciesRequestResource(instancesRemoveResourcePoliciesRequestResource)
+ * .build();
+ * ApiFuture<Operation> future = instanceClient.removeResourcePoliciesInstanceCallable().futureCall(request);
+ * // Do something
+ * Operation response = future.get();
+ * }
+ *
+ */
+ @BetaApi
+ public final UnaryCallable
+ removeResourcePoliciesInstanceCallable() {
+ return stub.removeResourcePoliciesInstanceCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Performs a reset on the instance. This is a hard reset the VM does not do a graceful shutdown.
@@ -2839,7 +3099,7 @@ public final Operation setMinCpuPlatformInstance(SetMinCpuPlatformInstanceHttpRe
*
*
* @param instance Instance name for this request.
- * @param schedulingResource Sets the scheduling options for an Instance. NextID: 9
+ * @param schedulingResource Sets the scheduling options for an Instance. NextID: 10
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
@@ -2868,7 +3128,7 @@ public final Operation setSchedulingInstance(
*
*
* @param instance Instance name for this request.
- * @param schedulingResource Sets the scheduling options for an Instance. NextID: 9
+ * @param schedulingResource Sets the scheduling options for an Instance. NextID: 10
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
@@ -3831,6 +4091,181 @@ public final TestPermissionsResponse testIamPermissionsInstance(
return stub.testIamPermissionsInstanceCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Updates an instance only if the necessary resources are available. This method can update only
+ * a specific set of instance properties. See Updating a running instance for a list of updatable
+ * instance properties.
+ *
+ * Sample code:
+ *
+ *
+ * try (InstanceClient instanceClient = InstanceClient.create()) {
+ * String mostDisruptiveAllowedAction = "";
+ * String minimalAction = "";
+ * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+ * Instance instanceResource = Instance.newBuilder().build();
+ * List<String> fieldMask = new ArrayList<>();
+ * Operation response = instanceClient.updateInstance(mostDisruptiveAllowedAction, minimalAction, instance, instanceResource, fieldMask);
+ * }
+ *
+ *
+ * @param mostDisruptiveAllowedAction Specifies the most disruptive action that can be taken on
+ * the instance as part of the update. Compute Engine returns an error if the instance
+ * properties require a more disruptive action as part of the instance update. Valid options
+ * from lowest to highest are NO_EFFECT, REFRESH, and RESTART.
+ * @param minimalAction Specifies the action to take when updating an instance even if the updated
+ * properties do not require it. If not specified, then Compute Engine acts based on the
+ * minimum action that the updated properties require.
+ * @param instance Name of the instance resource to update.
+ * @param instanceResource Represents an Instance resource.
+ * An instance is a virtual machine that is hosted on Google Cloud Platform. For more
+ * information, read Virtual Machine Instances. (== resource_for {$api_version}.instances ==)
+ * @param fieldMask The fields that should be serialized (even if they have empty values). If the
+ * containing message object has a non-null fieldmask, then all the fields in the field mask
+ * (and only those fields in the field mask) will be serialized. If the containing object does
+ * not have a fieldmask, then only non-empty fields will be serialized.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation updateInstance(
+ String mostDisruptiveAllowedAction,
+ String minimalAction,
+ ProjectZoneInstanceName instance,
+ Instance instanceResource,
+ List fieldMask) {
+ UpdateInstanceHttpRequest request =
+ UpdateInstanceHttpRequest.newBuilder()
+ .setMostDisruptiveAllowedAction(mostDisruptiveAllowedAction)
+ .setMinimalAction(minimalAction)
+ .setInstance(instance == null ? null : instance.toString())
+ .setInstanceResource(instanceResource)
+ .addAllFieldMask(fieldMask)
+ .build();
+ return updateInstance(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Updates an instance only if the necessary resources are available. This method can update only
+ * a specific set of instance properties. See Updating a running instance for a list of updatable
+ * instance properties.
+ *
+ * Sample code:
+ *
+ *
+ * try (InstanceClient instanceClient = InstanceClient.create()) {
+ * String mostDisruptiveAllowedAction = "";
+ * String minimalAction = "";
+ * ProjectZoneInstanceName instance = ProjectZoneInstanceName.of("[PROJECT]", "[ZONE]", "[INSTANCE]");
+ * Instance instanceResource = Instance.newBuilder().build();
+ * List<String> fieldMask = new ArrayList<>();
+ * Operation response = instanceClient.updateInstance(mostDisruptiveAllowedAction, minimalAction, instance.toString(), instanceResource, fieldMask);
+ * }
+ *
+ *
+ * @param mostDisruptiveAllowedAction Specifies the most disruptive action that can be taken on
+ * the instance as part of the update. Compute Engine returns an error if the instance
+ * properties require a more disruptive action as part of the instance update. Valid options
+ * from lowest to highest are NO_EFFECT, REFRESH, and RESTART.
+ * @param minimalAction Specifies the action to take when updating an instance even if the updated
+ * properties do not require it. If not specified, then Compute Engine acts based on the
+ * minimum action that the updated properties require.
+ * @param instance Name of the instance resource to update.
+ * @param instanceResource Represents an Instance resource.
+ * An instance is a virtual machine that is hosted on Google Cloud Platform. For more
+ * information, read Virtual Machine Instances. (== resource_for {$api_version}.instances ==)
+ * @param fieldMask The fields that should be serialized (even if they have empty values). If the
+ * containing message object has a non-null fieldmask, then all the fields in the field mask
+ * (and only those fields in the field mask) will be serialized. If the containing object does
+ * not have a fieldmask, then only non-empty fields will be serialized.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation updateInstance(
+ String mostDisruptiveAllowedAction,
+ String minimalAction,
+ String instance,
+ Instance instanceResource,
+ List fieldMask) {
+ UpdateInstanceHttpRequest request =
+ UpdateInstanceHttpRequest.newBuilder()
+ .setMostDisruptiveAllowedAction(mostDisruptiveAllowedAction)
+ .setMinimalAction(minimalAction)
+ .setInstance(instance)
+ .setInstanceResource(instanceResource)
+ .addAllFieldMask(fieldMask)
+ .build();
+ return updateInstance(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Updates an instance only if the necessary resources are available. This method can update only
+ * a specific set of instance properties. See Updating a running instance for a list of updatable
+ * instance properties.
+ *
+ * Sample code:
+ *
+ *
+ * try (InstanceClient instanceClient = InstanceClient.create()) {
+ * String mostDisruptiveAllowedAction = "";
+ * String minimalAction = "";
+ * String formattedInstance = ProjectZoneInstanceName.format("[PROJECT]", "[ZONE]", "[INSTANCE]");
+ * Instance instanceResource = Instance.newBuilder().build();
+ * List<String> fieldMask = new ArrayList<>();
+ * UpdateInstanceHttpRequest request = UpdateInstanceHttpRequest.newBuilder()
+ * .setMostDisruptiveAllowedAction(mostDisruptiveAllowedAction)
+ * .setMinimalAction(minimalAction)
+ * .setInstance(formattedInstance)
+ * .setInstanceResource(instanceResource)
+ * .addAllFieldMask(fieldMask)
+ * .build();
+ * Operation response = instanceClient.updateInstance(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation updateInstance(UpdateInstanceHttpRequest request) {
+ return updateInstanceCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Updates an instance only if the necessary resources are available. This method can update only
+ * a specific set of instance properties. See Updating a running instance for a list of updatable
+ * instance properties.
+ *
+ * Sample code:
+ *
+ *
+ * try (InstanceClient instanceClient = InstanceClient.create()) {
+ * String mostDisruptiveAllowedAction = "";
+ * String minimalAction = "";
+ * String formattedInstance = ProjectZoneInstanceName.format("[PROJECT]", "[ZONE]", "[INSTANCE]");
+ * Instance instanceResource = Instance.newBuilder().build();
+ * List<String> fieldMask = new ArrayList<>();
+ * UpdateInstanceHttpRequest request = UpdateInstanceHttpRequest.newBuilder()
+ * .setMostDisruptiveAllowedAction(mostDisruptiveAllowedAction)
+ * .setMinimalAction(minimalAction)
+ * .setInstance(formattedInstance)
+ * .setInstanceResource(instanceResource)
+ * .addAllFieldMask(fieldMask)
+ * .build();
+ * ApiFuture<Operation> future = instanceClient.updateInstanceCallable().futureCall(request);
+ * // Do something
+ * Operation response = future.get();
+ * }
+ *
+ */
+ @BetaApi
+ public final UnaryCallable updateInstanceCallable() {
+ return stub.updateInstanceCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Updates the specified access config from an instance's network interface with the data included
diff --git a/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java b/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java
index b580ca1f8..a7f7cd4bc 100644
--- a/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java
+++ b/src/main/java/com/google/cloud/compute/v1/InstanceGroupClient.java
@@ -278,21 +278,29 @@ public final Operation addInstancesInstanceGroup(AddInstancesInstanceGroupHttpRe
*
*
* try (InstanceGroupClient instanceGroupClient = InstanceGroupClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (InstanceGroupsScopedList element : instanceGroupClient.aggregatedListInstanceGroups(project).iterateAll()) {
+ * for (InstanceGroupsScopedList element : instanceGroupClient.aggregatedListInstanceGroups(includeAllScopes, project).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Project ID for this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
public final AggregatedListInstanceGroupsPagedResponse aggregatedListInstanceGroups(
- ProjectName project) {
+ Boolean includeAllScopes, ProjectName project) {
AggregatedListInstanceGroupsHttpRequest request =
AggregatedListInstanceGroupsHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
.setProject(project == null ? null : project.toString())
.build();
return aggregatedListInstanceGroups(request);
@@ -306,21 +314,31 @@ public final AggregatedListInstanceGroupsPagedResponse aggregatedListInstanceGro
*
*
* try (InstanceGroupClient instanceGroupClient = InstanceGroupClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (InstanceGroupsScopedList element : instanceGroupClient.aggregatedListInstanceGroups(project.toString()).iterateAll()) {
+ * for (InstanceGroupsScopedList element : instanceGroupClient.aggregatedListInstanceGroups(includeAllScopes, project.toString()).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Project ID for this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
public final AggregatedListInstanceGroupsPagedResponse aggregatedListInstanceGroups(
- String project) {
+ Boolean includeAllScopes, String project) {
AggregatedListInstanceGroupsHttpRequest request =
- AggregatedListInstanceGroupsHttpRequest.newBuilder().setProject(project).build();
+ AggregatedListInstanceGroupsHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
+ .setProject(project)
+ .build();
return aggregatedListInstanceGroups(request);
}
@@ -332,8 +350,10 @@ public final AggregatedListInstanceGroupsPagedResponse aggregatedListInstanceGro
*
*
* try (InstanceGroupClient instanceGroupClient = InstanceGroupClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListInstanceGroupsHttpRequest request = AggregatedListInstanceGroupsHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* for (InstanceGroupsScopedList element : instanceGroupClient.aggregatedListInstanceGroups(request).iterateAll()) {
@@ -359,8 +379,10 @@ public final AggregatedListInstanceGroupsPagedResponse aggregatedListInstanceGro
*
*
* try (InstanceGroupClient instanceGroupClient = InstanceGroupClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListInstanceGroupsHttpRequest request = AggregatedListInstanceGroupsHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* ApiFuture<AggregatedListInstanceGroupsPagedResponse> future = instanceGroupClient.aggregatedListInstanceGroupsPagedCallable().futureCall(request);
@@ -386,8 +408,10 @@ public final AggregatedListInstanceGroupsPagedResponse aggregatedListInstanceGro
*
*
* try (InstanceGroupClient instanceGroupClient = InstanceGroupClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListInstanceGroupsHttpRequest request = AggregatedListInstanceGroupsHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* while (true) {
diff --git a/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java b/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java
index 1c04455f8..5890c36ce 100644
--- a/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java
+++ b/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerClient.java
@@ -329,21 +329,29 @@ public final Operation abandonInstancesInstanceGroupManager(
*
*
* try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (InstanceGroupManagersScopedList element : instanceGroupManagerClient.aggregatedListInstanceGroupManagers(project).iterateAll()) {
+ * for (InstanceGroupManagersScopedList element : instanceGroupManagerClient.aggregatedListInstanceGroupManagers(includeAllScopes, project).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Project ID for this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
public final AggregatedListInstanceGroupManagersPagedResponse aggregatedListInstanceGroupManagers(
- ProjectName project) {
+ Boolean includeAllScopes, ProjectName project) {
AggregatedListInstanceGroupManagersHttpRequest request =
AggregatedListInstanceGroupManagersHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
.setProject(project == null ? null : project.toString())
.build();
return aggregatedListInstanceGroupManagers(request);
@@ -357,21 +365,31 @@ public final AggregatedListInstanceGroupManagersPagedResponse aggregatedListInst
*
*
* try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
+ * Boolean includeAllScopes = false;
* ProjectName project = ProjectName.of("[PROJECT]");
- * for (InstanceGroupManagersScopedList element : instanceGroupManagerClient.aggregatedListInstanceGroupManagers(project.toString()).iterateAll()) {
+ * for (InstanceGroupManagersScopedList element : instanceGroupManagerClient.aggregatedListInstanceGroupManagers(includeAllScopes, project.toString()).iterateAll()) {
* // doThingsWith(element);
* }
* }
*
*
+ * @param includeAllScopes Indicates whether every visible scope for each scope type (zone,
+ * region, global) should be included in the response. For new resource types added after this
+ * field, the flag has no effect as new resource types will always include every visible scope
+ * for each scope type in response. For resource types which predate this field, if this flag
+ * is omitted or false, only scopes of the scope types where the resource type is expected to
+ * be found will be included.
* @param project Project ID for this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
public final AggregatedListInstanceGroupManagersPagedResponse aggregatedListInstanceGroupManagers(
- String project) {
+ Boolean includeAllScopes, String project) {
AggregatedListInstanceGroupManagersHttpRequest request =
- AggregatedListInstanceGroupManagersHttpRequest.newBuilder().setProject(project).build();
+ AggregatedListInstanceGroupManagersHttpRequest.newBuilder()
+ .setIncludeAllScopes(includeAllScopes)
+ .setProject(project)
+ .build();
return aggregatedListInstanceGroupManagers(request);
}
@@ -383,8 +401,10 @@ public final AggregatedListInstanceGroupManagersPagedResponse aggregatedListInst
*
*
* try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListInstanceGroupManagersHttpRequest request = AggregatedListInstanceGroupManagersHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* for (InstanceGroupManagersScopedList element : instanceGroupManagerClient.aggregatedListInstanceGroupManagers(request).iterateAll()) {
@@ -410,8 +430,10 @@ public final AggregatedListInstanceGroupManagersPagedResponse aggregatedListInst
*
*
* try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListInstanceGroupManagersHttpRequest request = AggregatedListInstanceGroupManagersHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* ApiFuture<AggregatedListInstanceGroupManagersPagedResponse> future = instanceGroupManagerClient.aggregatedListInstanceGroupManagersPagedCallable().futureCall(request);
@@ -438,8 +460,10 @@ public final AggregatedListInstanceGroupManagersPagedResponse aggregatedListInst
*
*
* try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
+ * Boolean includeAllScopes = false;
* String formattedProject = ProjectName.format("[PROJECT]");
* AggregatedListInstanceGroupManagersHttpRequest request = AggregatedListInstanceGroupManagersHttpRequest.newBuilder()
+ * .setIncludeAllScopes(includeAllScopes)
* .setProject(formattedProject)
* .build();
* while (true) {
@@ -464,6 +488,128 @@ public final AggregatedListInstanceGroupManagersPagedResponse aggregatedListInst
return stub.aggregatedListInstanceGroupManagersCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Applies changes to selected instances on the managed instance group. This method can be used to
+ * apply new overrides and/or new versions.
+ *
+ * Sample code:
+ *
+ *
+ * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
+ * ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
+ * InstanceGroupManagersApplyUpdatesRequest instanceGroupManagersApplyUpdatesRequestResource = InstanceGroupManagersApplyUpdatesRequest.newBuilder().build();
+ * Operation response = instanceGroupManagerClient.applyUpdatesToInstancesInstanceGroupManager(instanceGroupManager, instanceGroupManagersApplyUpdatesRequestResource);
+ * }
+ *
+ *
+ * @param instanceGroupManager The name of the managed instance group, should conform to RFC1035.
+ * @param instanceGroupManagersApplyUpdatesRequestResource
+ * InstanceGroupManagers.applyUpdatesToInstances
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation applyUpdatesToInstancesInstanceGroupManager(
+ ProjectZoneInstanceGroupManagerName instanceGroupManager,
+ InstanceGroupManagersApplyUpdatesRequest instanceGroupManagersApplyUpdatesRequestResource) {
+ ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest request =
+ ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest.newBuilder()
+ .setInstanceGroupManager(
+ instanceGroupManager == null ? null : instanceGroupManager.toString())
+ .setInstanceGroupManagersApplyUpdatesRequestResource(
+ instanceGroupManagersApplyUpdatesRequestResource)
+ .build();
+ return applyUpdatesToInstancesInstanceGroupManager(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Applies changes to selected instances on the managed instance group. This method can be used to
+ * apply new overrides and/or new versions.
+ *
+ * Sample code:
+ *
+ *
+ * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
+ * ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
+ * InstanceGroupManagersApplyUpdatesRequest instanceGroupManagersApplyUpdatesRequestResource = InstanceGroupManagersApplyUpdatesRequest.newBuilder().build();
+ * Operation response = instanceGroupManagerClient.applyUpdatesToInstancesInstanceGroupManager(instanceGroupManager.toString(), instanceGroupManagersApplyUpdatesRequestResource);
+ * }
+ *
+ *
+ * @param instanceGroupManager The name of the managed instance group, should conform to RFC1035.
+ * @param instanceGroupManagersApplyUpdatesRequestResource
+ * InstanceGroupManagers.applyUpdatesToInstances
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation applyUpdatesToInstancesInstanceGroupManager(
+ String instanceGroupManager,
+ InstanceGroupManagersApplyUpdatesRequest instanceGroupManagersApplyUpdatesRequestResource) {
+ ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest request =
+ ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest.newBuilder()
+ .setInstanceGroupManager(instanceGroupManager)
+ .setInstanceGroupManagersApplyUpdatesRequestResource(
+ instanceGroupManagersApplyUpdatesRequestResource)
+ .build();
+ return applyUpdatesToInstancesInstanceGroupManager(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Applies changes to selected instances on the managed instance group. This method can be used to
+ * apply new overrides and/or new versions.
+ *
+ * Sample code:
+ *
+ *
+ * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
+ * String formattedInstanceGroupManager = ProjectZoneInstanceGroupManagerName.format("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
+ * InstanceGroupManagersApplyUpdatesRequest instanceGroupManagersApplyUpdatesRequestResource = InstanceGroupManagersApplyUpdatesRequest.newBuilder().build();
+ * ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest request = ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest.newBuilder()
+ * .setInstanceGroupManager(formattedInstanceGroupManager)
+ * .setInstanceGroupManagersApplyUpdatesRequestResource(instanceGroupManagersApplyUpdatesRequestResource)
+ * .build();
+ * Operation response = instanceGroupManagerClient.applyUpdatesToInstancesInstanceGroupManager(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final Operation applyUpdatesToInstancesInstanceGroupManager(
+ ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest request) {
+ return applyUpdatesToInstancesInstanceGroupManagerCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Applies changes to selected instances on the managed instance group. This method can be used to
+ * apply new overrides and/or new versions.
+ *
+ * Sample code:
+ *
+ *
+ * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
+ * String formattedInstanceGroupManager = ProjectZoneInstanceGroupManagerName.format("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
+ * InstanceGroupManagersApplyUpdatesRequest instanceGroupManagersApplyUpdatesRequestResource = InstanceGroupManagersApplyUpdatesRequest.newBuilder().build();
+ * ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest request = ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest.newBuilder()
+ * .setInstanceGroupManager(formattedInstanceGroupManager)
+ * .setInstanceGroupManagersApplyUpdatesRequestResource(instanceGroupManagersApplyUpdatesRequestResource)
+ * .build();
+ * ApiFuture<Operation> future = instanceGroupManagerClient.applyUpdatesToInstancesInstanceGroupManagerCallable().futureCall(request);
+ * // Do something
+ * Operation response = future.get();
+ * }
+ *
+ */
+ @BetaApi
+ public final UnaryCallable
+ applyUpdatesToInstancesInstanceGroupManagerCallable() {
+ return stub.applyUpdatesToInstancesInstanceGroupManagerCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Creates instances with per-instance configs in this managed instance group. Instances are
@@ -1272,6 +1418,155 @@ public final ListInstanceGroupManagersPagedResponse listInstanceGroupManagers(
return stub.listInstanceGroupManagersCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Lists all errors thrown by actions on instances for a given managed instance group.
+ *
+ * Sample code:
+ *
+ *
+ * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
+ * ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
+ * for (InstanceManagedByIgmError element : instanceGroupManagerClient.listErrorsInstanceGroupManagers(instanceGroupManager).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ *
+ *
+ * @param instanceGroupManager The name of the managed instance group. It must be a string that
+ * meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern:
+ * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|[1-9][0-9]{0,19}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final ListErrorsInstanceGroupManagersPagedResponse listErrorsInstanceGroupManagers(
+ ProjectZoneInstanceGroupManagerName instanceGroupManager) {
+ ListErrorsInstanceGroupManagersHttpRequest request =
+ ListErrorsInstanceGroupManagersHttpRequest.newBuilder()
+ .setInstanceGroupManager(
+ instanceGroupManager == null ? null : instanceGroupManager.toString())
+ .build();
+ return listErrorsInstanceGroupManagers(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Lists all errors thrown by actions on instances for a given managed instance group.
+ *
+ * Sample code:
+ *
+ *
+ * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
+ * ProjectZoneInstanceGroupManagerName instanceGroupManager = ProjectZoneInstanceGroupManagerName.of("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
+ * for (InstanceManagedByIgmError element : instanceGroupManagerClient.listErrorsInstanceGroupManagers(instanceGroupManager.toString()).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ *
+ *
+ * @param instanceGroupManager The name of the managed instance group. It must be a string that
+ * meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern:
+ * (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|[1-9][0-9]{0,19}.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final ListErrorsInstanceGroupManagersPagedResponse listErrorsInstanceGroupManagers(
+ String instanceGroupManager) {
+ ListErrorsInstanceGroupManagersHttpRequest request =
+ ListErrorsInstanceGroupManagersHttpRequest.newBuilder()
+ .setInstanceGroupManager(instanceGroupManager)
+ .build();
+ return listErrorsInstanceGroupManagers(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Lists all errors thrown by actions on instances for a given managed instance group.
+ *
+ * Sample code:
+ *
+ *
+ * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
+ * String formattedInstanceGroupManager = ProjectZoneInstanceGroupManagerName.format("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
+ * ListErrorsInstanceGroupManagersHttpRequest request = ListErrorsInstanceGroupManagersHttpRequest.newBuilder()
+ * .setInstanceGroupManager(formattedInstanceGroupManager)
+ * .build();
+ * for (InstanceManagedByIgmError element : instanceGroupManagerClient.listErrorsInstanceGroupManagers(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi
+ public final ListErrorsInstanceGroupManagersPagedResponse listErrorsInstanceGroupManagers(
+ ListErrorsInstanceGroupManagersHttpRequest request) {
+ return listErrorsInstanceGroupManagersPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Lists all errors thrown by actions on instances for a given managed instance group.
+ *
+ * Sample code:
+ *
+ *
+ * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
+ * String formattedInstanceGroupManager = ProjectZoneInstanceGroupManagerName.format("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
+ * ListErrorsInstanceGroupManagersHttpRequest request = ListErrorsInstanceGroupManagersHttpRequest.newBuilder()
+ * .setInstanceGroupManager(formattedInstanceGroupManager)
+ * .build();
+ * ApiFuture<ListErrorsInstanceGroupManagersPagedResponse> future = instanceGroupManagerClient.listErrorsInstanceGroupManagersPagedCallable().futureCall(request);
+ * // Do something
+ * for (InstanceManagedByIgmError element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ *
+ */
+ @BetaApi
+ public final UnaryCallable<
+ ListErrorsInstanceGroupManagersHttpRequest, ListErrorsInstanceGroupManagersPagedResponse>
+ listErrorsInstanceGroupManagersPagedCallable() {
+ return stub.listErrorsInstanceGroupManagersPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Lists all errors thrown by actions on instances for a given managed instance group.
+ *
+ * Sample code:
+ *
+ *
+ * try (InstanceGroupManagerClient instanceGroupManagerClient = InstanceGroupManagerClient.create()) {
+ * String formattedInstanceGroupManager = ProjectZoneInstanceGroupManagerName.format("[PROJECT]", "[ZONE]", "[INSTANCE_GROUP_MANAGER]");
+ * ListErrorsInstanceGroupManagersHttpRequest request = ListErrorsInstanceGroupManagersHttpRequest.newBuilder()
+ * .setInstanceGroupManager(formattedInstanceGroupManager)
+ * .build();
+ * while (true) {
+ * InstanceGroupManagersListErrorsResponse response = instanceGroupManagerClient.listErrorsInstanceGroupManagersCallable().call(request);
+ * for (InstanceManagedByIgmError element : response.getItemsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ *
+ */
+ @BetaApi
+ public final UnaryCallable<
+ ListErrorsInstanceGroupManagersHttpRequest, InstanceGroupManagersListErrorsResponse>
+ listErrorsInstanceGroupManagersCallable() {
+ return stub.listErrorsInstanceGroupManagersCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Lists all of the instances in the managed instance group. Each instance in the list has a
@@ -2382,4 +2677,108 @@ protected ListInstanceGroupManagersFixedSizeCollection createCollection(
return new ListInstanceGroupManagersFixedSizeCollection(pages, collectionSize);
}
}
+
+ public static class ListErrorsInstanceGroupManagersPagedResponse
+ extends AbstractPagedListResponse<
+ ListErrorsInstanceGroupManagersHttpRequest,
+ InstanceGroupManagersListErrorsResponse,
+ InstanceManagedByIgmError,
+ ListErrorsInstanceGroupManagersPage,
+ ListErrorsInstanceGroupManagersFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext<
+ ListErrorsInstanceGroupManagersHttpRequest,
+ InstanceGroupManagersListErrorsResponse,
+ InstanceManagedByIgmError>
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListErrorsInstanceGroupManagersPage.createEmptyPage()
+ .createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ new ApiFunction<
+ ListErrorsInstanceGroupManagersPage, ListErrorsInstanceGroupManagersPagedResponse>() {
+ @Override
+ public ListErrorsInstanceGroupManagersPagedResponse apply(
+ ListErrorsInstanceGroupManagersPage input) {
+ return new ListErrorsInstanceGroupManagersPagedResponse(input);
+ }
+ },
+ MoreExecutors.directExecutor());
+ }
+
+ private ListErrorsInstanceGroupManagersPagedResponse(ListErrorsInstanceGroupManagersPage page) {
+ super(page, ListErrorsInstanceGroupManagersFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListErrorsInstanceGroupManagersPage
+ extends AbstractPage<
+ ListErrorsInstanceGroupManagersHttpRequest,
+ InstanceGroupManagersListErrorsResponse,
+ InstanceManagedByIgmError,
+ ListErrorsInstanceGroupManagersPage> {
+
+ private ListErrorsInstanceGroupManagersPage(
+ PageContext<
+ ListErrorsInstanceGroupManagersHttpRequest,
+ InstanceGroupManagersListErrorsResponse,
+ InstanceManagedByIgmError>
+ context,
+ InstanceGroupManagersListErrorsResponse response) {
+ super(context, response);
+ }
+
+ private static ListErrorsInstanceGroupManagersPage createEmptyPage() {
+ return new ListErrorsInstanceGroupManagersPage(null, null);
+ }
+
+ @Override
+ protected ListErrorsInstanceGroupManagersPage createPage(
+ PageContext<
+ ListErrorsInstanceGroupManagersHttpRequest,
+ InstanceGroupManagersListErrorsResponse,
+ InstanceManagedByIgmError>
+ context,
+ InstanceGroupManagersListErrorsResponse response) {
+ return new ListErrorsInstanceGroupManagersPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext<
+ ListErrorsInstanceGroupManagersHttpRequest,
+ InstanceGroupManagersListErrorsResponse,
+ InstanceManagedByIgmError>
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListErrorsInstanceGroupManagersFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListErrorsInstanceGroupManagersHttpRequest,
+ InstanceGroupManagersListErrorsResponse,
+ InstanceManagedByIgmError,
+ ListErrorsInstanceGroupManagersPage,
+ ListErrorsInstanceGroupManagersFixedSizeCollection> {
+
+ private ListErrorsInstanceGroupManagersFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListErrorsInstanceGroupManagersFixedSizeCollection createEmptyCollection() {
+ return new ListErrorsInstanceGroupManagersFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListErrorsInstanceGroupManagersFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListErrorsInstanceGroupManagersFixedSizeCollection(pages, collectionSize);
+ }
+ }
}
diff --git a/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerSettings.java b/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerSettings.java
index 4eabb9020..2c9b6f5bf 100644
--- a/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerSettings.java
+++ b/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerSettings.java
@@ -16,6 +16,7 @@
package com.google.cloud.compute.v1;
import static com.google.cloud.compute.v1.InstanceGroupManagerClient.AggregatedListInstanceGroupManagersPagedResponse;
+import static com.google.cloud.compute.v1.InstanceGroupManagerClient.ListErrorsInstanceGroupManagersPagedResponse;
import static com.google.cloud.compute.v1.InstanceGroupManagerClient.ListInstanceGroupManagersPagedResponse;
import com.google.api.core.ApiFunction;
@@ -88,6 +89,16 @@ public class InstanceGroupManagerSettings extends ClientSettings
+ applyUpdatesToInstancesInstanceGroupManagerSettings() {
+ return ((InstanceGroupManagerStubSettings) getStubSettings())
+ .applyUpdatesToInstancesInstanceGroupManagerSettings();
+ }
+
/** Returns the object with the settings used for calls to createInstancesInstanceGroupManager. */
public UnaryCallSettings
createInstancesInstanceGroupManagerSettings() {
@@ -132,6 +143,16 @@ public class InstanceGroupManagerSettings extends ClientSettings
+ listErrorsInstanceGroupManagersSettings() {
+ return ((InstanceGroupManagerStubSettings) getStubSettings())
+ .listErrorsInstanceGroupManagersSettings();
+ }
+
/**
* Returns the object with the settings used for calls to
* listManagedInstancesInstanceGroupManagers.
@@ -305,6 +326,16 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().aggregatedListInstanceGroupManagersSettings();
}
+ /**
+ * Returns the builder for the settings used for calls to
+ * applyUpdatesToInstancesInstanceGroupManager.
+ */
+ public UnaryCallSettings.Builder<
+ ApplyUpdatesToInstancesInstanceGroupManagerHttpRequest, Operation>
+ applyUpdatesToInstancesInstanceGroupManagerSettings() {
+ return getStubSettingsBuilder().applyUpdatesToInstancesInstanceGroupManagerSettings();
+ }
+
/**
* Returns the builder for the settings used for calls to createInstancesInstanceGroupManager.
*/
@@ -348,6 +379,15 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().listInstanceGroupManagersSettings();
}
+ /** Returns the builder for the settings used for calls to listErrorsInstanceGroupManagers. */
+ public PagedCallSettings.Builder<
+ ListErrorsInstanceGroupManagersHttpRequest,
+ InstanceGroupManagersListErrorsResponse,
+ ListErrorsInstanceGroupManagersPagedResponse>
+ listErrorsInstanceGroupManagersSettings() {
+ return getStubSettingsBuilder().listErrorsInstanceGroupManagersSettings();
+ }
+
/**
* Returns the builder for the settings used for calls to
* listManagedInstancesInstanceGroupManagers.
diff --git a/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatus.java b/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatus.java
index 7fa7d4fd0..c43cc2ac1 100644
--- a/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatus.java
+++ b/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerStatus.java
@@ -25,22 +25,28 @@
@Generated("by GAPIC")
@BetaApi
public final class InstanceGroupManagerStatus implements ApiMessage {
+ private final String autoscaler;
private final Boolean isStable;
private final InstanceGroupManagerStatusVersionTarget versionTarget;
private InstanceGroupManagerStatus() {
+ this.autoscaler = null;
this.isStable = null;
this.versionTarget = null;
}
private InstanceGroupManagerStatus(
- Boolean isStable, InstanceGroupManagerStatusVersionTarget versionTarget) {
+ String autoscaler, Boolean isStable, InstanceGroupManagerStatusVersionTarget versionTarget) {
+ this.autoscaler = autoscaler;
this.isStable = isStable;
this.versionTarget = versionTarget;
}
@Override
public Object getFieldValue(String fieldName) {
+ if ("autoscaler".equals(fieldName)) {
+ return autoscaler;
+ }
if ("isStable".equals(fieldName)) {
return isStable;
}
@@ -68,6 +74,11 @@ public List getFieldMask() {
return null;
}
+ /** [Output Only] The URL of the Autoscaler that targets this instance group manager. */
+ public String getAutoscaler() {
+ return autoscaler;
+ }
+
/**
* [Output Only] A bit indicating whether the managed instance group is in a stable state. A
* stable state means that: none of the instances in the managed instance group is currently
@@ -110,6 +121,7 @@ public static InstanceGroupManagerStatus getDefaultInstance() {
}
public static class Builder {
+ private String autoscaler;
private Boolean isStable;
private InstanceGroupManagerStatusVersionTarget versionTarget;
@@ -117,6 +129,9 @@ public static class Builder {
public Builder mergeFrom(InstanceGroupManagerStatus other) {
if (other == InstanceGroupManagerStatus.getDefaultInstance()) return this;
+ if (other.getAutoscaler() != null) {
+ this.autoscaler = other.autoscaler;
+ }
if (other.getIsStable() != null) {
this.isStable = other.isStable;
}
@@ -127,10 +142,22 @@ public Builder mergeFrom(InstanceGroupManagerStatus other) {
}
Builder(InstanceGroupManagerStatus source) {
+ this.autoscaler = source.autoscaler;
this.isStable = source.isStable;
this.versionTarget = source.versionTarget;
}
+ /** [Output Only] The URL of the Autoscaler that targets this instance group manager. */
+ public String getAutoscaler() {
+ return autoscaler;
+ }
+
+ /** [Output Only] The URL of the Autoscaler that targets this instance group manager. */
+ public Builder setAutoscaler(String autoscaler) {
+ this.autoscaler = autoscaler;
+ return this;
+ }
+
/**
* [Output Only] A bit indicating whether the managed instance group is in a stable state. A
* stable state means that: none of the instances in the managed instance group is currently
@@ -173,11 +200,12 @@ public Builder setVersionTarget(InstanceGroupManagerStatusVersionTarget versionT
public InstanceGroupManagerStatus build() {
- return new InstanceGroupManagerStatus(isStable, versionTarget);
+ return new InstanceGroupManagerStatus(autoscaler, isStable, versionTarget);
}
public Builder clone() {
Builder newBuilder = new Builder();
+ newBuilder.setAutoscaler(this.autoscaler);
newBuilder.setIsStable(this.isStable);
newBuilder.setVersionTarget(this.versionTarget);
return newBuilder;
@@ -187,6 +215,9 @@ public Builder clone() {
@Override
public String toString() {
return "InstanceGroupManagerStatus{"
+ + "autoscaler="
+ + autoscaler
+ + ", "
+ "isStable="
+ isStable
+ ", "
@@ -202,7 +233,8 @@ public boolean equals(Object o) {
}
if (o instanceof InstanceGroupManagerStatus) {
InstanceGroupManagerStatus that = (InstanceGroupManagerStatus) o;
- return Objects.equals(this.isStable, that.getIsStable())
+ return Objects.equals(this.autoscaler, that.getAutoscaler())
+ && Objects.equals(this.isStable, that.getIsStable())
&& Objects.equals(this.versionTarget, that.getVersionTarget());
}
return false;
@@ -210,6 +242,6 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(isStable, versionTarget);
+ return Objects.hash(autoscaler, isStable, versionTarget);
}
}
diff --git a/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerUpdatePolicy.java b/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerUpdatePolicy.java
index 81c50bb98..28df2eda8 100644
--- a/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerUpdatePolicy.java
+++ b/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerUpdatePolicy.java
@@ -29,6 +29,7 @@ public final class InstanceGroupManagerUpdatePolicy implements ApiMessage {
private final FixedOrPercent maxSurge;
private final FixedOrPercent maxUnavailable;
private final String minimalAction;
+ private final String replacementMethod;
private final String type;
private InstanceGroupManagerUpdatePolicy() {
@@ -36,6 +37,7 @@ private InstanceGroupManagerUpdatePolicy() {
this.maxSurge = null;
this.maxUnavailable = null;
this.minimalAction = null;
+ this.replacementMethod = null;
this.type = null;
}
@@ -44,11 +46,13 @@ private InstanceGroupManagerUpdatePolicy(
FixedOrPercent maxSurge,
FixedOrPercent maxUnavailable,
String minimalAction,
+ String replacementMethod,
String type) {
this.instanceRedistributionType = instanceRedistributionType;
this.maxSurge = maxSurge;
this.maxUnavailable = maxUnavailable;
this.minimalAction = minimalAction;
+ this.replacementMethod = replacementMethod;
this.type = type;
}
@@ -66,6 +70,9 @@ public Object getFieldValue(String fieldName) {
if ("minimalAction".equals(fieldName)) {
return minimalAction;
}
+ if ("replacementMethod".equals(fieldName)) {
+ return replacementMethod;
+ }
if ("type".equals(fieldName)) {
return type;
}
@@ -141,6 +148,11 @@ public String getMinimalAction() {
return minimalAction;
}
+ /** What action should be used to replace instances. See minimal_action.REPLACE */
+ public String getReplacementMethod() {
+ return replacementMethod;
+ }
+
/**
* The type of update process. You can specify either PROACTIVE so that the instance group manager
* proactively executes actions in order to bring instances to their target versions or
@@ -178,6 +190,7 @@ public static class Builder {
private FixedOrPercent maxSurge;
private FixedOrPercent maxUnavailable;
private String minimalAction;
+ private String replacementMethod;
private String type;
Builder() {}
@@ -196,6 +209,9 @@ public Builder mergeFrom(InstanceGroupManagerUpdatePolicy other) {
if (other.getMinimalAction() != null) {
this.minimalAction = other.minimalAction;
}
+ if (other.getReplacementMethod() != null) {
+ this.replacementMethod = other.replacementMethod;
+ }
if (other.getType() != null) {
this.type = other.type;
}
@@ -207,6 +223,7 @@ public Builder mergeFrom(InstanceGroupManagerUpdatePolicy other) {
this.maxSurge = source.maxSurge;
this.maxUnavailable = source.maxUnavailable;
this.minimalAction = source.minimalAction;
+ this.replacementMethod = source.replacementMethod;
this.type = source.type;
}
@@ -318,6 +335,17 @@ public Builder setMinimalAction(String minimalAction) {
return this;
}
+ /** What action should be used to replace instances. See minimal_action.REPLACE */
+ public String getReplacementMethod() {
+ return replacementMethod;
+ }
+
+ /** What action should be used to replace instances. See minimal_action.REPLACE */
+ public Builder setReplacementMethod(String replacementMethod) {
+ this.replacementMethod = replacementMethod;
+ return this;
+ }
+
/**
* The type of update process. You can specify either PROACTIVE so that the instance group
* manager proactively executes actions in order to bring instances to their target versions or
@@ -342,7 +370,12 @@ public Builder setType(String type) {
public InstanceGroupManagerUpdatePolicy build() {
return new InstanceGroupManagerUpdatePolicy(
- instanceRedistributionType, maxSurge, maxUnavailable, minimalAction, type);
+ instanceRedistributionType,
+ maxSurge,
+ maxUnavailable,
+ minimalAction,
+ replacementMethod,
+ type);
}
public Builder clone() {
@@ -351,6 +384,7 @@ public Builder clone() {
newBuilder.setMaxSurge(this.maxSurge);
newBuilder.setMaxUnavailable(this.maxUnavailable);
newBuilder.setMinimalAction(this.minimalAction);
+ newBuilder.setReplacementMethod(this.replacementMethod);
newBuilder.setType(this.type);
return newBuilder;
}
@@ -371,6 +405,9 @@ public String toString() {
+ "minimalAction="
+ minimalAction
+ ", "
+ + "replacementMethod="
+ + replacementMethod
+ + ", "
+ "type="
+ type
+ "}";
@@ -387,6 +424,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.maxSurge, that.getMaxSurge())
&& Objects.equals(this.maxUnavailable, that.getMaxUnavailable())
&& Objects.equals(this.minimalAction, that.getMinimalAction())
+ && Objects.equals(this.replacementMethod, that.getReplacementMethod())
&& Objects.equals(this.type, that.getType());
}
return false;
@@ -394,6 +432,12 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
- return Objects.hash(instanceRedistributionType, maxSurge, maxUnavailable, minimalAction, type);
+ return Objects.hash(
+ instanceRedistributionType,
+ maxSurge,
+ maxUnavailable,
+ minimalAction,
+ replacementMethod,
+ type);
}
}
diff --git a/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersListErrorsResponse.java b/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersListErrorsResponse.java
new file mode 100644
index 000000000..5000065d2
--- /dev/null
+++ b/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagersListErrorsResponse.java
@@ -0,0 +1,216 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+package com.google.cloud.compute.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.ApiMessage;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Objects;
+import javax.annotation.Generated;
+import javax.annotation.Nullable;
+
+@Generated("by GAPIC")
+@BetaApi
+public final class InstanceGroupManagersListErrorsResponse implements ApiMessage {
+ private final List items;
+ private final String nextPageToken;
+
+ private InstanceGroupManagersListErrorsResponse() {
+ this.items = null;
+ this.nextPageToken = null;
+ }
+
+ private InstanceGroupManagersListErrorsResponse(
+ List items, String nextPageToken) {
+ this.items = items;
+ this.nextPageToken = nextPageToken;
+ }
+
+ @Override
+ public Object getFieldValue(String fieldName) {
+ if ("items".equals(fieldName)) {
+ return items;
+ }
+ if ("nextPageToken".equals(fieldName)) {
+ return nextPageToken;
+ }
+ return null;
+ }
+
+ @Nullable
+ @Override
+ public ApiMessage getApiMessageRequestBody() {
+ return null;
+ }
+
+ @Nullable
+ @Override
+ /**
+ * The fields that should be serialized (even if they have empty values). If the containing
+ * message object has a non-null fieldmask, then all the fields in the field mask (and only those
+ * fields in the field mask) will be serialized. If the containing object does not have a
+ * fieldmask, then only non-empty fields will be serialized.
+ */
+ public List getFieldMask() {
+ return null;
+ }
+
+ /** [Output Only] The list of errors of the managed instance group. */
+ public List getItemsList() {
+ return items;
+ }
+
+ /**
+ * [Output Only] This token allows you to get the next page of results for list requests. If the
+ * number of results is larger than maxResults, use the nextPageToken as a value for the query
+ * parameter pageToken in the next list request. Subsequent list requests will have their own
+ * nextPageToken to continue paging through the results.
+ */
+ public String getNextPageToken() {
+ return nextPageToken;
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(InstanceGroupManagersListErrorsResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ public static InstanceGroupManagersListErrorsResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final InstanceGroupManagersListErrorsResponse DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new InstanceGroupManagersListErrorsResponse();
+ }
+
+ public static class Builder {
+ private List items;
+ private String nextPageToken;
+
+ Builder() {}
+
+ public Builder mergeFrom(InstanceGroupManagersListErrorsResponse other) {
+ if (other == InstanceGroupManagersListErrorsResponse.getDefaultInstance()) return this;
+ if (other.getItemsList() != null) {
+ this.items = other.items;
+ }
+ if (other.getNextPageToken() != null) {
+ this.nextPageToken = other.nextPageToken;
+ }
+ return this;
+ }
+
+ Builder(InstanceGroupManagersListErrorsResponse source) {
+ this.items = source.items;
+ this.nextPageToken = source.nextPageToken;
+ }
+
+ /** [Output Only] The list of errors of the managed instance group. */
+ public List getItemsList() {
+ return items;
+ }
+
+ /** [Output Only] The list of errors of the managed instance group. */
+ public Builder addAllItems(List items) {
+ if (this.items == null) {
+ this.items = new LinkedList<>();
+ }
+ this.items.addAll(items);
+ return this;
+ }
+
+ /** [Output Only] The list of errors of the managed instance group. */
+ public Builder addItems(InstanceManagedByIgmError items) {
+ if (this.items == null) {
+ this.items = new LinkedList<>();
+ }
+ this.items.add(items);
+ return this;
+ }
+
+ /**
+ * [Output Only] This token allows you to get the next page of results for list requests. If the
+ * number of results is larger than maxResults, use the nextPageToken as a value for the query
+ * parameter pageToken in the next list request. Subsequent list requests will have their own
+ * nextPageToken to continue paging through the results.
+ */
+ public String getNextPageToken() {
+ return nextPageToken;
+ }
+
+ /**
+ * [Output Only] This token allows you to get the next page of results for list requests. If the
+ * number of results is larger than maxResults, use the nextPageToken as a value for the query
+ * parameter pageToken in the next list request. Subsequent list requests will have their own
+ * nextPageToken to continue paging through the results.
+ */
+ public Builder setNextPageToken(String nextPageToken) {
+ this.nextPageToken = nextPageToken;
+ return this;
+ }
+
+ public InstanceGroupManagersListErrorsResponse build() {
+
+ return new InstanceGroupManagersListErrorsResponse(items, nextPageToken);
+ }
+
+ public Builder clone() {
+ Builder newBuilder = new Builder();
+ newBuilder.addAllItems(this.items);
+ newBuilder.setNextPageToken(this.nextPageToken);
+ return newBuilder;
+ }
+ }
+
+ @Override
+ public String toString() {
+ return "InstanceGroupManagersListErrorsResponse{"
+ + "items="
+ + items
+ + ", "
+ + "nextPageToken="
+ + nextPageToken
+ + "}";
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof InstanceGroupManagersListErrorsResponse) {
+ InstanceGroupManagersListErrorsResponse that = (InstanceGroupManagersListErrorsResponse) o;
+ return Objects.equals(this.items, that.getItemsList())
+ && Objects.equals(this.nextPageToken, that.getNextPageToken());
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(items, nextPageToken);
+ }
+}
diff --git a/src/main/java/com/google/cloud/compute/v1/InstanceManagedByIgmError.java b/src/main/java/com/google/cloud/compute/v1/InstanceManagedByIgmError.java
new file mode 100644
index 000000000..9c738e169
--- /dev/null
+++ b/src/main/java/com/google/cloud/compute/v1/InstanceManagedByIgmError.java
@@ -0,0 +1,232 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+package com.google.cloud.compute.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.ApiMessage;
+import java.util.List;
+import java.util.Objects;
+import javax.annotation.Generated;
+import javax.annotation.Nullable;
+
+@Generated("by GAPIC")
+@BetaApi
+public final class InstanceManagedByIgmError implements ApiMessage {
+ private final InstanceManagedByIgmErrorManagedInstanceError error;
+ private final InstanceManagedByIgmErrorInstanceActionDetails instanceActionDetails;
+ private final String timestamp;
+
+ private InstanceManagedByIgmError() {
+ this.error = null;
+ this.instanceActionDetails = null;
+ this.timestamp = null;
+ }
+
+ private InstanceManagedByIgmError(
+ InstanceManagedByIgmErrorManagedInstanceError error,
+ InstanceManagedByIgmErrorInstanceActionDetails instanceActionDetails,
+ String timestamp) {
+ this.error = error;
+ this.instanceActionDetails = instanceActionDetails;
+ this.timestamp = timestamp;
+ }
+
+ @Override
+ public Object getFieldValue(String fieldName) {
+ if ("error".equals(fieldName)) {
+ return error;
+ }
+ if ("instanceActionDetails".equals(fieldName)) {
+ return instanceActionDetails;
+ }
+ if ("timestamp".equals(fieldName)) {
+ return timestamp;
+ }
+ return null;
+ }
+
+ @Nullable
+ @Override
+ public ApiMessage getApiMessageRequestBody() {
+ return null;
+ }
+
+ @Nullable
+ @Override
+ /**
+ * The fields that should be serialized (even if they have empty values). If the containing
+ * message object has a non-null fieldmask, then all the fields in the field mask (and only those
+ * fields in the field mask) will be serialized. If the containing object does not have a
+ * fieldmask, then only non-empty fields will be serialized.
+ */
+ public List getFieldMask() {
+ return null;
+ }
+
+ /** [Output Only] Contents of the error. */
+ public InstanceManagedByIgmErrorManagedInstanceError getError() {
+ return error;
+ }
+
+ /**
+ * [Output Only] Details of the instance action that triggered this error. May be null, if the
+ * error was not caused by an action on an instance. This field is optional.
+ */
+ public InstanceManagedByIgmErrorInstanceActionDetails getInstanceActionDetails() {
+ return instanceActionDetails;
+ }
+
+ /** [Output Only] The time that this error occurred. This value is in RFC3339 text format. */
+ public String getTimestamp() {
+ return timestamp;
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(InstanceManagedByIgmError prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ public static InstanceManagedByIgmError getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final InstanceManagedByIgmError DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new InstanceManagedByIgmError();
+ }
+
+ public static class Builder {
+ private InstanceManagedByIgmErrorManagedInstanceError error;
+ private InstanceManagedByIgmErrorInstanceActionDetails instanceActionDetails;
+ private String timestamp;
+
+ Builder() {}
+
+ public Builder mergeFrom(InstanceManagedByIgmError other) {
+ if (other == InstanceManagedByIgmError.getDefaultInstance()) return this;
+ if (other.getError() != null) {
+ this.error = other.error;
+ }
+ if (other.getInstanceActionDetails() != null) {
+ this.instanceActionDetails = other.instanceActionDetails;
+ }
+ if (other.getTimestamp() != null) {
+ this.timestamp = other.timestamp;
+ }
+ return this;
+ }
+
+ Builder(InstanceManagedByIgmError source) {
+ this.error = source.error;
+ this.instanceActionDetails = source.instanceActionDetails;
+ this.timestamp = source.timestamp;
+ }
+
+ /** [Output Only] Contents of the error. */
+ public InstanceManagedByIgmErrorManagedInstanceError getError() {
+ return error;
+ }
+
+ /** [Output Only] Contents of the error. */
+ public Builder setError(InstanceManagedByIgmErrorManagedInstanceError error) {
+ this.error = error;
+ return this;
+ }
+
+ /**
+ * [Output Only] Details of the instance action that triggered this error. May be null, if the
+ * error was not caused by an action on an instance. This field is optional.
+ */
+ public InstanceManagedByIgmErrorInstanceActionDetails getInstanceActionDetails() {
+ return instanceActionDetails;
+ }
+
+ /**
+ * [Output Only] Details of the instance action that triggered this error. May be null, if the
+ * error was not caused by an action on an instance. This field is optional.
+ */
+ public Builder setInstanceActionDetails(
+ InstanceManagedByIgmErrorInstanceActionDetails instanceActionDetails) {
+ this.instanceActionDetails = instanceActionDetails;
+ return this;
+ }
+
+ /** [Output Only] The time that this error occurred. This value is in RFC3339 text format. */
+ public String getTimestamp() {
+ return timestamp;
+ }
+
+ /** [Output Only] The time that this error occurred. This value is in RFC3339 text format. */
+ public Builder setTimestamp(String timestamp) {
+ this.timestamp = timestamp;
+ return this;
+ }
+
+ public InstanceManagedByIgmError build() {
+
+ return new InstanceManagedByIgmError(error, instanceActionDetails, timestamp);
+ }
+
+ public Builder clone() {
+ Builder newBuilder = new Builder();
+ newBuilder.setError(this.error);
+ newBuilder.setInstanceActionDetails(this.instanceActionDetails);
+ newBuilder.setTimestamp(this.timestamp);
+ return newBuilder;
+ }
+ }
+
+ @Override
+ public String toString() {
+ return "InstanceManagedByIgmError{"
+ + "error="
+ + error
+ + ", "
+ + "instanceActionDetails="
+ + instanceActionDetails
+ + ", "
+ + "timestamp="
+ + timestamp
+ + "}";
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof InstanceManagedByIgmError) {
+ InstanceManagedByIgmError that = (InstanceManagedByIgmError) o;
+ return Objects.equals(this.error, that.getError())
+ && Objects.equals(this.instanceActionDetails, that.getInstanceActionDetails())
+ && Objects.equals(this.timestamp, that.getTimestamp());
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(error, instanceActionDetails, timestamp);
+ }
+}
diff --git a/src/main/java/com/google/cloud/compute/v1/InstanceManagedByIgmErrorInstanceActionDetails.java b/src/main/java/com/google/cloud/compute/v1/InstanceManagedByIgmErrorInstanceActionDetails.java
new file mode 100644
index 000000000..53edcdad4
--- /dev/null
+++ b/src/main/java/com/google/cloud/compute/v1/InstanceManagedByIgmErrorInstanceActionDetails.java
@@ -0,0 +1,251 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+package com.google.cloud.compute.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.ApiMessage;
+import java.util.List;
+import java.util.Objects;
+import javax.annotation.Generated;
+import javax.annotation.Nullable;
+
+@Generated("by GAPIC")
+@BetaApi
+public final class InstanceManagedByIgmErrorInstanceActionDetails implements ApiMessage {
+ private final String action;
+ private final String instance;
+ private final ManagedInstanceVersion version;
+
+ private InstanceManagedByIgmErrorInstanceActionDetails() {
+ this.action = null;
+ this.instance = null;
+ this.version = null;
+ }
+
+ private InstanceManagedByIgmErrorInstanceActionDetails(
+ String action, String instance, ManagedInstanceVersion version) {
+ this.action = action;
+ this.instance = instance;
+ this.version = version;
+ }
+
+ @Override
+ public Object getFieldValue(String fieldName) {
+ if ("action".equals(fieldName)) {
+ return action;
+ }
+ if ("instance".equals(fieldName)) {
+ return instance;
+ }
+ if ("version".equals(fieldName)) {
+ return version;
+ }
+ return null;
+ }
+
+ @Nullable
+ @Override
+ public ApiMessage getApiMessageRequestBody() {
+ return null;
+ }
+
+ @Nullable
+ @Override
+ /**
+ * The fields that should be serialized (even if they have empty values). If the containing
+ * message object has a non-null fieldmask, then all the fields in the field mask (and only those
+ * fields in the field mask) will be serialized. If the containing object does not have a
+ * fieldmask, then only non-empty fields will be serialized.
+ */
+ public List getFieldMask() {
+ return null;
+ }
+
+ /**
+ * [Output Only] Action that managed instance group was executing on the instance when the error
+ * occurred. Possible values:
+ */
+ public String getAction() {
+ return action;
+ }
+
+ /**
+ * [Output Only] The URL of the instance. The URL can be set even if the instance has not yet been
+ * created.
+ */
+ public String getInstance() {
+ return instance;
+ }
+
+ /**
+ * [Output Only] Version this instance was created from, or was being created from, but the
+ * creation failed. Corresponds to one of the versions that were set on the Instance Group Manager
+ * resource at the time this instance was being created.
+ */
+ public ManagedInstanceVersion getVersion() {
+ return version;
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(InstanceManagedByIgmErrorInstanceActionDetails prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ public static InstanceManagedByIgmErrorInstanceActionDetails getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final InstanceManagedByIgmErrorInstanceActionDetails DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new InstanceManagedByIgmErrorInstanceActionDetails();
+ }
+
+ public static class Builder {
+ private String action;
+ private String instance;
+ private ManagedInstanceVersion version;
+
+ Builder() {}
+
+ public Builder mergeFrom(InstanceManagedByIgmErrorInstanceActionDetails other) {
+ if (other == InstanceManagedByIgmErrorInstanceActionDetails.getDefaultInstance()) return this;
+ if (other.getAction() != null) {
+ this.action = other.action;
+ }
+ if (other.getInstance() != null) {
+ this.instance = other.instance;
+ }
+ if (other.getVersion() != null) {
+ this.version = other.version;
+ }
+ return this;
+ }
+
+ Builder(InstanceManagedByIgmErrorInstanceActionDetails source) {
+ this.action = source.action;
+ this.instance = source.instance;
+ this.version = source.version;
+ }
+
+ /**
+ * [Output Only] Action that managed instance group was executing on the instance when the error
+ * occurred. Possible values:
+ */
+ public String getAction() {
+ return action;
+ }
+
+ /**
+ * [Output Only] Action that managed instance group was executing on the instance when the error
+ * occurred. Possible values:
+ */
+ public Builder setAction(String action) {
+ this.action = action;
+ return this;
+ }
+
+ /**
+ * [Output Only] The URL of the instance. The URL can be set even if the instance has not yet
+ * been created.
+ */
+ public String getInstance() {
+ return instance;
+ }
+
+ /**
+ * [Output Only] The URL of the instance. The URL can be set even if the instance has not yet
+ * been created.
+ */
+ public Builder setInstance(String instance) {
+ this.instance = instance;
+ return this;
+ }
+
+ /**
+ * [Output Only] Version this instance was created from, or was being created from, but the
+ * creation failed. Corresponds to one of the versions that were set on the Instance Group
+ * Manager resource at the time this instance was being created.
+ */
+ public ManagedInstanceVersion getVersion() {
+ return version;
+ }
+
+ /**
+ * [Output Only] Version this instance was created from, or was being created from, but the
+ * creation failed. Corresponds to one of the versions that were set on the Instance Group
+ * Manager resource at the time this instance was being created.
+ */
+ public Builder setVersion(ManagedInstanceVersion version) {
+ this.version = version;
+ return this;
+ }
+
+ public InstanceManagedByIgmErrorInstanceActionDetails build() {
+
+ return new InstanceManagedByIgmErrorInstanceActionDetails(action, instance, version);
+ }
+
+ public Builder clone() {
+ Builder newBuilder = new Builder();
+ newBuilder.setAction(this.action);
+ newBuilder.setInstance(this.instance);
+ newBuilder.setVersion(this.version);
+ return newBuilder;
+ }
+ }
+
+ @Override
+ public String toString() {
+ return "InstanceManagedByIgmErrorInstanceActionDetails{"
+ + "action="
+ + action
+ + ", "
+ + "instance="
+ + instance
+ + ", "
+ + "version="
+ + version
+ + "}";
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof InstanceManagedByIgmErrorInstanceActionDetails) {
+ InstanceManagedByIgmErrorInstanceActionDetails that =
+ (InstanceManagedByIgmErrorInstanceActionDetails) o;
+ return Objects.equals(this.action, that.getAction())
+ && Objects.equals(this.instance, that.getInstance())
+ && Objects.equals(this.version, that.getVersion());
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(action, instance, version);
+ }
+}
diff --git a/src/main/java/com/google/cloud/compute/v1/InstanceManagedByIgmErrorManagedInstanceError.java b/src/main/java/com/google/cloud/compute/v1/InstanceManagedByIgmErrorManagedInstanceError.java
new file mode 100644
index 000000000..d723bd732
--- /dev/null
+++ b/src/main/java/com/google/cloud/compute/v1/InstanceManagedByIgmErrorManagedInstanceError.java
@@ -0,0 +1,188 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+package com.google.cloud.compute.v1;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.httpjson.ApiMessage;
+import java.util.List;
+import java.util.Objects;
+import javax.annotation.Generated;
+import javax.annotation.Nullable;
+
+@Generated("by GAPIC")
+@BetaApi
+public final class InstanceManagedByIgmErrorManagedInstanceError implements ApiMessage {
+ private final String code;
+ private final String message;
+
+ private InstanceManagedByIgmErrorManagedInstanceError() {
+ this.code = null;
+ this.message = null;
+ }
+
+ private InstanceManagedByIgmErrorManagedInstanceError(String code, String message) {
+ this.code = code;
+ this.message = message;
+ }
+
+ @Override
+ public Object getFieldValue(String fieldName) {
+ if ("code".equals(fieldName)) {
+ return code;
+ }
+ if ("message".equals(fieldName)) {
+ return message;
+ }
+ return null;
+ }
+
+ @Nullable
+ @Override
+ public ApiMessage getApiMessageRequestBody() {
+ return null;
+ }
+
+ @Nullable
+ @Override
+ /**
+ * The fields that should be serialized (even if they have empty values). If the containing
+ * message object has a non-null fieldmask, then all the fields in the field mask (and only those
+ * fields in the field mask) will be serialized. If the containing object does not have a
+ * fieldmask, then only non-empty fields will be serialized.
+ */
+ public List getFieldMask() {
+ return null;
+ }
+
+ /** [Output Only] Error code. */
+ public String getCode() {
+ return code;
+ }
+
+ /** [Output Only] Error message. */
+ public String getMessage() {
+ return message;
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(InstanceManagedByIgmErrorManagedInstanceError prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ public static InstanceManagedByIgmErrorManagedInstanceError getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final InstanceManagedByIgmErrorManagedInstanceError DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new InstanceManagedByIgmErrorManagedInstanceError();
+ }
+
+ public static class Builder {
+ private String code;
+ private String message;
+
+ Builder() {}
+
+ public Builder mergeFrom(InstanceManagedByIgmErrorManagedInstanceError other) {
+ if (other == InstanceManagedByIgmErrorManagedInstanceError.getDefaultInstance()) return this;
+ if (other.getCode() != null) {
+ this.code = other.code;
+ }
+ if (other.getMessage() != null) {
+ this.message = other.message;
+ }
+ return this;
+ }
+
+ Builder(InstanceManagedByIgmErrorManagedInstanceError source) {
+ this.code = source.code;
+ this.message = source.message;
+ }
+
+ /** [Output Only] Error code. */
+ public String getCode() {
+ return code;
+ }
+
+ /** [Output Only] Error code. */
+ public Builder setCode(String code) {
+ this.code = code;
+ return this;
+ }
+
+ /** [Output Only] Error message. */
+ public String getMessage() {
+ return message;
+ }
+
+ /** [Output Only] Error message. */
+ public Builder setMessage(String message) {
+ this.message = message;
+ return this;
+ }
+
+ public InstanceManagedByIgmErrorManagedInstanceError build() {
+
+ return new InstanceManagedByIgmErrorManagedInstanceError(code, message);
+ }
+
+ public Builder clone() {
+ Builder newBuilder = new Builder();
+ newBuilder.setCode(this.code);
+ newBuilder.setMessage(this.message);
+ return newBuilder;
+ }
+ }
+
+ @Override
+ public String toString() {
+ return "InstanceManagedByIgmErrorManagedInstanceError{"
+ + "code="
+ + code
+ + ", "
+ + "message="
+ + message
+ + "}";
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o instanceof InstanceManagedByIgmErrorManagedInstanceError) {
+ InstanceManagedByIgmErrorManagedInstanceError that =
+ (InstanceManagedByIgmErrorManagedInstanceError) o;
+ return Objects.equals(this.code, that.getCode())
+ && Objects.equals(this.message, that.getMessage());
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(code, message);
+ }
+}
diff --git a/src/main/java/com/google/cloud/compute/v1/InstanceProperties.java b/src/main/java/com/google/cloud/compute/v1/InstanceProperties.java
index 515b922b2..fa5ec3b68 100644
--- a/src/main/java/com/google/cloud/compute/v1/InstanceProperties.java
+++ b/src/main/java/com/google/cloud/compute/v1/InstanceProperties.java
@@ -37,6 +37,7 @@ public final class InstanceProperties implements ApiMessage {
private final String minCpuPlatform;
private final List networkInterfaces;
private final ReservationAffinity reservationAffinity;
+ private final List resourcePolicies;
private final Scheduling scheduling;
private final List serviceAccounts;
private final ShieldedInstanceConfig shieldedInstanceConfig;
@@ -53,6 +54,7 @@ private InstanceProperties() {
this.minCpuPlatform = null;
this.networkInterfaces = null;
this.reservationAffinity = null;
+ this.resourcePolicies = null;
this.scheduling = null;
this.serviceAccounts = null;
this.shieldedInstanceConfig = null;
@@ -70,6 +72,7 @@ private InstanceProperties(
String minCpuPlatform,
List networkInterfaces,
ReservationAffinity reservationAffinity,
+ List resourcePolicies,
Scheduling scheduling,
List serviceAccounts,
ShieldedInstanceConfig shieldedInstanceConfig,
@@ -84,6 +87,7 @@ private InstanceProperties(
this.minCpuPlatform = minCpuPlatform;
this.networkInterfaces = networkInterfaces;
this.reservationAffinity = reservationAffinity;
+ this.resourcePolicies = resourcePolicies;
this.scheduling = scheduling;
this.serviceAccounts = serviceAccounts;
this.shieldedInstanceConfig = shieldedInstanceConfig;
@@ -122,6 +126,9 @@ public Object getFieldValue(String fieldName) {
if ("reservationAffinity".equals(fieldName)) {
return reservationAffinity;
}
+ if ("resourcePolicies".equals(fieldName)) {
+ return resourcePolicies;
+ }
if ("scheduling".equals(fieldName)) {
return scheduling;
}
@@ -227,6 +234,11 @@ public ReservationAffinity getReservationAffinity() {
return reservationAffinity;
}
+ /** Resource policies (names, not ULRs) applied to instances created from this template. */
+ public List getResourcePoliciesList() {
+ return resourcePolicies;
+ }
+
/** Specifies the scheduling options for the instances that are created from this template. */
public Scheduling getScheduling() {
return scheduling;
@@ -287,6 +299,7 @@ public static class Builder {
private String minCpuPlatform;
private List networkInterfaces;
private ReservationAffinity reservationAffinity;
+ private List resourcePolicies;
private Scheduling scheduling;
private List serviceAccounts;
private ShieldedInstanceConfig shieldedInstanceConfig;
@@ -326,6 +339,9 @@ public Builder mergeFrom(InstanceProperties other) {
if (other.getReservationAffinity() != null) {
this.reservationAffinity = other.reservationAffinity;
}
+ if (other.getResourcePoliciesList() != null) {
+ this.resourcePolicies = other.resourcePolicies;
+ }
if (other.getScheduling() != null) {
this.scheduling = other.scheduling;
}
@@ -352,6 +368,7 @@ public Builder mergeFrom(InstanceProperties other) {
this.minCpuPlatform = source.minCpuPlatform;
this.networkInterfaces = source.networkInterfaces;
this.reservationAffinity = source.reservationAffinity;
+ this.resourcePolicies = source.resourcePolicies;
this.scheduling = source.scheduling;
this.serviceAccounts = source.serviceAccounts;
this.shieldedInstanceConfig = source.shieldedInstanceConfig;
@@ -553,6 +570,29 @@ public Builder setReservationAffinity(ReservationAffinity reservationAffinity) {
return this;
}
+ /** Resource policies (names, not ULRs) applied to instances created from this template. */
+ public List getResourcePoliciesList() {
+ return resourcePolicies;
+ }
+
+ /** Resource policies (names, not ULRs) applied to instances created from this template. */
+ public Builder addAllResourcePolicies(List resourcePolicies) {
+ if (this.resourcePolicies == null) {
+ this.resourcePolicies = new LinkedList<>();
+ }
+ this.resourcePolicies.addAll(resourcePolicies);
+ return this;
+ }
+
+ /** Resource policies (names, not ULRs) applied to instances created from this template. */
+ public Builder addResourcePolicies(String resourcePolicies) {
+ if (this.resourcePolicies == null) {
+ this.resourcePolicies = new LinkedList<>();
+ }
+ this.resourcePolicies.add(resourcePolicies);
+ return this;
+ }
+
/** Specifies the scheduling options for the instances that are created from this template. */
public Scheduling getScheduling() {
return scheduling;
@@ -640,6 +680,7 @@ public InstanceProperties build() {
minCpuPlatform,
networkInterfaces,
reservationAffinity,
+ resourcePolicies,
scheduling,
serviceAccounts,
shieldedInstanceConfig,
@@ -658,6 +699,7 @@ public Builder clone() {
newBuilder.setMinCpuPlatform(this.minCpuPlatform);
newBuilder.addAllNetworkInterfaces(this.networkInterfaces);
newBuilder.setReservationAffinity(this.reservationAffinity);
+ newBuilder.addAllResourcePolicies(this.resourcePolicies);
newBuilder.setScheduling(this.scheduling);
newBuilder.addAllServiceAccounts(this.serviceAccounts);
newBuilder.setShieldedInstanceConfig(this.shieldedInstanceConfig);
@@ -699,6 +741,9 @@ public String toString() {
+ "reservationAffinity="
+ reservationAffinity
+ ", "
+ + "resourcePolicies="
+ + resourcePolicies
+ + ", "
+ "scheduling="
+ scheduling
+ ", "
@@ -730,6 +775,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.minCpuPlatform, that.getMinCpuPlatform())
&& Objects.equals(this.networkInterfaces, that.getNetworkInterfacesList())
&& Objects.equals(this.reservationAffinity, that.getReservationAffinity())
+ && Objects.equals(this.resourcePolicies, that.getResourcePoliciesList())
&& Objects.equals(this.scheduling, that.getScheduling())
&& Objects.equals(this.serviceAccounts, that.getServiceAccountsList())
&& Objects.equals(this.shieldedInstanceConfig, that.getShieldedInstanceConfig())
@@ -751,6 +797,7 @@ public int hashCode() {
minCpuPlatform,
networkInterfaces,
reservationAffinity,
+ resourcePolicies,
scheduling,
serviceAccounts,
shieldedInstanceConfig,
diff --git a/src/main/java/com/google/cloud/compute/v1/InstanceSettings.java b/src/main/java/com/google/cloud/compute/v1/InstanceSettings.java
index f0093267f..ebdf55c1d 100644
--- a/src/main/java/com/google/cloud/compute/v1/InstanceSettings.java
+++ b/src/main/java/com/google/cloud/compute/v1/InstanceSettings.java
@@ -76,6 +76,12 @@ public class InstanceSettings extends ClientSettings {
return ((InstanceStubSettings) getStubSettings()).addAccessConfigInstanceSettings();
}
+ /** Returns the object with the settings used for calls to addResourcePoliciesInstance. */
+ public UnaryCallSettings
+ addResourcePoliciesInstanceSettings() {
+ return ((InstanceStubSettings) getStubSettings()).addResourcePoliciesInstanceSettings();
+ }
+
/** Returns the object with the settings used for calls to aggregatedListInstances. */
public PagedCallSettings<
AggregatedListInstancesHttpRequest,
@@ -154,6 +160,12 @@ public UnaryCallSettings insertInstanceSet
return ((InstanceStubSettings) getStubSettings()).listReferrersInstancesSettings();
}
+ /** Returns the object with the settings used for calls to removeResourcePoliciesInstance. */
+ public UnaryCallSettings
+ removeResourcePoliciesInstanceSettings() {
+ return ((InstanceStubSettings) getStubSettings()).removeResourcePoliciesInstanceSettings();
+ }
+
/** Returns the object with the settings used for calls to resetInstance. */
public UnaryCallSettings resetInstanceSettings() {
return ((InstanceStubSettings) getStubSettings()).resetInstanceSettings();
@@ -260,6 +272,11 @@ public UnaryCallSettings stopInstanceSetting
return ((InstanceStubSettings) getStubSettings()).testIamPermissionsInstanceSettings();
}
+ /** Returns the object with the settings used for calls to updateInstance. */
+ public UnaryCallSettings updateInstanceSettings() {
+ return ((InstanceStubSettings) getStubSettings()).updateInstanceSettings();
+ }
+
/** Returns the object with the settings used for calls to updateAccessConfigInstance. */
public UnaryCallSettings
updateAccessConfigInstanceSettings() {
@@ -394,6 +411,12 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().addAccessConfigInstanceSettings();
}
+ /** Returns the builder for the settings used for calls to addResourcePoliciesInstance. */
+ public UnaryCallSettings.Builder
+ addResourcePoliciesInstanceSettings() {
+ return getStubSettingsBuilder().addResourcePoliciesInstanceSettings();
+ }
+
/** Returns the builder for the settings used for calls to aggregatedListInstances. */
public PagedCallSettings.Builder<
AggregatedListInstancesHttpRequest,
@@ -481,6 +504,12 @@ public UnaryCallSettings.Builder getInstanceSe
return getStubSettingsBuilder().listReferrersInstancesSettings();
}
+ /** Returns the builder for the settings used for calls to removeResourcePoliciesInstance. */
+ public UnaryCallSettings.Builder
+ removeResourcePoliciesInstanceSettings() {
+ return getStubSettingsBuilder().removeResourcePoliciesInstanceSettings();
+ }
+
/** Returns the builder for the settings used for calls to resetInstance. */
public UnaryCallSettings.Builder resetInstanceSettings() {
return getStubSettingsBuilder().resetInstanceSettings();
@@ -590,6 +619,12 @@ public UnaryCallSettings.Builder