{@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 ComputeRequestThis 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.MapThis 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.ListThis 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.MapThis 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.ListThe 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{@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+ * {@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{@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{@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{@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{@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{@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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.MapThis 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 @@