diff --git a/clients/google-api-services-compute/alpha/2.0.0/README.md b/clients/google-api-services-compute/alpha/2.0.0/README.md index e774242b5b9..933c9b1f5b9 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/README.md +++ b/clients/google-api-services-compute/alpha/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-compute - alpha-rev20260709-2.0.0 + alpha-rev20260722-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:alpha-rev20260709-2.0.0' + implementation 'com.google.apis:google-api-services-compute:alpha-rev20260722-2.0.0' } ``` diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java index 47e4ca5807e..bdde96897bd 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/Compute.java @@ -4915,6 +4915,179 @@ public CalendarMode set(String parameterName, Object value) { return (CalendarMode) super.set(parameterName, value); } } + /** + * Advise on whether extending an existing Future Reservation is possible based on the desired + * extension end time. If capacity is not available for the entire requested duration, the method + * will recommend the longest possible extension. + * + * Create a request for the method "advice.calendarModeExtension". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link CalendarModeExtension#execute()} method to invoke the remote + * operation. + * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.CalendarModeExtensionAdviceRequest} + * @return the request + */ + public CalendarModeExtension calendarModeExtension(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.CalendarModeExtensionAdviceRequest content) throws java.io.IOException { + CalendarModeExtension result = new CalendarModeExtension(project, region, content); + initialize(result); + return result; + } + + public class CalendarModeExtension extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/regions/{region}/advice/calendarModeExtension"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + private final java.util.regex.Pattern REGION_PATTERN = + java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + + /** + * Advise on whether extending an existing Future Reservation is possible based on the desired + * extension end time. If capacity is not available for the entire requested duration, the method + * will recommend the longest possible extension. + * + * Create a request for the method "advice.calendarModeExtension". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link CalendarModeExtension#execute()} method to invoke the remote + * operation.

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

+ * + * @param project Project ID for this request. + * @param region Name of the region for this request. + * @param content the {@link com.google.api.services.compute.model.CalendarModeExtensionAdviceRequest} + * @since 1.13 + */ + protected CalendarModeExtension(java.lang.String project, java.lang.String region, com.google.api.services.compute.model.CalendarModeExtensionAdviceRequest content) { + super(Compute.this, "POST", REST_PATH, content, com.google.api.services.compute.model.CalendarModeExtensionAdviceResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.region = com.google.api.client.util.Preconditions.checkNotNull(region, "Required parameter region must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + } + + @Override + public CalendarModeExtension set$Xgafv(java.lang.String $Xgafv) { + return (CalendarModeExtension) super.set$Xgafv($Xgafv); + } + + @Override + public CalendarModeExtension setAccessToken(java.lang.String accessToken) { + return (CalendarModeExtension) super.setAccessToken(accessToken); + } + + @Override + public CalendarModeExtension setAlt(java.lang.String alt) { + return (CalendarModeExtension) super.setAlt(alt); + } + + @Override + public CalendarModeExtension setCallback(java.lang.String callback) { + return (CalendarModeExtension) super.setCallback(callback); + } + + @Override + public CalendarModeExtension setFields(java.lang.String fields) { + return (CalendarModeExtension) super.setFields(fields); + } + + @Override + public CalendarModeExtension setKey(java.lang.String key) { + return (CalendarModeExtension) super.setKey(key); + } + + @Override + public CalendarModeExtension setOauthToken(java.lang.String oauthToken) { + return (CalendarModeExtension) super.setOauthToken(oauthToken); + } + + @Override + public CalendarModeExtension setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CalendarModeExtension) super.setPrettyPrint(prettyPrint); + } + + @Override + public CalendarModeExtension setQuotaUser(java.lang.String quotaUser) { + return (CalendarModeExtension) super.setQuotaUser(quotaUser); + } + + @Override + public CalendarModeExtension setUploadType(java.lang.String uploadType) { + return (CalendarModeExtension) super.setUploadType(uploadType); + } + + @Override + public CalendarModeExtension setUploadProtocol(java.lang.String uploadProtocol) { + return (CalendarModeExtension) super.setUploadProtocol(uploadProtocol); + } + + @Override + public CalendarModeExtension setUserIp(java.lang.String userIp) { + return (CalendarModeExtension) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public CalendarModeExtension setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Name of the region for this request. */ + public CalendarModeExtension setRegion(java.lang.String region) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REGION_PATTERN.matcher(region).matches(), + "Parameter region must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.region = region; + return this; + } + + @Override + public CalendarModeExtension set(String parameterName, Object value) { + return (CalendarModeExtension) super.set(parameterName, value); + } + } /** * Advice on making real-time decisions (such as choosing zone or machine types) during deployment * to maximize your chances of obtaining capacity. @@ -154803,7 +154976,11 @@ public ProjectViews projectViews() { public class ProjectViews { /** - * Returns the specified global ProjectViews resource, with a regional context. + * Returns the specified global ProjectViews resource, with a regional context. This regional API + * endpoint reads resource metadata from regional read-only replicas. Because changes are copied to + * these regional replicas asynchronously, for real-time resource reads or any write operations + * (creating, updating, or deleting resources), use the global + * [projects.get](https://cloud.google.com/compute/docs/reference/rest/v1/projects/get) endpoint. * * Create a request for the method "projectViews.get". * @@ -154831,7 +155008,11 @@ public class Get extends ComputeRequest servic * URL to networkservices.ServiceLbPolicy resource. * * Can only be set if load balancing scheme is EXTERNAL_MANAGED, INTERNAL_MANAGED or - * INTERNAL_SELF_MANAGED and the scope is global. + * INTERNAL_SELF_MANAGED for a global backend service, and EXTERNAL_MANAGED or INTERNAL_MANAGED + * for a regional backend service. For a global backend service, the service lb policy must be + * global. For a regional backend service, the service lb policy must be regional and in the same + * region. * @return value or {@code null} for none */ public java.lang.String getServiceLbPolicy() { @@ -1965,7 +1971,10 @@ public java.lang.String getServiceLbPolicy() { * URL to networkservices.ServiceLbPolicy resource. * * Can only be set if load balancing scheme is EXTERNAL_MANAGED, INTERNAL_MANAGED or - * INTERNAL_SELF_MANAGED and the scope is global. + * INTERNAL_SELF_MANAGED for a global backend service, and EXTERNAL_MANAGED or INTERNAL_MANAGED + * for a regional backend service. For a global backend service, the service lb policy must be + * global. For a regional backend service, the service lb policy must be regional and in the same + * region. * @param serviceLbPolicy serviceLbPolicy or {@code null} for none */ public BackendService setServiceLbPolicy(java.lang.String serviceLbPolicy) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CalendarModeExtensionAdviceRequest.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CalendarModeExtensionAdviceRequest.java new file mode 100644 index 00000000000..1d399c83e5d --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CalendarModeExtensionAdviceRequest.java @@ -0,0 +1,97 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A request to recommend the best duration for extending an existing Future Reservation in CALENDAR + * mode, that is equal or less than the specified extension duration. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CalendarModeExtensionAdviceRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The desired end time after the Future Reservation is extended. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTimeNotLaterThan; + + /** + * Required. Reference to the Future Reservation, in the format: + * projects/{project}/zones/{zone}/futureReservations/{name} Full URIs that include hostnames + * (like compute.googleapis.com or www.googleapis.com) are also supported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String futureReservation; + + /** + * Required. The desired end time after the Future Reservation is extended. + * @return value or {@code null} for none + */ + public String getEndTimeNotLaterThan() { + return endTimeNotLaterThan; + } + + /** + * Required. The desired end time after the Future Reservation is extended. + * @param endTimeNotLaterThan endTimeNotLaterThan or {@code null} for none + */ + public CalendarModeExtensionAdviceRequest setEndTimeNotLaterThan(String endTimeNotLaterThan) { + this.endTimeNotLaterThan = endTimeNotLaterThan; + return this; + } + + /** + * Required. Reference to the Future Reservation, in the format: + * projects/{project}/zones/{zone}/futureReservations/{name} Full URIs that include hostnames + * (like compute.googleapis.com or www.googleapis.com) are also supported. + * @return value or {@code null} for none + */ + public java.lang.String getFutureReservation() { + return futureReservation; + } + + /** + * Required. Reference to the Future Reservation, in the format: + * projects/{project}/zones/{zone}/futureReservations/{name} Full URIs that include hostnames + * (like compute.googleapis.com or www.googleapis.com) are also supported. + * @param futureReservation futureReservation or {@code null} for none + */ + public CalendarModeExtensionAdviceRequest setFutureReservation(java.lang.String futureReservation) { + this.futureReservation = futureReservation; + return this; + } + + @Override + public CalendarModeExtensionAdviceRequest set(String fieldName, Object value) { + return (CalendarModeExtensionAdviceRequest) super.set(fieldName, value); + } + + @Override + public CalendarModeExtensionAdviceRequest clone() { + return (CalendarModeExtensionAdviceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CalendarModeExtensionAdviceResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CalendarModeExtensionAdviceResponse.java new file mode 100644 index 00000000000..3ff0f92bd6c --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CalendarModeExtensionAdviceResponse.java @@ -0,0 +1,127 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * A response containing the recommended duration to extend a Future Reservation in CALENDAR mode + * based on the available capacity during the extension period. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CalendarModeExtensionAdviceResponse extends com.google.api.client.json.GenericJson { + + /** + * The recommended end time for the extension, which will either be the end time requested by the + * caller or the longest alternative for which there is sufficient capacity. If extension is not + * possible, this field will be empty, and not_recommended_reason will be populated instead. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Information regarding the reason why the Future Reservation cannot be extended at all. If a + * recommendation is provided, whether that is the requested end time or an alternative, this + * field will be empty. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CalendarModeExtensionAdviceResponseNotRecommendedReason notRecommendedReason; + + /** + * Unique id of the recommendation, a UUID string generated by the API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String recommendationId; + + /** + * The recommended end time for the extension, which will either be the end time requested by the + * caller or the longest alternative for which there is sufficient capacity. If extension is not + * possible, this field will be empty, and not_recommended_reason will be populated instead. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * The recommended end time for the extension, which will either be the end time requested by the + * caller or the longest alternative for which there is sufficient capacity. If extension is not + * possible, this field will be empty, and not_recommended_reason will be populated instead. + * @param endTime endTime or {@code null} for none + */ + public CalendarModeExtensionAdviceResponse setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Information regarding the reason why the Future Reservation cannot be extended at all. If a + * recommendation is provided, whether that is the requested end time or an alternative, this + * field will be empty. + * @return value or {@code null} for none + */ + public CalendarModeExtensionAdviceResponseNotRecommendedReason getNotRecommendedReason() { + return notRecommendedReason; + } + + /** + * Information regarding the reason why the Future Reservation cannot be extended at all. If a + * recommendation is provided, whether that is the requested end time or an alternative, this + * field will be empty. + * @param notRecommendedReason notRecommendedReason or {@code null} for none + */ + public CalendarModeExtensionAdviceResponse setNotRecommendedReason(CalendarModeExtensionAdviceResponseNotRecommendedReason notRecommendedReason) { + this.notRecommendedReason = notRecommendedReason; + return this; + } + + /** + * Unique id of the recommendation, a UUID string generated by the API. + * @return value or {@code null} for none + */ + public java.lang.String getRecommendationId() { + return recommendationId; + } + + /** + * Unique id of the recommendation, a UUID string generated by the API. + * @param recommendationId recommendationId or {@code null} for none + */ + public CalendarModeExtensionAdviceResponse setRecommendationId(java.lang.String recommendationId) { + this.recommendationId = recommendationId; + return this; + } + + @Override + public CalendarModeExtensionAdviceResponse set(String fieldName, Object value) { + return (CalendarModeExtensionAdviceResponse) super.set(fieldName, value); + } + + @Override + public CalendarModeExtensionAdviceResponse clone() { + return (CalendarModeExtensionAdviceResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CalendarModeExtensionAdviceResponseNotRecommendedReason.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CalendarModeExtensionAdviceResponseNotRecommendedReason.java new file mode 100644 index 00000000000..9c91adf59d8 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CalendarModeExtensionAdviceResponseNotRecommendedReason.java @@ -0,0 +1,96 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Information about why no recommendation was provided. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CalendarModeExtensionAdviceResponseNotRecommendedReason extends com.google.api.client.json.GenericJson { + + /** + * Details (human readable) describing why the recommendation was not provided. For example, if + * the status is CONDITION_NOT_MET, then this field will contain information about why the + * requested extension duration is not eligible. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String details; + + /** + * Status of recommendation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Details (human readable) describing why the recommendation was not provided. For example, if + * the status is CONDITION_NOT_MET, then this field will contain information about why the + * requested extension duration is not eligible. + * @return value or {@code null} for none + */ + public java.lang.String getDetails() { + return details; + } + + /** + * Details (human readable) describing why the recommendation was not provided. For example, if + * the status is CONDITION_NOT_MET, then this field will contain information about why the + * requested extension duration is not eligible. + * @param details details or {@code null} for none + */ + public CalendarModeExtensionAdviceResponseNotRecommendedReason setDetails(java.lang.String details) { + this.details = details; + return this; + } + + /** + * Status of recommendation. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Status of recommendation. + * @param status status or {@code null} for none + */ + public CalendarModeExtensionAdviceResponseNotRecommendedReason setStatus(java.lang.String status) { + this.status = status; + return this; + } + + @Override + public CalendarModeExtensionAdviceResponseNotRecommendedReason set(String fieldName, Object value) { + return (CalendarModeExtensionAdviceResponseNotRecommendedReason) super.set(fieldName, value); + } + + @Override + public CalendarModeExtensionAdviceResponseNotRecommendedReason clone() { + return (CalendarModeExtensionAdviceResponseNotRecommendedReason) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CustomerEncryptionKey.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CustomerEncryptionKey.java index 8d400574b3d..19062661a73 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CustomerEncryptionKey.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/CustomerEncryptionKey.java @@ -54,9 +54,9 @@ public final class CustomerEncryptionKey extends com.google.api.client.json.Gene private java.lang.String kmsKeyServiceAccount; /** - * Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either - * encrypt or decrypt this resource. You can provide either the rawKey or thersaEncryptedKey. For - * example: + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies a 256-bit customer- + * supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. + * You can provide either the rawKey or thersaEncryptedKey. For example: * * "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=" * The value may be {@code null}. @@ -65,9 +65,9 @@ public final class CustomerEncryptionKey extends com.google.api.client.json.Gene private java.lang.String rawKey; /** - * Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to - * either encrypt or decrypt this resource. You can provide either the rawKey or - * thersaEncryptedKey. For example: + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies an RFC 4648 base64 + * encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt + * this resource. You can provide either the rawKey or thersaEncryptedKey. For example: * * "rsaEncryptedKey": "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH * z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD @@ -86,8 +86,8 @@ public final class CustomerEncryptionKey extends com.google.api.client.json.Gene private java.lang.String rsaEncryptedKey; /** - * [Output only] TheRFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key - * that protects this resource. + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. [Output only] TheRFC 4648 base64 + * encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -148,9 +148,9 @@ public CustomerEncryptionKey setKmsKeyServiceAccount(java.lang.String kmsKeyServ } /** - * Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either - * encrypt or decrypt this resource. You can provide either the rawKey or thersaEncryptedKey. For - * example: + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies a 256-bit customer- + * supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. + * You can provide either the rawKey or thersaEncryptedKey. For example: * * "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=" * @return value or {@code null} for none @@ -160,9 +160,9 @@ public java.lang.String getRawKey() { } /** - * Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either - * encrypt or decrypt this resource. You can provide either the rawKey or thersaEncryptedKey. For - * example: + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies a 256-bit customer- + * supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. + * You can provide either the rawKey or thersaEncryptedKey. For example: * * "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=" * @param rawKey rawKey or {@code null} for none @@ -173,9 +173,9 @@ public CustomerEncryptionKey setRawKey(java.lang.String rawKey) { } /** - * Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to - * either encrypt or decrypt this resource. You can provide either the rawKey or - * thersaEncryptedKey. For example: + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies an RFC 4648 base64 + * encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt + * this resource. You can provide either the rawKey or thersaEncryptedKey. For example: * * "rsaEncryptedKey": "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH * z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD @@ -195,9 +195,9 @@ public java.lang.String getRsaEncryptedKey() { } /** - * Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to - * either encrypt or decrypt this resource. You can provide either the rawKey or - * thersaEncryptedKey. For example: + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies an RFC 4648 base64 + * encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt + * this resource. You can provide either the rawKey or thersaEncryptedKey. For example: * * "rsaEncryptedKey": "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH * z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD @@ -218,8 +218,8 @@ public CustomerEncryptionKey setRsaEncryptedKey(java.lang.String rsaEncryptedKey } /** - * [Output only] TheRFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key - * that protects this resource. + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. [Output only] TheRFC 4648 base64 + * encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. * @return value or {@code null} for none */ public java.lang.String getSha256() { @@ -227,8 +227,8 @@ public java.lang.String getSha256() { } /** - * [Output only] TheRFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key - * that protects this resource. + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. [Output only] TheRFC 4648 base64 + * encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. * @param sha256 sha256 or {@code null} for none */ public CustomerEncryptionKey setSha256(java.lang.String sha256) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyExtensionPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyExtensionPolicy.java index 2fbefef35f9..a5d349ac70e 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyExtensionPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyExtensionPolicy.java @@ -29,6 +29,15 @@ @SuppressWarnings("javadoc") public final class GlobalVmExtensionPolicyExtensionPolicy extends com.google.api.client.json.GenericJson { + /** + * Optional. Only deploy this extension if the specified software is detected on the VM. For a + * live list of valid software values, see: https://cloud.google.com/compute/docs/vm- + * extensions/supported-software + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GlobalVmExtensionPolicyInstalledSoftwareSelector installedSoftwareSelector; + /** * Optional. The version pinning for the extension. If empty, the extension will be installed with * the latest version released by the extension producer. @@ -44,6 +53,27 @@ public final class GlobalVmExtensionPolicyExtensionPolicy extends com.google.api @com.google.api.client.util.Key private java.lang.String stringConfig; + /** + * Optional. Only deploy this extension if the specified software is detected on the VM. For a + * live list of valid software values, see: https://cloud.google.com/compute/docs/vm- + * extensions/supported-software + * @return value or {@code null} for none + */ + public GlobalVmExtensionPolicyInstalledSoftwareSelector getInstalledSoftwareSelector() { + return installedSoftwareSelector; + } + + /** + * Optional. Only deploy this extension if the specified software is detected on the VM. For a + * live list of valid software values, see: https://cloud.google.com/compute/docs/vm- + * extensions/supported-software + * @param installedSoftwareSelector installedSoftwareSelector or {@code null} for none + */ + public GlobalVmExtensionPolicyExtensionPolicy setInstalledSoftwareSelector(GlobalVmExtensionPolicyInstalledSoftwareSelector installedSoftwareSelector) { + this.installedSoftwareSelector = installedSoftwareSelector; + return this; + } + /** * Optional. The version pinning for the extension. If empty, the extension will be installed with * the latest version released by the extension producer. diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyInstalledSoftwareSelector.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyInstalledSoftwareSelector.java new file mode 100644 index 00000000000..70753a5921a --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyInstalledSoftwareSelector.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Defines the software requirements for a VM extension policy. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GlobalVmExtensionPolicyInstalledSoftwareSelector extends com.google.api.client.json.GenericJson { + + /** + * Optional. If any of these SelectorSets are satisfied, the condition is met (OR logic). The key + * is a user-provided name for this set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map anyOfSelectors; + + /** + * Optional. If any of these SelectorSets are satisfied, the condition is met (OR logic). The key + * is a user-provided name for this set. + * @return value or {@code null} for none + */ + public java.util.Map getAnyOfSelectors() { + return anyOfSelectors; + } + + /** + * Optional. If any of these SelectorSets are satisfied, the condition is met (OR logic). The key + * is a user-provided name for this set. + * @param anyOfSelectors anyOfSelectors or {@code null} for none + */ + public GlobalVmExtensionPolicyInstalledSoftwareSelector setAnyOfSelectors(java.util.Map anyOfSelectors) { + this.anyOfSelectors = anyOfSelectors; + return this; + } + + @Override + public GlobalVmExtensionPolicyInstalledSoftwareSelector set(String fieldName, Object value) { + return (GlobalVmExtensionPolicyInstalledSoftwareSelector) super.set(fieldName, value); + } + + @Override + public GlobalVmExtensionPolicyInstalledSoftwareSelector clone() { + return (GlobalVmExtensionPolicyInstalledSoftwareSelector) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyInstalledSoftwareSelectorSelectorSet.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyInstalledSoftwareSelectorSelectorSet.java new file mode 100644 index 00000000000..371d4c7e945 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/GlobalVmExtensionPolicyInstalledSoftwareSelectorSelectorSet.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for GlobalVmExtensionPolicyInstalledSoftwareSelectorSelectorSet. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GlobalVmExtensionPolicyInstalledSoftwareSelectorSelectorSet extends com.google.api.client.json.GenericJson { + + /** + * Optional. All software in this list must be detected (AND logic). Valid software names (e.g. + * "Apache Web Server"). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allOfSelectors; + + /** + * Optional. All software in this list must be detected (AND logic). Valid software names (e.g. + * "Apache Web Server"). + * @return value or {@code null} for none + */ + public java.util.List getAllOfSelectors() { + return allOfSelectors; + } + + /** + * Optional. All software in this list must be detected (AND logic). Valid software names (e.g. + * "Apache Web Server"). + * @param allOfSelectors allOfSelectors or {@code null} for none + */ + public GlobalVmExtensionPolicyInstalledSoftwareSelectorSelectorSet setAllOfSelectors(java.util.List allOfSelectors) { + this.allOfSelectors = allOfSelectors; + return this; + } + + @Override + public GlobalVmExtensionPolicyInstalledSoftwareSelectorSelectorSet set(String fieldName, Object value) { + return (GlobalVmExtensionPolicyInstalledSoftwareSelectorSelectorSet) super.set(fieldName, value); + } + + @Override + public GlobalVmExtensionPolicyInstalledSoftwareSelectorSelectorSet clone() { + return (GlobalVmExtensionPolicyInstalledSoftwareSelectorSelectorSet) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthCheck.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthCheck.java index ae88e3c4f1d..a26ffa14bee 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthCheck.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/HealthCheck.java @@ -169,10 +169,11 @@ public final class HealthCheck extends com.google.api.client.json.GenericJson { * then exactly 3 regions should be specified. The region names must be valid names of Google * Cloud regions. This can only be set for global health check. If this list is non-empty, then * there are restrictions on what other health check fields are supported and what other resources - * can use this health check: - SSL, HTTP2, and GRPC protocols are not supported. - The - * TCP request field is not supported. - The proxyHeader field for HTTP, HTTPS, and TCP is not - * supported. - The checkIntervalSec field must be at least 30. - The health check cannot be - * used with BackendService nor with managed instance group auto-healing. + * can use this health check: - SSL, HTTP2, GRPC, and GRPC_WITH_TLS protocols are not + * supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, + * HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - + * The health check cannot be used with BackendService nor with managed instance group auto- + * healing. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -199,8 +200,9 @@ public final class HealthCheck extends com.google.api.client.json.GenericJson { private java.lang.Integer timeoutSec; /** - * Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2 or GRPC. Exactly one - * of the protocol-specific health check fields must be specified, which must matchtype field. + * Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2, GRPC or + * GRPC_WITH_TLS. Exactly one of the protocol-specific health check fields must be specified, + * which must match type field. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -501,10 +503,11 @@ public HealthCheck setSelfLinkWithId(java.lang.String selfLinkWithId) { * then exactly 3 regions should be specified. The region names must be valid names of Google * Cloud regions. This can only be set for global health check. If this list is non-empty, then * there are restrictions on what other health check fields are supported and what other resources - * can use this health check: - SSL, HTTP2, and GRPC protocols are not supported. - The - * TCP request field is not supported. - The proxyHeader field for HTTP, HTTPS, and TCP is not - * supported. - The checkIntervalSec field must be at least 30. - The health check cannot be - * used with BackendService nor with managed instance group auto-healing. + * can use this health check: - SSL, HTTP2, GRPC, and GRPC_WITH_TLS protocols are not + * supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, + * HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - + * The health check cannot be used with BackendService nor with managed instance group auto- + * healing. * @return value or {@code null} for none */ public java.util.List getSourceRegions() { @@ -516,10 +519,11 @@ public java.util.List getSourceRegions() { * then exactly 3 regions should be specified. The region names must be valid names of Google * Cloud regions. This can only be set for global health check. If this list is non-empty, then * there are restrictions on what other health check fields are supported and what other resources - * can use this health check: - SSL, HTTP2, and GRPC protocols are not supported. - The - * TCP request field is not supported. - The proxyHeader field for HTTP, HTTPS, and TCP is not - * supported. - The checkIntervalSec field must be at least 30. - The health check cannot be - * used with BackendService nor with managed instance group auto-healing. + * can use this health check: - SSL, HTTP2, GRPC, and GRPC_WITH_TLS protocols are not + * supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, + * HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - + * The health check cannot be used with BackendService nor with managed instance group auto- + * healing. * @param sourceRegions sourceRegions or {@code null} for none */ public HealthCheck setSourceRegions(java.util.List sourceRegions) { @@ -577,8 +581,9 @@ public HealthCheck setTimeoutSec(java.lang.Integer timeoutSec) { } /** - * Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2 or GRPC. Exactly one - * of the protocol-specific health check fields must be specified, which must matchtype field. + * Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2, GRPC or + * GRPC_WITH_TLS. Exactly one of the protocol-specific health check fields must be specified, + * which must match type field. * @return value or {@code null} for none */ public java.lang.String getType() { @@ -586,8 +591,9 @@ public java.lang.String getType() { } /** - * Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2 or GRPC. Exactly one - * of the protocol-specific health check fields must be specified, which must matchtype field. + * Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2, GRPC or + * GRPC_WITH_TLS. Exactly one of the protocol-specific health check fields must be specified, + * which must match type field. * @param type type or {@code null} for none */ public HealthCheck setType(java.lang.String type) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstancePropertiesPatch.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstancePropertiesPatch.java index 30b374a2f36..724fff2f050 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstancePropertiesPatch.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstancePropertiesPatch.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class InstancePropertiesPatch extends com.google.api.client.json.GenericJson { + /** + * This optional flag exposes the hashed physical host ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean exposeHostTopology; + /** * The label key-value pairs that you want to patch onto the instance. * The value may be {@code null}. @@ -44,6 +51,23 @@ public final class InstancePropertiesPatch extends com.google.api.client.json.Ge @com.google.api.client.util.Key private java.util.Map metadata; + /** + * This optional flag exposes the hashed physical host ID. + * @return value or {@code null} for none + */ + public java.lang.Boolean getExposeHostTopology() { + return exposeHostTopology; + } + + /** + * This optional flag exposes the hashed physical host ID. + * @param exposeHostTopology exposeHostTopology or {@code null} for none + */ + public InstancePropertiesPatch setExposeHostTopology(java.lang.Boolean exposeHostTopology) { + this.exposeHostTopology = exposeHostTopology; + return this; + } + /** * The label key-value pairs that you want to patch onto the instance. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ProjectView.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ProjectView.java index 8aa6ad5f99c..b9a5ad856a0 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ProjectView.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ProjectView.java @@ -32,14 +32,20 @@ public final class ProjectView extends com.google.api.client.json.GenericJson { /** - * The project data. + * The project data. The returned Project data does not contain regional or zonal quota usage + * data. Global quota limits are present. For accurate, real-time quota usage numbers, query the + * global [projects.get](https://cloud.google.com/compute/docs/reference/rest/v1/projects/get) + * endpoint. * The value may be {@code null}. */ @com.google.api.client.util.Key private Project project; /** - * The project data. + * The project data. The returned Project data does not contain regional or zonal quota usage + * data. Global quota limits are present. For accurate, real-time quota usage numbers, query the + * global [projects.get](https://cloud.google.com/compute/docs/reference/rest/v1/projects/get) + * endpoint. * @return value or {@code null} for none */ public Project getProject() { @@ -47,7 +53,10 @@ public Project getProject() { } /** - * The project data. + * The project data. The returned Project data does not contain regional or zonal quota usage + * data. Global quota limits are present. For accurate, real-time quota usage numbers, query the + * global [projects.get](https://cloud.google.com/compute/docs/reference/rest/v1/projects/get) + * endpoint. * @param project project or {@code null} for none */ public ProjectView setProject(Project project) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReliabilityRisksListResponse.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReliabilityRisksListResponse.java index 95e2da40f9f..3c6b647a619 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReliabilityRisksListResponse.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReliabilityRisksListResponse.java @@ -30,6 +30,7 @@ public final class ReliabilityRisksListResponse extends com.google.api.client.json.GenericJson { /** + * [Output Only] An ETag of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -88,6 +89,7 @@ public final class ReliabilityRisksListResponse extends com.google.api.client.js private Warning warning; /** + * [Output Only] An ETag of the resource. * @return value or {@code null} for none */ public java.lang.String getEtag() { @@ -95,6 +97,7 @@ public java.lang.String getEtag() { } /** + * [Output Only] An ETag of the resource. * @param etag etag or {@code null} for none */ public ReliabilityRisksListResponse setEtag(java.lang.String etag) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopologyAdditionalAttributes.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopologyAdditionalAttributes.java index 29b35d78c50..8f7edf60c73 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopologyAdditionalAttributes.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ResourceStatusPhysicalHostTopologyAdditionalAttributes.java @@ -37,6 +37,15 @@ public final class ResourceStatusPhysicalHostTopologyAdditionalAttributes extend @com.google.api.client.util.Key private java.util.Map acceleratorTopologyIds; + /** + * Output only. Key-value store for arbitrary network topology identifiers defined by the + * underlying infrastructure. The key will be the topology label and the value will be the + * location ID for the topology. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map networkTopologyIds; + /** * Output only. The IDs of the accelerator topologies the instance belongs to. For example The key * will be topologies like "4x4", "2x2x2" and the value will be the location ID of the topologies. @@ -56,6 +65,27 @@ public ResourceStatusPhysicalHostTopologyAdditionalAttributes setAcceleratorTopo return this; } + /** + * Output only. Key-value store for arbitrary network topology identifiers defined by the + * underlying infrastructure. The key will be the topology label and the value will be the + * location ID for the topology. + * @return value or {@code null} for none + */ + public java.util.Map getNetworkTopologyIds() { + return networkTopologyIds; + } + + /** + * Output only. Key-value store for arbitrary network topology identifiers defined by the + * underlying infrastructure. The key will be the topology label and the value will be the + * location ID for the topology. + * @param networkTopologyIds networkTopologyIds or {@code null} for none + */ + public ResourceStatusPhysicalHostTopologyAdditionalAttributes setNetworkTopologyIds(java.util.Map networkTopologyIds) { + this.networkTopologyIds = networkTopologyIds; + return this; + } + @Override public ResourceStatusPhysicalHostTopologyAdditionalAttributes set(String fieldName, Object value) { return (ResourceStatusPhysicalHostTopologyAdditionalAttributes) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Scheduling.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Scheduling.java index 96e16373857..92cce06162d 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Scheduling.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Scheduling.java @@ -66,6 +66,14 @@ public final class Scheduling extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long currentMemoryMb; + /** + * This optional flag exposes the hashed physical host ID in the ResourceStatus resource of the + * VM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean exposeHostTopology; + /** * The value may be {@code null}. */ @@ -178,9 +186,9 @@ public final class Scheduling extends com.google.api.client.json.GenericJson { private java.lang.Boolean preemptible; /** - * Specifies the Metadata Service preemption notice duration before the GCE ACPI G2 Soft Off - * signal is triggered for Spot VMs only. If not specified, there will be no wait before the G2 - * Soft Off signal is triggered. + * Specifies the Metadata Service preemption notice duration before the GCE ACPI G2 Soft Off + * signal is triggered for Spot VMs only. If not specified, there will be no wait before the G2 + * Soft Off signal is triggered. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -324,6 +332,25 @@ public Scheduling setCurrentMemoryMb(java.lang.Long currentMemoryMb) { return this; } + /** + * This optional flag exposes the hashed physical host ID in the ResourceStatus resource of the + * VM. + * @return value or {@code null} for none + */ + public java.lang.Boolean getExposeHostTopology() { + return exposeHostTopology; + } + + /** + * This optional flag exposes the hashed physical host ID in the ResourceStatus resource of the + * VM. + * @param exposeHostTopology exposeHostTopology or {@code null} for none + */ + public Scheduling setExposeHostTopology(java.lang.Boolean exposeHostTopology) { + this.exposeHostTopology = exposeHostTopology; + return this; + } + /** * @return value or {@code null} for none */ @@ -589,9 +616,9 @@ public Scheduling setPreemptible(java.lang.Boolean preemptible) { } /** - * Specifies the Metadata Service preemption notice duration before the GCE ACPI G2 Soft Off - * signal is triggered for Spot VMs only. If not specified, there will be no wait before the G2 - * Soft Off signal is triggered. + * Specifies the Metadata Service preemption notice duration before the GCE ACPI G2 Soft Off + * signal is triggered for Spot VMs only. If not specified, there will be no wait before the G2 + * Soft Off signal is triggered. * @return value or {@code null} for none */ public Duration getPreemptionNoticeDuration() { @@ -599,9 +626,9 @@ public Duration getPreemptionNoticeDuration() { } /** - * Specifies the Metadata Service preemption notice duration before the GCE ACPI G2 Soft Off - * signal is triggered for Spot VMs only. If not specified, there will be no wait before the G2 - * Soft Off signal is triggered. + * Specifies the Metadata Service preemption notice duration before the GCE ACPI G2 Soft Off + * signal is triggered for Spot VMs only. If not specified, there will be no wait before the G2 + * Soft Off signal is triggered. * @param preemptionNoticeDuration preemptionNoticeDuration or {@code null} for none */ public Scheduling setPreemptionNoticeDuration(Duration preemptionNoticeDuration) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePool.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePool.java index ceb9d8a2982..477590252b5 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePool.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/StoragePool.java @@ -51,7 +51,7 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * Output only. [Output Only] Provisioned capacities for each SKU for this Exapool in GiB + * Provisioned capacities for each SKU for this Exapool in GiB * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -275,7 +275,7 @@ public StoragePool setDescription(java.lang.String description) { } /** - * Output only. [Output Only] Provisioned capacities for each SKU for this Exapool in GiB + * Provisioned capacities for each SKU for this Exapool in GiB * @return value or {@code null} for none */ public StoragePoolExapoolProvisionedCapacityGb getExapoolProvisionedCapacityGb() { @@ -283,7 +283,7 @@ public StoragePoolExapoolProvisionedCapacityGb getExapoolProvisionedCapacityGb() } /** - * Output only. [Output Only] Provisioned capacities for each SKU for this Exapool in GiB + * Provisioned capacities for each SKU for this Exapool in GiB * @param exapoolProvisionedCapacityGb exapoolProvisionedCapacityGb or {@code null} for none */ public StoragePool setExapoolProvisionedCapacityGb(StoragePoolExapoolProvisionedCapacityGb exapoolProvisionedCapacityGb) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyExtensionPolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyExtensionPolicy.java index e7c963e89f3..bedc8769a36 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyExtensionPolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyExtensionPolicy.java @@ -29,6 +29,15 @@ @SuppressWarnings("javadoc") public final class VmExtensionPolicyExtensionPolicy extends com.google.api.client.json.GenericJson { + /** + * Optional. Only deploy this extension if the specified software is detected on the VM. For a + * live list of valid software values, see: https://cloud.google.com/compute/docs/vm- + * extensions/supported-software + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private VmExtensionPolicyInstalledSoftwareSelector installedSoftwareSelector; + /** * Optional. The specific version of the extension to install. If not set, the latest version is * used. @@ -44,6 +53,27 @@ public final class VmExtensionPolicyExtensionPolicy extends com.google.api.clien @com.google.api.client.util.Key private java.lang.String stringConfig; + /** + * Optional. Only deploy this extension if the specified software is detected on the VM. For a + * live list of valid software values, see: https://cloud.google.com/compute/docs/vm- + * extensions/supported-software + * @return value or {@code null} for none + */ + public VmExtensionPolicyInstalledSoftwareSelector getInstalledSoftwareSelector() { + return installedSoftwareSelector; + } + + /** + * Optional. Only deploy this extension if the specified software is detected on the VM. For a + * live list of valid software values, see: https://cloud.google.com/compute/docs/vm- + * extensions/supported-software + * @param installedSoftwareSelector installedSoftwareSelector or {@code null} for none + */ + public VmExtensionPolicyExtensionPolicy setInstalledSoftwareSelector(VmExtensionPolicyInstalledSoftwareSelector installedSoftwareSelector) { + this.installedSoftwareSelector = installedSoftwareSelector; + return this; + } + /** * Optional. The specific version of the extension to install. If not set, the latest version is * used. diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyInstalledSoftwareSelector.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyInstalledSoftwareSelector.java new file mode 100644 index 00000000000..5adedbcba01 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyInstalledSoftwareSelector.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Defines the software requirements for a VM extension policy. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class VmExtensionPolicyInstalledSoftwareSelector extends com.google.api.client.json.GenericJson { + + /** + * Optional. If any of these SelectorSets are satisfied, the condition is met (OR logic). The key + * is a user-provided name for this set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map anyOfSelectors; + + /** + * Optional. If any of these SelectorSets are satisfied, the condition is met (OR logic). The key + * is a user-provided name for this set. + * @return value or {@code null} for none + */ + public java.util.Map getAnyOfSelectors() { + return anyOfSelectors; + } + + /** + * Optional. If any of these SelectorSets are satisfied, the condition is met (OR logic). The key + * is a user-provided name for this set. + * @param anyOfSelectors anyOfSelectors or {@code null} for none + */ + public VmExtensionPolicyInstalledSoftwareSelector setAnyOfSelectors(java.util.Map anyOfSelectors) { + this.anyOfSelectors = anyOfSelectors; + return this; + } + + @Override + public VmExtensionPolicyInstalledSoftwareSelector set(String fieldName, Object value) { + return (VmExtensionPolicyInstalledSoftwareSelector) super.set(fieldName, value); + } + + @Override + public VmExtensionPolicyInstalledSoftwareSelector clone() { + return (VmExtensionPolicyInstalledSoftwareSelector) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyInstalledSoftwareSelectorSelectorSet.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyInstalledSoftwareSelectorSelectorSet.java new file mode 100644 index 00000000000..580cfd205c7 --- /dev/null +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/VmExtensionPolicyInstalledSoftwareSelectorSelectorSet.java @@ -0,0 +1,69 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for VmExtensionPolicyInstalledSoftwareSelectorSelectorSet. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class VmExtensionPolicyInstalledSoftwareSelectorSelectorSet extends com.google.api.client.json.GenericJson { + + /** + * Optional. All software in this list must be detected (AND logic). Valid software names (e.g. + * "Apache Web Server"). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allOfSelectors; + + /** + * Optional. All software in this list must be detected (AND logic). Valid software names (e.g. + * "Apache Web Server"). + * @return value or {@code null} for none + */ + public java.util.List getAllOfSelectors() { + return allOfSelectors; + } + + /** + * Optional. All software in this list must be detected (AND logic). Valid software names (e.g. + * "Apache Web Server"). + * @param allOfSelectors allOfSelectors or {@code null} for none + */ + public VmExtensionPolicyInstalledSoftwareSelectorSelectorSet setAllOfSelectors(java.util.List allOfSelectors) { + this.allOfSelectors = allOfSelectors; + return this; + } + + @Override + public VmExtensionPolicyInstalledSoftwareSelectorSelectorSet set(String fieldName, Object value) { + return (VmExtensionPolicyInstalledSoftwareSelectorSelectorSet) super.set(fieldName, value); + } + + @Override + public VmExtensionPolicyInstalledSoftwareSelectorSelectorSet clone() { + return (VmExtensionPolicyInstalledSoftwareSelectorSelectorSet) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/pom.xml b/clients/google-api-services-compute/alpha/2.0.0/pom.xml index 5c5b3c9a82b..7d115e700e2 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/pom.xml +++ b/clients/google-api-services-compute/alpha/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-compute - alpha-rev20260709-2.0.0 - Compute Engine API alpha-rev20260709-2.0.0 + alpha-rev20260722-2.0.0 + Compute Engine API alpha-rev20260722-2.0.0 jar 2011 diff --git a/clients/google-api-services-compute/alpha/README.md b/clients/google-api-services-compute/alpha/README.md index e774242b5b9..933c9b1f5b9 100644 --- a/clients/google-api-services-compute/alpha/README.md +++ b/clients/google-api-services-compute/alpha/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-compute - alpha-rev20260709-2.0.0 + alpha-rev20260722-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:alpha-rev20260709-2.0.0' + implementation 'com.google.apis:google-api-services-compute:alpha-rev20260722-2.0.0' } ``` diff --git a/clients/google-api-services-compute/v1/2.0.0/README.md b/clients/google-api-services-compute/v1/2.0.0/README.md index ad57ce6984d..4477eb1a582 100644 --- a/clients/google-api-services-compute/v1/2.0.0/README.md +++ b/clients/google-api-services-compute/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-compute - v1-rev20260709-2.0.0 + v1-rev20260722-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:v1-rev20260709-2.0.0' + implementation 'com.google.apis:google-api-services-compute:v1-rev20260722-2.0.0' } ``` diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Compute.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Compute.java index dd59c60adc3..924989ef943 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Compute.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/Compute.java @@ -44231,6 +44231,944 @@ public Update set(String parameterName, Object value) { } + /** + * An accessor for creating requests from the Hosts collection. + * + *

The typical use is:

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

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

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

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

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

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

+ * + * @param project The project ID for this request. + * @param zone The name of the zone for this request, formatted as RFC1035. + * @param association The parent resource association for the Host. This field specifies the + hierarchical context (e.g., + * reservation, block, sub-block) when + accessing the host. For example, + * reservations/reservation_name, + * reservations/reservation_name/reservationBlocks/reservation_block_name or + reservations/res + * ervation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_su + * b_block_name. + * @since 1.13 + */ + protected List(java.lang.String project, java.lang.String zone, java.lang.String association) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.HostsListResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + this.association = com.google.api.client.util.Preconditions.checkNotNull(association, "Required parameter association must be specified."); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); + } + + /** The project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** The project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** The project ID for this request. */ + public List setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** The name of the zone for this request, formatted as RFC1035. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request, formatted as RFC1035. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request, formatted as RFC1035. */ + public List setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The parent resource association for the Host. This field specifies the hierarchical context + * (e.g., reservation, block, sub-block) when accessing the host. For example, + * reservations/reservation_name, + * reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/rese + * rvation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_ + * block_name. + */ + @com.google.api.client.util.Key + private java.lang.String association; + + /** The parent resource association for the Host. This field specifies the hierarchical context (e.g., + reservation, block, sub-block) when accessing the host. For example, reservations/reservation_name, + reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/reservation_ + name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_block_name. + */ + public java.lang.String getAssociation() { + return association; + } + + /** + * The parent resource association for the Host. This field specifies the hierarchical context + * (e.g., reservation, block, sub-block) when accessing the host. For example, + * reservations/reservation_name, + * reservations/reservation_name/reservationBlocks/reservation_block_name or reservations/rese + * rvation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_sub_ + * block_name. + */ + public List setAssociation(java.lang.String association) { + this.association = association; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + /** * An accessor for creating requests from the HttpHealthChecks collection. * @@ -65648,252 +66586,268 @@ public BulkInsert setZone(java.lang.String zone) { "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); } this.zone = zone; - return this; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - @com.google.api.client.util.Key - private java.lang.String requestId; - - /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry - your request, the server will know to ignore the request if it has already been completed. - - For example, consider a situation where you make an initial request and the request times out. If - you make the request again with the same request ID, the server can check if original operation - with the same request ID was received, and if so, will ignore the second request. This prevents - clients from accidentally creating duplicate commitments. - - The request ID must be a valid UUID with the exception that zero UUID is not supported - (00000000-0000-0000-0000-000000000000). - */ - public java.lang.String getRequestId() { - return requestId; - } - - /** - * An optional request ID to identify requests. Specify a unique request ID so that if you - * must retry your request, the server will know to ignore the request if it has already been - * completed. - * - * For example, consider a situation where you make an initial request and the request times - * out. If you make the request again with the same request ID, the server can check if - * original operation with the same request ID was received, and if so, will ignore the second - * request. This prevents clients from accidentally creating duplicate commitments. - * - * The request ID must be a valid UUID with the exception that zero UUID is not supported - * (00000000-0000-0000-0000-000000000000). - */ - public BulkInsert setRequestId(java.lang.String requestId) { - this.requestId = requestId; - return this; - } - - @Override - public BulkInsert set(String parameterName, Object value) { - return (BulkInsert) super.set(parameterName, value); - } - } - /** - * Deletes the specified Instance resource. For more information, seeDeleting an instance. - * - * Create a request for the method "instances.delete". - * - * This request holds the parameters needed by the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param project Project ID for this request. - * @param zone The name of the zone for this request. - * @param instance Name of the instance resource to delete. - * @return the request - */ - public Delete delete(java.lang.String project, java.lang.String zone, java.lang.String instance) throws java.io.IOException { - Delete result = new Delete(project, zone, instance); - initialize(result); - return result; - } - - public class Delete extends ComputeRequest { - - private static final String REST_PATH = "projects/{project}/zones/{zone}/instances/{instance}"; - - private final java.util.regex.Pattern PROJECT_PATTERN = - java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); - - private final java.util.regex.Pattern ZONE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); - - private final java.util.regex.Pattern INSTANCE_PATTERN = - java.util.regex.Pattern.compile("[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); - - /** - * Deletes the specified Instance resource. For more information, seeDeleting an instance. - * - * Create a request for the method "instances.delete". - * - * This request holds the parameters needed by the the compute server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

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

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

+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param instance Name of the instance resource to delete. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String zone, java.lang.String instance) { + super(Compute.this, "DELETE", REST_PATH, null, com.google.api.services.compute.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.instance = com.google.api.client.util.Preconditions.checkNotNull(instance, "Required parameter instance must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Delete setUserIp(java.lang.String userIp) { + return (Delete) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Delete setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** The name of the zone for this request. */ + @com.google.api.client.util.Key + private java.lang.String zone; + + /** The name of the zone for this request. + */ + public java.lang.String getZone() { + return zone; + } + + /** The name of the zone for this request. */ + public Delete setZone(java.lang.String zone) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ZONE_PATTERN.matcher(zone).matches(), + "Parameter zone must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"); + } + this.zone = zone; + return this; + } + + /** Name of the instance resource to delete. */ + @com.google.api.client.util.Key + private java.lang.String instance; + + /** Name of the instance resource to delete. + */ + public java.lang.String getInstance() { + return instance; + } + + /** Name of the instance resource to delete. */ + public Delete setInstance(java.lang.String instance) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(INSTANCE_PATTERN.matcher(instance).matches(), + "Parameter instance must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.instance = instance; + return this; + } + + /** If set to true, Graceful Shutdown is skipped. */ + @com.google.api.client.util.Key + private java.lang.Boolean noGracefulShutdown; + + /** If set to true, Graceful Shutdown is skipped. + */ + public java.lang.Boolean getNoGracefulShutdown() { + return noGracefulShutdown; + } + + /** If set to true, Graceful Shutdown is skipped. */ + public Delete setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { + this.noGracefulShutdown = noGracefulShutdown; return this; } @@ -75601,6 +76555,22 @@ public Stop setDiscardLocalSsd(java.lang.Boolean discardLocalSsd) { return this; } + /** If set to true, Graceful Shutdown is skipped. */ + @com.google.api.client.util.Key + private java.lang.Boolean noGracefulShutdown; + + /** If set to true, Graceful Shutdown is skipped. + */ + public java.lang.Boolean getNoGracefulShutdown() { + return noGracefulShutdown; + } + + /** If set to true, Graceful Shutdown is skipped. */ + public Stop setNoGracefulShutdown(java.lang.Boolean noGracefulShutdown) { + this.noGracefulShutdown = noGracefulShutdown; + return this; + } + /** * An optional request ID to identify requests. Specify a unique request ID so that if you * must retry your request, the server will know to ignore the request if it has already been @@ -196533,6 +197503,611 @@ public List set(String parameterName, Object value) { } + /** + * An accessor for creating requests from the ReliabilityRisks collection. + * + *

The typical use is:

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

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

+ * + * @param project Project ID for this request. + * @param reliabilityRisk Name of the ReliabilityRisk resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String reliabilityRisk) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ReliabilityRisk.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.reliabilityRisk = com.google.api.client.util.Preconditions.checkNotNull(reliabilityRisk, "Required parameter reliabilityRisk must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RELIABILITY_RISK_PATTERN.matcher(reliabilityRisk).matches(), + "Parameter reliabilityRisk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Get setUserIp(java.lang.String userIp) { + return (Get) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public Get setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** Name of the ReliabilityRisk resource to return. */ + @com.google.api.client.util.Key + private java.lang.String reliabilityRisk; + + /** Name of the ReliabilityRisk resource to return. + */ + public java.lang.String getReliabilityRisk() { + return reliabilityRisk; + } + + /** Name of the ReliabilityRisk resource to return. */ + public Get setReliabilityRisk(java.lang.String reliabilityRisk) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RELIABILITY_RISK_PATTERN.matcher(reliabilityRisk).matches(), + "Parameter reliabilityRisk must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.reliabilityRisk = reliabilityRisk; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Retrieves the list of reliabilityRisks available in the specified project. + * + * Create a request for the method "reliabilityRisks.list". + * + * This request holds the parameters needed by the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param project Project ID for this request. + * @return the request + */ + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); + initialize(result); + return result; + } + + public class List extends ComputeRequest { + + private static final String REST_PATH = "projects/{project}/global/reliabilityRisks"; + + private final java.util.regex.Pattern PROJECT_PATTERN = + java.util.regex.Pattern.compile("(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + + /** + * Retrieves the list of reliabilityRisks available in the specified project. + * + * Create a request for the method "reliabilityRisks.list". + * + * This request holds the parameters needed by the the compute server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

+ * + * @param project Project ID for this request. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ReliabilityRisksListResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + @Override + public List setUserIp(java.lang.String userIp) { + return (List) super.setUserIp(userIp); + } + + /** Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Project ID for this request. */ + public List setProject(java.lang.String project) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PROJECT_PATTERN.matcher(project).matches(), + "Parameter project must conform to the pattern " + + "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))"); + } + this.project = project; + return this; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter expression that filters resources listed in the response. Most Compute resources support + two types of filter expressions: expressions that support regular expressions and expressions that + follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in + one request. + + If you want to use AIP-160, your expression must specify the field name, an operator, and the value + that you want to use for filtering. The value must be a string, a number, or a boolean. The + operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + + For example, if you are filtering Compute Engine instances, you can exclude instances named + `example-instance` by specifying `name != example-instance`. + + The `:*` comparison can be used to test whether a key has been defined. For example, to find all + objects with `owner` label use: ``` labels.owner:* ``` + + You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = + false` to include instances only if they are not scheduled for automatic restarts. You can use + filtering on nested fields to filter based onresource labels. + + To filter on multiple expressions, provide each separate expression within parentheses. For + example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, + each expression is an `AND` expression. However, you can include `AND` and `OR` expressions + explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") + AND (scheduling.automaticRestart = true) ``` + + If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against + a single un-parenthesized expression with or without quotes or against multiple parenthesized + expressions. Examples: + + `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted + literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + + The literal value is interpreted as a regular expression using GoogleRE2 library syntax. The + literal value must match the entire field. + + For example, to filter for instances that do not end with name "instance", you would use `name ne + .*instance`. + + You cannot combine constraints on multiple fields using regular expressions. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter expression that filters resources listed in the response. Most Compute resources + * support two types of filter expressions: expressions that support regular expressions and + * expressions that follow API improvement proposal AIP-160. These two types of filter + * expressions cannot be mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an operator, and + * the value that you want to use for filtering. The value must be a string, a number, or a + * boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude instances named + * `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For example, to + * find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are not scheduled + * for automatic restarts. You can use filtering on nested fields to filter based onresource + * labels. + * + * To filter on multiple expressions, provide each separate expression within parentheses. For + * example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By + * default, each expression is an `AND` expression. However, you can include `AND` and `OR` + * expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + * "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator + * against a single un-parenthesized expression with or without quotes or against multiple + * parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq + * "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 library syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", you would use + * `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + @com.google.api.client.util.Key + private java.lang.Long maxResults; + + /** The maximum number of results per page that should be returned. If the number of available results + is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the + next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. + (Default: `500`) [default: 500] [minimum: 0] + */ + public java.lang.Long getMaxResults() { + return maxResults; + } + + /** + * The maximum number of results per page that should be returned. If the number of available + * results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be + * used to get the next page of results in subsequent list requests. Acceptable values are `0` + * to `500`, inclusive. (Default: `500`) + */ + public List setMaxResults(java.lang.Long maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Sorts list results by a certain order. By default, results are returned in alphanumerical order + based on the resource name. + + You can also sort results in descending order based on the creation timestamp using + `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in + reverse chronological order (newest result first). Use this to sort resources like operations so + that the newest operation is returned first. + + Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical + * order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp using + * `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + * field in reverse chronological order (newest result first). Use this to sort resources like + * operations so that the newest operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list + request to get the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a + * previous list request to get the next page of results. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Opt-in for partial success behavior which provides partial results in case of failure. The default + value is false. + + For example, when partial success behavior is enabled, aggregatedList for a single zone scope + either returns all resources in the zone or no resources, with an error code. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The + * default value is false. + * + * For example, when partial success behavior is enabled, aggregatedList for a single zone + * scope either returns all resources in the zone or no resources, with an error code. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + /** * An accessor for creating requests from the ReservationBlocks collection. * diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Address.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Address.java index f38a3ae302c..cf9b8d886ae 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Address.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Address.java @@ -78,8 +78,10 @@ public final class Address extends com.google.api.client.json.GenericJson { * Reference to the source of IP addresses. * * It supports the following cases: - Case 1: PublicDelegatedPrefix (PDP) for BYOIP - * external IPv4 addresses. The PDP must support enhanced IPv4 allocations. - Case - * 2: Internal Range for global internal addresses. + * external addresses. If an IPv4 PDP is used, the PDP must support enhanced IPv4 + * allocations. If an IPv6 PDP is used, the PDP must be in + * EXTERNAL_IPV6_FORWARDING_RULE_CREATION mode. - Case 2: Internal Range for global + * internal addresses. * * Use one of the following formats to specify the resource: * @@ -191,7 +193,11 @@ public final class Address extends com.google.api.client.json.GenericJson { * `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal * forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is * used to configure Private Service Connect. Only global internal addresses can use this - * purpose. + * purpose. - `PASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP0` for addresses that can + * only be assigned to global external Passthrough Network Load Balancer forwarding rules, as + * an Availability Group 0 address. - `PASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP1` for + * addresses that can only be assigned to global external Passthrough Network Load Balancer + * forwarding rules, as an Availability Group 1 address. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -332,8 +338,10 @@ public Address setId(java.math.BigInteger id) { * Reference to the source of IP addresses. * * It supports the following cases: - Case 1: PublicDelegatedPrefix (PDP) for BYOIP - * external IPv4 addresses. The PDP must support enhanced IPv4 allocations. - Case - * 2: Internal Range for global internal addresses. + * external addresses. If an IPv4 PDP is used, the PDP must support enhanced IPv4 + * allocations. If an IPv6 PDP is used, the PDP must be in + * EXTERNAL_IPV6_FORWARDING_RULE_CREATION mode. - Case 2: Internal Range for global + * internal addresses. * * Use one of the following formats to specify the resource: * @@ -355,8 +363,10 @@ public java.lang.String getIpCollection() { * Reference to the source of IP addresses. * * It supports the following cases: - Case 1: PublicDelegatedPrefix (PDP) for BYOIP - * external IPv4 addresses. The PDP must support enhanced IPv4 allocations. - Case - * 2: Internal Range for global internal addresses. + * external addresses. If an IPv4 PDP is used, the PDP must support enhanced IPv4 + * allocations. If an IPv6 PDP is used, the PDP must be in + * EXTERNAL_IPV6_FORWARDING_RULE_CREATION mode. - Case 2: Internal Range for global + * internal addresses. * * Use one of the following formats to specify the resource: * @@ -618,7 +628,11 @@ public Address setPrefixLength(java.lang.Integer prefixLength) { * `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal * forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is * used to configure Private Service Connect. Only global internal addresses can use this - * purpose. + * purpose. - `PASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP0` for addresses that can + * only be assigned to global external Passthrough Network Load Balancer forwarding rules, as + * an Availability Group 0 address. - `PASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP1` for + * addresses that can only be assigned to global external Passthrough Network Load Balancer + * forwarding rules, as an Availability Group 1 address. * @return value or {@code null} for none */ public java.lang.String getPurpose() { @@ -639,7 +653,11 @@ public java.lang.String getPurpose() { * `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal * forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is * used to configure Private Service Connect. Only global internal addresses can use this - * purpose. + * purpose. - `PASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP0` for addresses that can + * only be assigned to global external Passthrough Network Load Balancer forwarding rules, as + * an Availability Group 0 address. - `PASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP1` for + * addresses that can only be assigned to global external Passthrough Network Load Balancer + * forwarding rules, as an Availability Group 1 address. * @param purpose purpose or {@code null} for none */ public Address setPurpose(java.lang.String purpose) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java index ff6bfe041ee..816b3326f58 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/AttachedDiskInitializeParams.java @@ -70,6 +70,30 @@ public final class AttachedDiskInitializeParams extends com.google.api.client.js private java.lang.Long diskSizeGb; /** + * Specifies the disk type used for the boot disk or an additional data disk. For valid disk type + * values, see Supported types for Hyperdisk volumes and Persistent Disk type variables. + * + * When creating a single instance, you must provide either the full or partial URL of the disk + * type. For example, the following values are valid: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType - + * projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType + * + * When creating an instance template, instance flexibility policy, or when creating or updating + * an all-instances configuration, you specify the disk type without a URL, for example, + * hyperdisk-balanced. + * + * If you omit this field for a disk, the default disk type depends on the instance's machine + * series, as follows. - For first- and second-generation machine series like N1, N2, + * T2, and M1, the default disk type is Standard Persistent Disk (pd-standard). + * - For C3, C3D, and M3 the default is Balanced Persistent Disk (pd-balanced). - For + * other third-generation machine series like A3, H3, Z3, all fourth-generation types + * like C4, N4, M4, and newer machine series, the default is Hyperdisk Balanced + * (hyperdisk-balanced). + * + * The disk type you specify must be compatible with the instance's machine series. For a list of + * machine series that support Persistent Disk, see Machine series support for Persistent Disk. + * + * For a list of machine series that support Hyperdisk, seeMachine series support for Hyperdisk. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -304,6 +328,30 @@ public AttachedDiskInitializeParams setDiskSizeGb(java.lang.Long diskSizeGb) { } /** + * Specifies the disk type used for the boot disk or an additional data disk. For valid disk type + * values, see Supported types for Hyperdisk volumes and Persistent Disk type variables. + * + * When creating a single instance, you must provide either the full or partial URL of the disk + * type. For example, the following values are valid: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType - + * projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType + * + * When creating an instance template, instance flexibility policy, or when creating or updating + * an all-instances configuration, you specify the disk type without a URL, for example, + * hyperdisk-balanced. + * + * If you omit this field for a disk, the default disk type depends on the instance's machine + * series, as follows. - For first- and second-generation machine series like N1, N2, + * T2, and M1, the default disk type is Standard Persistent Disk (pd-standard). + * - For C3, C3D, and M3 the default is Balanced Persistent Disk (pd-balanced). - For + * other third-generation machine series like A3, H3, Z3, all fourth-generation types + * like C4, N4, M4, and newer machine series, the default is Hyperdisk Balanced + * (hyperdisk-balanced). + * + * The disk type you specify must be compatible with the instance's machine series. For a list of + * machine series that support Persistent Disk, see Machine series support for Persistent Disk. + * + * For a list of machine series that support Hyperdisk, seeMachine series support for Hyperdisk. * @return value or {@code null} for none */ public java.lang.String getDiskType() { @@ -311,6 +359,30 @@ public java.lang.String getDiskType() { } /** + * Specifies the disk type used for the boot disk or an additional data disk. For valid disk type + * values, see Supported types for Hyperdisk volumes and Persistent Disk type variables. + * + * When creating a single instance, you must provide either the full or partial URL of the disk + * type. For example, the following values are valid: - + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/diskType - + * projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType + * + * When creating an instance template, instance flexibility policy, or when creating or updating + * an all-instances configuration, you specify the disk type without a URL, for example, + * hyperdisk-balanced. + * + * If you omit this field for a disk, the default disk type depends on the instance's machine + * series, as follows. - For first- and second-generation machine series like N1, N2, + * T2, and M1, the default disk type is Standard Persistent Disk (pd-standard). + * - For C3, C3D, and M3 the default is Balanced Persistent Disk (pd-balanced). - For + * other third-generation machine series like A3, H3, Z3, all fourth-generation types + * like C4, N4, M4, and newer machine series, the default is Hyperdisk Balanced + * (hyperdisk-balanced). + * + * The disk type you specify must be compatible with the instance's machine series. For a list of + * machine series that support Persistent Disk, see Machine series support for Persistent Disk. + * + * For a list of machine series that support Hyperdisk, seeMachine series support for Hyperdisk. * @param diskType diskType or {@code null} for none */ public AttachedDiskInitializeParams setDiskType(java.lang.String diskType) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendService.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendService.java index 752afdcce0e..55f54698571 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendService.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/BackendService.java @@ -578,7 +578,10 @@ public final class BackendService extends com.google.api.client.json.GenericJson * URL to networkservices.ServiceLbPolicy resource. * * Can only be set if load balancing scheme is EXTERNAL_MANAGED, INTERNAL_MANAGED or - * INTERNAL_SELF_MANAGED and the scope is global. + * INTERNAL_SELF_MANAGED for a global backend service, and EXTERNAL_MANAGED or INTERNAL_MANAGED + * for a regional backend service. For a global backend service, the service lb policy must be + * global. For a regional backend service, the service lb policy must be regional and in the same + * region. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -1873,7 +1876,10 @@ public BackendService setServiceBindings(java.util.List servic * URL to networkservices.ServiceLbPolicy resource. * * Can only be set if load balancing scheme is EXTERNAL_MANAGED, INTERNAL_MANAGED or - * INTERNAL_SELF_MANAGED and the scope is global. + * INTERNAL_SELF_MANAGED for a global backend service, and EXTERNAL_MANAGED or INTERNAL_MANAGED + * for a regional backend service. For a global backend service, the service lb policy must be + * global. For a regional backend service, the service lb policy must be regional and in the same + * region. * @return value or {@code null} for none */ public java.lang.String getServiceLbPolicy() { @@ -1884,7 +1890,10 @@ public java.lang.String getServiceLbPolicy() { * URL to networkservices.ServiceLbPolicy resource. * * Can only be set if load balancing scheme is EXTERNAL_MANAGED, INTERNAL_MANAGED or - * INTERNAL_SELF_MANAGED and the scope is global. + * INTERNAL_SELF_MANAGED for a global backend service, and EXTERNAL_MANAGED or INTERNAL_MANAGED + * for a regional backend service. For a global backend service, the service lb policy must be + * global. For a regional backend service, the service lb policy must be regional and in the same + * region. * @param serviceLbPolicy serviceLbPolicy or {@code null} for none */ public BackendService setServiceLbPolicy(java.lang.String serviceLbPolicy) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CustomerEncryptionKey.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CustomerEncryptionKey.java index 8d400574b3d..19062661a73 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CustomerEncryptionKey.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/CustomerEncryptionKey.java @@ -54,9 +54,9 @@ public final class CustomerEncryptionKey extends com.google.api.client.json.Gene private java.lang.String kmsKeyServiceAccount; /** - * Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either - * encrypt or decrypt this resource. You can provide either the rawKey or thersaEncryptedKey. For - * example: + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies a 256-bit customer- + * supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. + * You can provide either the rawKey or thersaEncryptedKey. For example: * * "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=" * The value may be {@code null}. @@ -65,9 +65,9 @@ public final class CustomerEncryptionKey extends com.google.api.client.json.Gene private java.lang.String rawKey; /** - * Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to - * either encrypt or decrypt this resource. You can provide either the rawKey or - * thersaEncryptedKey. For example: + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies an RFC 4648 base64 + * encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt + * this resource. You can provide either the rawKey or thersaEncryptedKey. For example: * * "rsaEncryptedKey": "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH * z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD @@ -86,8 +86,8 @@ public final class CustomerEncryptionKey extends com.google.api.client.json.Gene private java.lang.String rsaEncryptedKey; /** - * [Output only] TheRFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key - * that protects this resource. + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. [Output only] TheRFC 4648 base64 + * encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -148,9 +148,9 @@ public CustomerEncryptionKey setKmsKeyServiceAccount(java.lang.String kmsKeyServ } /** - * Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either - * encrypt or decrypt this resource. You can provide either the rawKey or thersaEncryptedKey. For - * example: + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies a 256-bit customer- + * supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. + * You can provide either the rawKey or thersaEncryptedKey. For example: * * "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=" * @return value or {@code null} for none @@ -160,9 +160,9 @@ public java.lang.String getRawKey() { } /** - * Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either - * encrypt or decrypt this resource. You can provide either the rawKey or thersaEncryptedKey. For - * example: + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies a 256-bit customer- + * supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. + * You can provide either the rawKey or thersaEncryptedKey. For example: * * "rawKey": "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=" * @param rawKey rawKey or {@code null} for none @@ -173,9 +173,9 @@ public CustomerEncryptionKey setRawKey(java.lang.String rawKey) { } /** - * Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to - * either encrypt or decrypt this resource. You can provide either the rawKey or - * thersaEncryptedKey. For example: + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies an RFC 4648 base64 + * encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt + * this resource. You can provide either the rawKey or thersaEncryptedKey. For example: * * "rsaEncryptedKey": "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH * z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD @@ -195,9 +195,9 @@ public java.lang.String getRsaEncryptedKey() { } /** - * Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to - * either encrypt or decrypt this resource. You can provide either the rawKey or - * thersaEncryptedKey. For example: + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. Specifies an RFC 4648 base64 + * encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt + * this resource. You can provide either the rawKey or thersaEncryptedKey. For example: * * "rsaEncryptedKey": "ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH * z0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD @@ -218,8 +218,8 @@ public CustomerEncryptionKey setRsaEncryptedKey(java.lang.String rsaEncryptedKey } /** - * [Output only] TheRFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key - * that protects this resource. + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. [Output only] TheRFC 4648 base64 + * encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. * @return value or {@code null} for none */ public java.lang.String getSha256() { @@ -227,8 +227,8 @@ public java.lang.String getSha256() { } /** - * [Output only] TheRFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key - * that protects this resource. + * [DEPRECATED] CSEK is no longer supported. Use CMEK instead. [Output only] TheRFC 4648 base64 + * encoded SHA-256 hash of the customer-supplied encryption key that protects this resource. * @param sha256 sha256 or {@code null} for none */ public CustomerEncryptionKey setSha256(java.lang.String sha256) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheck.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheck.java index 755b85ebb68..e36611e9cd4 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheck.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HealthCheck.java @@ -162,10 +162,11 @@ public final class HealthCheck extends com.google.api.client.json.GenericJson { * then exactly 3 regions should be specified. The region names must be valid names of Google * Cloud regions. This can only be set for global health check. If this list is non-empty, then * there are restrictions on what other health check fields are supported and what other resources - * can use this health check: - SSL, HTTP2, and GRPC protocols are not supported. - The - * TCP request field is not supported. - The proxyHeader field for HTTP, HTTPS, and TCP is not - * supported. - The checkIntervalSec field must be at least 30. - The health check cannot be - * used with BackendService nor with managed instance group auto-healing. + * can use this health check: - SSL, HTTP2, GRPC, and GRPC_WITH_TLS protocols are not + * supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, + * HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - + * The health check cannot be used with BackendService nor with managed instance group auto- + * healing. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -192,8 +193,9 @@ public final class HealthCheck extends com.google.api.client.json.GenericJson { private java.lang.Integer timeoutSec; /** - * Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2 or GRPC. Exactly one - * of the protocol-specific health check fields must be specified, which must matchtype field. + * Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2, GRPC or + * GRPC_WITH_TLS. Exactly one of the protocol-specific health check fields must be specified, + * which must match type field. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -471,10 +473,11 @@ public HealthCheck setSelfLink(java.lang.String selfLink) { * then exactly 3 regions should be specified. The region names must be valid names of Google * Cloud regions. This can only be set for global health check. If this list is non-empty, then * there are restrictions on what other health check fields are supported and what other resources - * can use this health check: - SSL, HTTP2, and GRPC protocols are not supported. - The - * TCP request field is not supported. - The proxyHeader field for HTTP, HTTPS, and TCP is not - * supported. - The checkIntervalSec field must be at least 30. - The health check cannot be - * used with BackendService nor with managed instance group auto-healing. + * can use this health check: - SSL, HTTP2, GRPC, and GRPC_WITH_TLS protocols are not + * supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, + * HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - + * The health check cannot be used with BackendService nor with managed instance group auto- + * healing. * @return value or {@code null} for none */ public java.util.List getSourceRegions() { @@ -486,10 +489,11 @@ public java.util.List getSourceRegions() { * then exactly 3 regions should be specified. The region names must be valid names of Google * Cloud regions. This can only be set for global health check. If this list is non-empty, then * there are restrictions on what other health check fields are supported and what other resources - * can use this health check: - SSL, HTTP2, and GRPC protocols are not supported. - The - * TCP request field is not supported. - The proxyHeader field for HTTP, HTTPS, and TCP is not - * supported. - The checkIntervalSec field must be at least 30. - The health check cannot be - * used with BackendService nor with managed instance group auto-healing. + * can use this health check: - SSL, HTTP2, GRPC, and GRPC_WITH_TLS protocols are not + * supported. - The TCP request field is not supported. - The proxyHeader field for HTTP, + * HTTPS, and TCP is not supported. - The checkIntervalSec field must be at least 30. - + * The health check cannot be used with BackendService nor with managed instance group auto- + * healing. * @param sourceRegions sourceRegions or {@code null} for none */ public HealthCheck setSourceRegions(java.util.List sourceRegions) { @@ -547,8 +551,9 @@ public HealthCheck setTimeoutSec(java.lang.Integer timeoutSec) { } /** - * Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2 or GRPC. Exactly one - * of the protocol-specific health check fields must be specified, which must matchtype field. + * Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2, GRPC or + * GRPC_WITH_TLS. Exactly one of the protocol-specific health check fields must be specified, + * which must match type field. * @return value or {@code null} for none */ public java.lang.String getType() { @@ -556,8 +561,9 @@ public java.lang.String getType() { } /** - * Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2 or GRPC. Exactly one - * of the protocol-specific health check fields must be specified, which must matchtype field. + * Specifies the type of the healthCheck, either TCP,SSL, HTTP, HTTPS,HTTP2, GRPC or + * GRPC_WITH_TLS. Exactly one of the protocol-specific health check fields must be specified, + * which must match type field. * @param type type or {@code null} for none */ public HealthCheck setType(java.lang.String type) { diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Host.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Host.java new file mode 100644 index 00000000000..755248a69f3 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Host.java @@ -0,0 +1,309 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Represents a host resource. + * + *

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

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

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

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

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

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

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class HostsGetVersionRequest extends com.google.api.client.json.GenericJson { + + /** + * The SBOM selection to return. Duplicate values in the list will be ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sbomSelections; + + /** + * The SBOM selection to return. Duplicate values in the list will be ignored. + * @return value or {@code null} for none + */ + public java.util.List getSbomSelections() { + return sbomSelections; + } + + /** + * The SBOM selection to return. Duplicate values in the list will be ignored. + * @param sbomSelections sbomSelections or {@code null} for none + */ + public HostsGetVersionRequest setSbomSelections(java.util.List sbomSelections) { + this.sbomSelections = sbomSelections; + return this; + } + + @Override + public HostsGetVersionRequest set(String fieldName, Object value) { + return (HostsGetVersionRequest) super.set(fieldName, value); + } + + @Override + public HostsGetVersionRequest clone() { + return (HostsGetVersionRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HostsListResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HostsListResponse.java new file mode 100644 index 00000000000..9497f393be8 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/HostsListResponse.java @@ -0,0 +1,428 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Model definition for HostsListResponse. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class HostsListResponse extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * The unique identifier for the resource; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * A list of host resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider Host used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Host.class); + } + + /** + * The type of resource. Always compute#host for a list of hosts. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + + /** + * An informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * @param etag etag or {@code null} for none + */ + public HostsListResponse setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * The unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * The unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public HostsListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of host resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of host resources. + * @param items items or {@code null} for none + */ + public HostsListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * The type of resource. Always compute#host for a list of hosts. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * The type of resource. Always compute#host for a list of hosts. + * @param kind kind or {@code null} for none + */ + public HostsListResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * This token allows you to get the next page of results for list requests. If the number of + * results is larger thanmaxResults, use the nextPageToken as a value for the query parameter + * pageToken in the next list request. Subsequent list requests will have their own nextPageToken + * to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public HostsListResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * The server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public HostsListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Unreachable resources. end_interface: MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public HostsListResponse setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * An informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * An informational warning message. + * @param warning warning or {@code null} for none + */ + public HostsListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public HostsListResponse set(String fieldName, Object value) { + return (HostsListResponse) super.set(fieldName, value); + } + + @Override + public HostsListResponse clone() { + return (HostsListResponse) super.clone(); + } + + /** + * An informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for HostsListResponseWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReliabilityRisk.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReliabilityRisk.java new file mode 100644 index 00000000000..f426109cf29 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReliabilityRisk.java @@ -0,0 +1,261 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Represents a ReliabilityRisk resource. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ReliabilityRisk extends com.google.api.client.json.GenericJson { + + /** + * Output only. [Output Only] Creation timestamp in RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creationTimestamp; + + /** + * An optional textual description of the resource; provided when the resource is created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * [Output Only] Details of the reliability risk resource + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RiskDetails details; + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.math.BigInteger id; + + /** + * Output only. [Output Only] Type of resource. Always compute#reliabilityRisk for reliability + * risks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Name of the resource. The name must be 1-63 characters long and comply with RFC1035. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The recommendation to mitigate the risk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RiskRecommendation recommendation; + + /** + * Output only. [Output Only] Server-defined URL for the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLinkWithId; + + /** + * Output only. [Output Only] Creation timestamp in RFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getCreationTimestamp() { + return creationTimestamp; + } + + /** + * Output only. [Output Only] Creation timestamp in RFC3339 text format. + * @param creationTimestamp creationTimestamp or {@code null} for none + */ + public ReliabilityRisk setCreationTimestamp(java.lang.String creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return this; + } + + /** + * An optional textual description of the resource; provided when the resource is created. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * An optional textual description of the resource; provided when the resource is created. + * @param description description or {@code null} for none + */ + public ReliabilityRisk setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * [Output Only] Details of the reliability risk resource + * @return value or {@code null} for none + */ + public RiskDetails getDetails() { + return details; + } + + /** + * [Output Only] Details of the reliability risk resource + * @param details details or {@code null} for none + */ + public ReliabilityRisk setDetails(RiskDetails details) { + this.details = details; + return this; + } + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * @return value or {@code null} for none + */ + public java.math.BigInteger getId() { + return id; + } + + /** + * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * @param id id or {@code null} for none + */ + public ReliabilityRisk setId(java.math.BigInteger id) { + this.id = id; + return this; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#reliabilityRisk for reliability + * risks. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Output only. [Output Only] Type of resource. Always compute#reliabilityRisk for reliability + * risks. + * @param kind kind or {@code null} for none + */ + public ReliabilityRisk setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Name of the resource. The name must be 1-63 characters long and comply with RFC1035. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Name of the resource. The name must be 1-63 characters long and comply with RFC1035. + * @param name name or {@code null} for none + */ + public ReliabilityRisk setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The recommendation to mitigate the risk. + * @return value or {@code null} for none + */ + public RiskRecommendation getRecommendation() { + return recommendation; + } + + /** + * The recommendation to mitigate the risk. + * @param recommendation recommendation or {@code null} for none + */ + public ReliabilityRisk setRecommendation(RiskRecommendation recommendation) { + this.recommendation = recommendation; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for the resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined URL for the resource. + * @param selfLink selfLink or {@code null} for none + */ + public ReliabilityRisk setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLinkWithId() { + return selfLinkWithId; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource with the resource id. + * @param selfLinkWithId selfLinkWithId or {@code null} for none + */ + public ReliabilityRisk setSelfLinkWithId(java.lang.String selfLinkWithId) { + this.selfLinkWithId = selfLinkWithId; + return this; + } + + @Override + public ReliabilityRisk set(String fieldName, Object value) { + return (ReliabilityRisk) super.set(fieldName, value); + } + + @Override + public ReliabilityRisk clone() { + return (ReliabilityRisk) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReliabilityRisksListResponse.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReliabilityRisksListResponse.java new file mode 100644 index 00000000000..3c6b647a619 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ReliabilityRisksListResponse.java @@ -0,0 +1,410 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Response message for the List method of ReliabilityRisksService. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ReliabilityRisksListResponse extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] An ETag of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * A list of ReliabilityRisk resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider ReliabilityRisk used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(ReliabilityRisk.class); + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String selfLink; + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachables; + + /** + * [Output Only] Informational warning message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Warning warning; + + /** + * [Output Only] An ETag of the resource. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * [Output Only] An ETag of the resource. + * @param etag etag or {@code null} for none + */ + public ReliabilityRisksListResponse setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * [Output Only] Unique identifier for the resource; defined by the server. + * @param id id or {@code null} for none + */ + public ReliabilityRisksListResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * A list of ReliabilityRisk resources. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * A list of ReliabilityRisk resources. + * @param items items or {@code null} for none + */ + public ReliabilityRisksListResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * [Output Only] This token allows you to get the next page of results for list requests. If the + * number of results is larger thanmaxResults, use the nextPageToken as a value for the query + * parameter pageToken in the next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ReliabilityRisksListResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @return value or {@code null} for none + */ + public java.lang.String getSelfLink() { + return selfLink; + } + + /** + * Output only. [Output Only] Server-defined URL for this resource. + * @param selfLink selfLink or {@code null} for none + */ + public ReliabilityRisksListResponse setSelfLink(java.lang.String selfLink) { + this.selfLink = selfLink; + return this; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @return value or {@code null} for none + */ + public java.util.List getUnreachables() { + return unreachables; + } + + /** + * Output only. [Output Only] Unreachable resources. end_interface: + * MixerListResponseWithEtagBuilder + * @param unreachables unreachables or {@code null} for none + */ + public ReliabilityRisksListResponse setUnreachables(java.util.List unreachables) { + this.unreachables = unreachables; + return this; + } + + /** + * [Output Only] Informational warning message. + * @return value or {@code null} for none + */ + public Warning getWarning() { + return warning; + } + + /** + * [Output Only] Informational warning message. + * @param warning warning or {@code null} for none + */ + public ReliabilityRisksListResponse setWarning(Warning warning) { + this.warning = warning; + return this; + } + + @Override + public ReliabilityRisksListResponse set(String fieldName, Object value) { + return (ReliabilityRisksListResponse) super.set(fieldName, value); + } + + @Override + public ReliabilityRisksListResponse clone() { + return (ReliabilityRisksListResponse) super.clone(); + } + + /** + * [Output Only] Informational warning message. + */ + public static final class Warning extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String code; + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List data; + + static { + // hack to force ProGuard to consider Data used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Data.class); + } + + /** + * [Output Only] A human-readable description of the warning code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @return value or {@code null} for none + */ + public java.lang.String getCode() { + return code; + } + + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine returns + * NO_RESULTS_ON_PAGE if there are no results in the response. + * @param code code or {@code null} for none + */ + public Warning setCode(java.lang.String code) { + this.code = code; + return this; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @return value or {@code null} for none + */ + public java.util.List getData() { + return data; + } + + /** + * [Output Only] Metadata about this warning in key: value format. For example: + * + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * @param data data or {@code null} for none + */ + public Warning setData(java.util.List data) { + this.data = data; + return this; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * [Output Only] A human-readable description of the warning code. + * @param message message or {@code null} for none + */ + public Warning setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Warning set(String fieldName, Object value) { + return (Warning) super.set(fieldName, value); + } + + @Override + public Warning clone() { + return (Warning) super.clone(); + } + + /** + * Model definition for ReliabilityRisksListResponseWarningData. + */ + public static final class Data extends com.google.api.client.json.GenericJson { + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * [Output Only] A warning data value corresponding to the key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * [Output Only] A key that provides more detail on the warning being returned. For example, for + * warnings where there are no results in a list request for a particular zone, this key might be + * scope and the key value might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid network settings + * (for example, if an instance attempts to perform IP forwarding but is not enabled for IP + * forwarding). + * @param key key or {@code null} for none + */ + public Data setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * [Output Only] A warning data value corresponding to the key. + * @param value value or {@code null} for none + */ + public Data setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public Data set(String fieldName, Object value) { + return (Data) super.set(fieldName, value); + } + + @Override + public Data clone() { + return (Data) super.clone(); + } + + } + } +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatus.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatus.java index 88ed315aa42..45529ca6c4f 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatus.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatus.java @@ -70,6 +70,13 @@ public final class ResourceStatus extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private ResourceStatusScheduling scheduling; + /** + * Output only. [Output Only] Details about the instance stopping state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ResourceStatusShutdownDetails shutdownDetails; + /** * The value may be {@code null}. */ @@ -171,6 +178,23 @@ public ResourceStatus setScheduling(ResourceStatusScheduling scheduling) { return this; } + /** + * Output only. [Output Only] Details about the instance stopping state. + * @return value or {@code null} for none + */ + public ResourceStatusShutdownDetails getShutdownDetails() { + return shutdownDetails; + } + + /** + * Output only. [Output Only] Details about the instance stopping state. + * @param shutdownDetails shutdownDetails or {@code null} for none + */ + public ResourceStatus setShutdownDetails(ResourceStatusShutdownDetails shutdownDetails) { + this.shutdownDetails = shutdownDetails; + return this; + } + /** * @return value or {@code null} for none */ diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java index 7753f710612..729022df29f 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusReservationConsumptionInfo.java @@ -37,6 +37,22 @@ public final class ResourceStatusReservationConsumptionInfo extends com.google.a @com.google.api.client.util.Key private java.lang.String consumedReservation; + /** + * Output only. [Output Only] The full resource name of the reservation block that this instance + * is consuming from. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String consumedReservationBlock; + + /** + * Output only. [Output Only] The full resource name of the reservation sub-block that this + * instance is consuming from. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String consumedReservationSubBlock; + /** * Output only. [Output Only] The full resource name of the reservation that this instance is * consuming from. @@ -56,6 +72,44 @@ public ResourceStatusReservationConsumptionInfo setConsumedReservation(java.lang return this; } + /** + * Output only. [Output Only] The full resource name of the reservation block that this instance + * is consuming from. + * @return value or {@code null} for none + */ + public java.lang.String getConsumedReservationBlock() { + return consumedReservationBlock; + } + + /** + * Output only. [Output Only] The full resource name of the reservation block that this instance + * is consuming from. + * @param consumedReservationBlock consumedReservationBlock or {@code null} for none + */ + public ResourceStatusReservationConsumptionInfo setConsumedReservationBlock(java.lang.String consumedReservationBlock) { + this.consumedReservationBlock = consumedReservationBlock; + return this; + } + + /** + * Output only. [Output Only] The full resource name of the reservation sub-block that this + * instance is consuming from. + * @return value or {@code null} for none + */ + public java.lang.String getConsumedReservationSubBlock() { + return consumedReservationSubBlock; + } + + /** + * Output only. [Output Only] The full resource name of the reservation sub-block that this + * instance is consuming from. + * @param consumedReservationSubBlock consumedReservationSubBlock or {@code null} for none + */ + public ResourceStatusReservationConsumptionInfo setConsumedReservationSubBlock(java.lang.String consumedReservationSubBlock) { + this.consumedReservationSubBlock = consumedReservationSubBlock; + return this; + } + @Override public ResourceStatusReservationConsumptionInfo set(String fieldName, Object value) { return (ResourceStatusReservationConsumptionInfo) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusScheduling.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusScheduling.java index 9a480091c65..2a1bf416493 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusScheduling.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusScheduling.java @@ -38,6 +38,21 @@ public final class ResourceStatusScheduling extends com.google.api.client.json.G @com.google.api.client.util.Key private java.lang.Integer availabilityDomain; + /** + * Output only. Specifies the timestamp, when the instance will start graceful shutdown process, + * in RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gracefulShutdownTimestamp; + + /** + * Time in future when the instance will be terminated inRFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String terminationTimestamp; + /** * Specifies the availability domain to place the instance in. The value must be a number between * 1 and the number of availability domains specified in the spread placement policy attached to @@ -59,6 +74,42 @@ public ResourceStatusScheduling setAvailabilityDomain(java.lang.Integer availabi return this; } + /** + * Output only. Specifies the timestamp, when the instance will start graceful shutdown process, + * in RFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getGracefulShutdownTimestamp() { + return gracefulShutdownTimestamp; + } + + /** + * Output only. Specifies the timestamp, when the instance will start graceful shutdown process, + * in RFC3339 text format. + * @param gracefulShutdownTimestamp gracefulShutdownTimestamp or {@code null} for none + */ + public ResourceStatusScheduling setGracefulShutdownTimestamp(java.lang.String gracefulShutdownTimestamp) { + this.gracefulShutdownTimestamp = gracefulShutdownTimestamp; + return this; + } + + /** + * Time in future when the instance will be terminated inRFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getTerminationTimestamp() { + return terminationTimestamp; + } + + /** + * Time in future when the instance will be terminated inRFC3339 text format. + * @param terminationTimestamp terminationTimestamp or {@code null} for none + */ + public ResourceStatusScheduling setTerminationTimestamp(java.lang.String terminationTimestamp) { + this.terminationTimestamp = terminationTimestamp; + return this; + } + @Override public ResourceStatusScheduling set(String fieldName, Object value) { return (ResourceStatusScheduling) super.set(fieldName, value); diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusShutdownDetails.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusShutdownDetails.java new file mode 100644 index 00000000000..58e7aced5d4 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/ResourceStatusShutdownDetails.java @@ -0,0 +1,138 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Specifies if the instance is in `PENDING_STOP` state or there is a programmed stop scheduled. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ResourceStatusShutdownDetails extends com.google.api.client.json.GenericJson { + + /** + * The duration for graceful shutdown. Only applicable when `stop_state=PENDING_STOP`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration maxDuration; + + /** + * Past timestamp indicating the beginning of current `stopState` in RFC3339 text format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestTimestamp; + + /** + * Current stopping state of the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stopState; + + /** + * Target instance state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetState; + + /** + * The duration for graceful shutdown. Only applicable when `stop_state=PENDING_STOP`. + * @return value or {@code null} for none + */ + public Duration getMaxDuration() { + return maxDuration; + } + + /** + * The duration for graceful shutdown. Only applicable when `stop_state=PENDING_STOP`. + * @param maxDuration maxDuration or {@code null} for none + */ + public ResourceStatusShutdownDetails setMaxDuration(Duration maxDuration) { + this.maxDuration = maxDuration; + return this; + } + + /** + * Past timestamp indicating the beginning of current `stopState` in RFC3339 text format. + * @return value or {@code null} for none + */ + public java.lang.String getRequestTimestamp() { + return requestTimestamp; + } + + /** + * Past timestamp indicating the beginning of current `stopState` in RFC3339 text format. + * @param requestTimestamp requestTimestamp or {@code null} for none + */ + public ResourceStatusShutdownDetails setRequestTimestamp(java.lang.String requestTimestamp) { + this.requestTimestamp = requestTimestamp; + return this; + } + + /** + * Current stopping state of the instance. + * @return value or {@code null} for none + */ + public java.lang.String getStopState() { + return stopState; + } + + /** + * Current stopping state of the instance. + * @param stopState stopState or {@code null} for none + */ + public ResourceStatusShutdownDetails setStopState(java.lang.String stopState) { + this.stopState = stopState; + return this; + } + + /** + * Target instance state. + * @return value or {@code null} for none + */ + public java.lang.String getTargetState() { + return targetState; + } + + /** + * Target instance state. + * @param targetState targetState or {@code null} for none + */ + public ResourceStatusShutdownDetails setTargetState(java.lang.String targetState) { + this.targetState = targetState; + return this; + } + + @Override + public ResourceStatusShutdownDetails set(String fieldName, Object value) { + return (ResourceStatusShutdownDetails) super.set(fieldName, value); + } + + @Override + public ResourceStatusShutdownDetails clone() { + return (ResourceStatusShutdownDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RiskDetails.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RiskDetails.java new file mode 100644 index 00000000000..cbd07a47aa6 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RiskDetails.java @@ -0,0 +1,162 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Detailed insights and metrics about a detected reliability risk. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RiskDetails extends com.google.api.client.json.GenericJson { + + /** + * The duration of the risk since it was detected. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String duration; + + /** + * Insight details for global DNS risk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RiskDetailsGlobalDnsInsight globalDnsInsight; + + /** + * The last time the risk was updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String lastUpdateTimestamp; + + /** + * The severity of the risk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String severity; + + /** + * The type of risk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * The duration of the risk since it was detected. + * @return value or {@code null} for none + */ + public String getDuration() { + return duration; + } + + /** + * The duration of the risk since it was detected. + * @param duration duration or {@code null} for none + */ + public RiskDetails setDuration(String duration) { + this.duration = duration; + return this; + } + + /** + * Insight details for global DNS risk. + * @return value or {@code null} for none + */ + public RiskDetailsGlobalDnsInsight getGlobalDnsInsight() { + return globalDnsInsight; + } + + /** + * Insight details for global DNS risk. + * @param globalDnsInsight globalDnsInsight or {@code null} for none + */ + public RiskDetails setGlobalDnsInsight(RiskDetailsGlobalDnsInsight globalDnsInsight) { + this.globalDnsInsight = globalDnsInsight; + return this; + } + + /** + * The last time the risk was updated. + * @return value or {@code null} for none + */ + public String getLastUpdateTimestamp() { + return lastUpdateTimestamp; + } + + /** + * The last time the risk was updated. + * @param lastUpdateTimestamp lastUpdateTimestamp or {@code null} for none + */ + public RiskDetails setLastUpdateTimestamp(String lastUpdateTimestamp) { + this.lastUpdateTimestamp = lastUpdateTimestamp; + return this; + } + + /** + * The severity of the risk. + * @return value or {@code null} for none + */ + public java.lang.String getSeverity() { + return severity; + } + + /** + * The severity of the risk. + * @param severity severity or {@code null} for none + */ + public RiskDetails setSeverity(java.lang.String severity) { + this.severity = severity; + return this; + } + + /** + * The type of risk. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * The type of risk. + * @param type type or {@code null} for none + */ + public RiskDetails setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public RiskDetails set(String fieldName, Object value) { + return (RiskDetails) super.set(fieldName, value); + } + + @Override + public RiskDetails clone() { + return (RiskDetails) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RiskDetailsGlobalDnsInsight.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RiskDetailsGlobalDnsInsight.java new file mode 100644 index 00000000000..6272a99c767 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RiskDetailsGlobalDnsInsight.java @@ -0,0 +1,138 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Detailed insights for a global DNS reliability risk. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RiskDetailsGlobalDnsInsight extends com.google.api.client.json.GenericJson { + + /** + * Indicates whether the project's default DNS setting is global DNS. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean projectDefaultIsGlobalDns; + + /** + * The observation window for the query counts. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String queryObservationWindow; + + /** + * The number of queries that are risky. This is always less than or equal to total_query_count. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long riskyQueryCount; + + /** + * The total number of queries in the observation window. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long totalQueryCount; + + /** + * Indicates whether the project's default DNS setting is global DNS. + * @return value or {@code null} for none + */ + public java.lang.Boolean getProjectDefaultIsGlobalDns() { + return projectDefaultIsGlobalDns; + } + + /** + * Indicates whether the project's default DNS setting is global DNS. + * @param projectDefaultIsGlobalDns projectDefaultIsGlobalDns or {@code null} for none + */ + public RiskDetailsGlobalDnsInsight setProjectDefaultIsGlobalDns(java.lang.Boolean projectDefaultIsGlobalDns) { + this.projectDefaultIsGlobalDns = projectDefaultIsGlobalDns; + return this; + } + + /** + * The observation window for the query counts. + * @return value or {@code null} for none + */ + public String getQueryObservationWindow() { + return queryObservationWindow; + } + + /** + * The observation window for the query counts. + * @param queryObservationWindow queryObservationWindow or {@code null} for none + */ + public RiskDetailsGlobalDnsInsight setQueryObservationWindow(String queryObservationWindow) { + this.queryObservationWindow = queryObservationWindow; + return this; + } + + /** + * The number of queries that are risky. This is always less than or equal to total_query_count. + * @return value or {@code null} for none + */ + public java.lang.Long getRiskyQueryCount() { + return riskyQueryCount; + } + + /** + * The number of queries that are risky. This is always less than or equal to total_query_count. + * @param riskyQueryCount riskyQueryCount or {@code null} for none + */ + public RiskDetailsGlobalDnsInsight setRiskyQueryCount(java.lang.Long riskyQueryCount) { + this.riskyQueryCount = riskyQueryCount; + return this; + } + + /** + * The total number of queries in the observation window. + * @return value or {@code null} for none + */ + public java.lang.Long getTotalQueryCount() { + return totalQueryCount; + } + + /** + * The total number of queries in the observation window. + * @param totalQueryCount totalQueryCount or {@code null} for none + */ + public RiskDetailsGlobalDnsInsight setTotalQueryCount(java.lang.Long totalQueryCount) { + this.totalQueryCount = totalQueryCount; + return this; + } + + @Override + public RiskDetailsGlobalDnsInsight set(String fieldName, Object value) { + return (RiskDetailsGlobalDnsInsight) super.set(fieldName, value); + } + + @Override + public RiskDetailsGlobalDnsInsight clone() { + return (RiskDetailsGlobalDnsInsight) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RiskRecommendation.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RiskRecommendation.java new file mode 100644 index 00000000000..12baa97f52a --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/RiskRecommendation.java @@ -0,0 +1,90 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Recommendation for mitigating a reliability risk, including a reference URL. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RiskRecommendation extends com.google.api.client.json.GenericJson { + + /** + * Mitigation guide for the risk. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String content; + + /** + * URL referencing a more detailed mitigation guide. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String referenceUrl; + + /** + * Mitigation guide for the risk. + * @return value or {@code null} for none + */ + public java.lang.String getContent() { + return content; + } + + /** + * Mitigation guide for the risk. + * @param content content or {@code null} for none + */ + public RiskRecommendation setContent(java.lang.String content) { + this.content = content; + return this; + } + + /** + * URL referencing a more detailed mitigation guide. + * @return value or {@code null} for none + */ + public java.lang.String getReferenceUrl() { + return referenceUrl; + } + + /** + * URL referencing a more detailed mitigation guide. + * @param referenceUrl referenceUrl or {@code null} for none + */ + public RiskRecommendation setReferenceUrl(java.lang.String referenceUrl) { + this.referenceUrl = referenceUrl; + return this; + } + + @Override + public RiskRecommendation set(String fieldName, Object value) { + return (RiskRecommendation) super.set(fieldName, value); + } + + @Override + public RiskRecommendation clone() { + return (RiskRecommendation) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Scheduling.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Scheduling.java index a8540cbb62d..efb789e8c43 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Scheduling.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/Scheduling.java @@ -50,6 +50,12 @@ public final class Scheduling extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.Integer availabilityDomain; + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SchedulingGracefulShutdown gracefulShutdown; + /** * Specify the time in seconds for host error detection, the value must be within the range of * [90, 330] with the increment of 30, if unset, the default behavior of host error recovery will @@ -131,6 +137,15 @@ public final class Scheduling extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.Boolean preemptible; + /** + * Specifies the Metadata Service preemption notice duration before the GCE ACPI G2 Soft Off + * signal is triggered for Spot VMs only. If not specified, there will be no wait before the G2 + * Soft Off signal is triggered. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration preemptionNoticeDuration; + /** * Specifies the provisioning model of the instance. * The value may be {@code null}. @@ -202,6 +217,21 @@ public Scheduling setAvailabilityDomain(java.lang.Integer availabilityDomain) { return this; } + /** + * @return value or {@code null} for none + */ + public SchedulingGracefulShutdown getGracefulShutdown() { + return gracefulShutdown; + } + + /** + * @param gracefulShutdown gracefulShutdown or {@code null} for none + */ + public Scheduling setGracefulShutdown(SchedulingGracefulShutdown gracefulShutdown) { + this.gracefulShutdown = gracefulShutdown; + return this; + } + /** * Specify the time in seconds for host error detection, the value must be within the range of * [90, 330] with the increment of 30, if unset, the default behavior of host error recovery will @@ -394,6 +424,27 @@ public Scheduling setPreemptible(java.lang.Boolean preemptible) { return this; } + /** + * Specifies the Metadata Service preemption notice duration before the GCE ACPI G2 Soft Off + * signal is triggered for Spot VMs only. If not specified, there will be no wait before the G2 + * Soft Off signal is triggered. + * @return value or {@code null} for none + */ + public Duration getPreemptionNoticeDuration() { + return preemptionNoticeDuration; + } + + /** + * Specifies the Metadata Service preemption notice duration before the GCE ACPI G2 Soft Off + * signal is triggered for Spot VMs only. If not specified, there will be no wait before the G2 + * Soft Off signal is triggered. + * @param preemptionNoticeDuration preemptionNoticeDuration or {@code null} for none + */ + public Scheduling setPreemptionNoticeDuration(Duration preemptionNoticeDuration) { + this.preemptionNoticeDuration = preemptionNoticeDuration; + return this; + } + /** * Specifies the provisioning model of the instance. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SchedulingGracefulShutdown.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SchedulingGracefulShutdown.java new file mode 100644 index 00000000000..d5e97fd0ae5 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/SchedulingGracefulShutdown.java @@ -0,0 +1,93 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * The configuration for gracefully shutting down the instance. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SchedulingGracefulShutdown extends com.google.api.client.json.GenericJson { + + /** + * Opts-in for graceful shutdown. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enabled; + + /** + * The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't + * complete after this time, then the instance transitions to the STOPPING state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Duration maxDuration; + + /** + * Opts-in for graceful shutdown. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnabled() { + return enabled; + } + + /** + * Opts-in for graceful shutdown. + * @param enabled enabled or {@code null} for none + */ + public SchedulingGracefulShutdown setEnabled(java.lang.Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't + * complete after this time, then the instance transitions to the STOPPING state. + * @return value or {@code null} for none + */ + public Duration getMaxDuration() { + return maxDuration; + } + + /** + * The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't + * complete after this time, then the instance transitions to the STOPPING state. + * @param maxDuration maxDuration or {@code null} for none + */ + public SchedulingGracefulShutdown setMaxDuration(Duration maxDuration) { + this.maxDuration = maxDuration; + return this; + } + + @Override + public SchedulingGracefulShutdown set(String fieldName, Object value) { + return (SchedulingGracefulShutdown) super.set(fieldName, value); + } + + @Override + public SchedulingGracefulShutdown clone() { + return (SchedulingGracefulShutdown) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePool.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePool.java index 13a2e7a534a..96b445a343a 100644 --- a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePool.java +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePool.java @@ -51,7 +51,7 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { private java.lang.String description; /** - * Output only. [Output Only] Provisioned capacities for each SKU for this Exapool in GiB + * Provisioned capacities for each SKU for this Exapool in GiB * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -164,6 +164,13 @@ public final class StoragePool extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String selfLinkWithId; + /** + * Share settings for the storage pool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private StoragePoolShareSettings shareSettings; + /** * Output only. [Output Only] The status of storage pool creation. - CREATING: * Storage pool is provisioning. storagePool. - FAILED: Storage pool creation failed. @@ -247,7 +254,7 @@ public StoragePool setDescription(java.lang.String description) { } /** - * Output only. [Output Only] Provisioned capacities for each SKU for this Exapool in GiB + * Provisioned capacities for each SKU for this Exapool in GiB * @return value or {@code null} for none */ public StoragePoolExapoolProvisionedCapacityGb getExapoolProvisionedCapacityGb() { @@ -255,7 +262,7 @@ public StoragePoolExapoolProvisionedCapacityGb getExapoolProvisionedCapacityGb() } /** - * Output only. [Output Only] Provisioned capacities for each SKU for this Exapool in GiB + * Provisioned capacities for each SKU for this Exapool in GiB * @param exapoolProvisionedCapacityGb exapoolProvisionedCapacityGb or {@code null} for none */ public StoragePool setExapoolProvisionedCapacityGb(StoragePoolExapoolProvisionedCapacityGb exapoolProvisionedCapacityGb) { @@ -556,6 +563,23 @@ public StoragePool setSelfLinkWithId(java.lang.String selfLinkWithId) { return this; } + /** + * Share settings for the storage pool. + * @return value or {@code null} for none + */ + public StoragePoolShareSettings getShareSettings() { + return shareSettings; + } + + /** + * Share settings for the storage pool. + * @param shareSettings shareSettings or {@code null} for none + */ + public StoragePool setShareSettings(StoragePoolShareSettings shareSettings) { + this.shareSettings = shareSettings; + return this; + } + /** * Output only. [Output Only] The status of storage pool creation. - CREATING: * Storage pool is provisioning. storagePool. - FAILED: Storage pool creation failed. diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolShareSettings.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolShareSettings.java new file mode 100644 index 00000000000..e2a24bc6940 --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolShareSettings.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Share settings for the storage pool. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class StoragePoolShareSettings extends com.google.api.client.json.GenericJson { + + /** + * A map of project id and project config. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map projectMap; + + /** + * A map of project id and project config. + * @return value or {@code null} for none + */ + public java.util.Map getProjectMap() { + return projectMap; + } + + /** + * A map of project id and project config. + * @param projectMap projectMap or {@code null} for none + */ + public StoragePoolShareSettings setProjectMap(java.util.Map projectMap) { + this.projectMap = projectMap; + return this; + } + + @Override + public StoragePoolShareSettings set(String fieldName, Object value) { + return (StoragePoolShareSettings) super.set(fieldName, value); + } + + @Override + public StoragePoolShareSettings clone() { + return (StoragePoolShareSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolShareSettingsProjectConfig.java b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolShareSettingsProjectConfig.java new file mode 100644 index 00000000000..63cba54eaaf --- /dev/null +++ b/clients/google-api-services-compute/v1/2.0.0/com/google/api/services/compute/model/StoragePoolShareSettingsProjectConfig.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Config for each project in the share settings. + * + *

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

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class StoragePoolShareSettingsProjectConfig extends com.google.api.client.json.GenericJson { + + /** + * The project ID, should be same as the key of this project config in the parent map. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String projectId; + + /** + * The project ID, should be same as the key of this project config in the parent map. + * @return value or {@code null} for none + */ + public java.lang.String getProjectId() { + return projectId; + } + + /** + * The project ID, should be same as the key of this project config in the parent map. + * @param projectId projectId or {@code null} for none + */ + public StoragePoolShareSettingsProjectConfig setProjectId(java.lang.String projectId) { + this.projectId = projectId; + return this; + } + + @Override + public StoragePoolShareSettingsProjectConfig set(String fieldName, Object value) { + return (StoragePoolShareSettingsProjectConfig) super.set(fieldName, value); + } + + @Override + public StoragePoolShareSettingsProjectConfig clone() { + return (StoragePoolShareSettingsProjectConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/v1/2.0.0/pom.xml b/clients/google-api-services-compute/v1/2.0.0/pom.xml index b2bd592ced0..98333194f68 100644 --- a/clients/google-api-services-compute/v1/2.0.0/pom.xml +++ b/clients/google-api-services-compute/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-compute - v1-rev20260709-2.0.0 - Compute Engine API v1-rev20260709-2.0.0 + v1-rev20260722-2.0.0 + Compute Engine API v1-rev20260722-2.0.0 jar 2011 diff --git a/clients/google-api-services-compute/v1/README.md b/clients/google-api-services-compute/v1/README.md index ad57ce6984d..4477eb1a582 100644 --- a/clients/google-api-services-compute/v1/README.md +++ b/clients/google-api-services-compute/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-compute - v1-rev20260709-2.0.0 + v1-rev20260722-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-compute:v1-rev20260709-2.0.0' + implementation 'com.google.apis:google-api-services-compute:v1-rev20260722-2.0.0' } ```