{@link + * Update#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. + * @param parentName The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * @param reservationSubBlock The name of the subBlock resource. + * @param content the {@link com.google.api.services.compute.model.ReservationSubBlock} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock, com.google.api.services.compute.model.ReservationSubBlock content) { + super(Compute.this, "PATCH", 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.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); + } + this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified."); + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + @Override + public Update setUserIp(java.lang.String userIp) { + return (Update) 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 Update setProject(java.lang.String project) { + 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 Update setZone(java.lang.String zone) { + this.zone = zone; + return this; + } + + /** + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + @com.google.api.client.util.Key + private java.lang.String parentName; + + /** The name of the parent reservation and parent block. In the format of + reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + public java.lang.String getParentName() { + return parentName; + } + + /** + * The name of the parent reservation and parent block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + */ + public Update setParentName(java.lang.String parentName) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_NAME_PATTERN.matcher(parentName).matches(), + "Parameter parentName must conform to the pattern " + + "^reservations/[^/]+/reservationBlocks/[^/]+$"); + } + this.parentName = parentName; + return this; + } + + /** The name of the subBlock resource. */ + @com.google.api.client.util.Key + private java.lang.String reservationSubBlock; + + /** The name of the subBlock resource. + */ + public java.lang.String getReservationSubBlock() { + return reservationSubBlock; + } + + /** The name of the subBlock resource. */ + public Update setReservationSubBlock(java.lang.String reservationSubBlock) { + this.reservationSubBlock = reservationSubBlock; + 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 Update setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** The fields to be updated as part of this request. */ + @com.google.api.client.util.Key + private String updateMask; + + /** The fields to be updated as part of this request. + */ + public String getUpdateMask() { + return updateMask; + } + + /** The fields to be updated as part of this request. */ + public Update setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } } diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservation.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservation.java index 8d1901147cb..5268eb0c66c 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservation.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/FutureReservation.java @@ -73,6 +73,14 @@ public final class FutureReservation extends com.google.api.client.json.GenericJ @com.google.api.client.util.Key private java.lang.Boolean autoDeleteAutoCreatedReservations; + /** + * Full or partial URL of an existing future reservation to indicate intent for reserving capacity + * in the same cluster as the colocation resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String colocationResource; + /** * If not present, then FR will not deliver a new commitment or update an existing commitment. * The value may be {@code null}. @@ -359,6 +367,25 @@ public FutureReservation setAutoDeleteAutoCreatedReservations(java.lang.Boolean return this; } + /** + * Full or partial URL of an existing future reservation to indicate intent for reserving capacity + * in the same cluster as the colocation resource. + * @return value or {@code null} for none + */ + public java.lang.String getColocationResource() { + return colocationResource; + } + + /** + * Full or partial URL of an existing future reservation to indicate intent for reserving capacity + * in the same cluster as the colocation resource. + * @param colocationResource colocationResource or {@code null} for none + */ + public FutureReservation setColocationResource(java.lang.String colocationResource) { + this.colocationResource = colocationResource; + return this; + } + /** * If not present, then FR will not deliver a new commitment or update an existing commitment. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicy.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicy.java index e8f89f7b01b..0a91a02b2bc 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicy.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicy.java @@ -32,9 +32,9 @@ public final class InstanceGroupManagerInstanceLifecyclePolicy extends com.googl /** * The action that a MIG performs on a failed VM. If the value of the onFailedHealthCheck field is * `DEFAULT_ACTION`, then the same action also applies to the VMs on which your application fails - * a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed VM by - * recreating it. For more information, see about repairing VMs in a MIG. - DO_NOTHING: MIG does - * not repair a failed VM. + * a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed + * VM by recreating it. For more information, see About repairing VMs in a MIG. - + * DO_NOTHING: MIG does not repair a failed VM. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -91,9 +91,9 @@ public final class InstanceGroupManagerInstanceLifecyclePolicy extends com.googl /** * The action that a MIG performs on a failed VM. If the value of the onFailedHealthCheck field is * `DEFAULT_ACTION`, then the same action also applies to the VMs on which your application fails - * a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed VM by - * recreating it. For more information, see about repairing VMs in a MIG. - DO_NOTHING: MIG does - * not repair a failed VM. + * a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed + * VM by recreating it. For more information, see About repairing VMs in a MIG. - + * DO_NOTHING: MIG does not repair a failed VM. * @return value or {@code null} for none */ public java.lang.String getDefaultActionOnFailure() { @@ -103,9 +103,9 @@ public java.lang.String getDefaultActionOnFailure() { /** * The action that a MIG performs on a failed VM. If the value of the onFailedHealthCheck field is * `DEFAULT_ACTION`, then the same action also applies to the VMs on which your application fails - * a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed VM by - * recreating it. For more information, see about repairing VMs in a MIG. - DO_NOTHING: MIG does - * not repair a failed VM. + * a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed + * VM by recreating it. For more information, see About repairing VMs in a MIG. - + * DO_NOTHING: MIG does not repair a failed VM. * @param defaultActionOnFailure defaultActionOnFailure or {@code null} for none */ public InstanceGroupManagerInstanceLifecyclePolicy setDefaultActionOnFailure(java.lang.String defaultActionOnFailure) { diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectMacsec.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectMacsec.java index 904e54471a3..0034d84e1c3 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectMacsec.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/InterconnectMacsec.java @@ -41,6 +41,14 @@ public final class InterconnectMacsec extends com.google.api.client.json.Generic @com.google.api.client.util.Key private java.lang.Boolean failOpen; + /** + * Optional. URL of the InterconnectKeyGroup resource to use for MACsec, in the format: + * projects/{project}/locations/{region}/interconnectKeyGroups/{interconnectKeyGroup}. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String interconnectKeyGroup; + /** * Required. A keychain placeholder describing a set of named key objects along with their start * times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically @@ -76,6 +84,25 @@ public InterconnectMacsec setFailOpen(java.lang.Boolean failOpen) { return this; } + /** + * Optional. URL of the InterconnectKeyGroup resource to use for MACsec, in the format: + * projects/{project}/locations/{region}/interconnectKeyGroups/{interconnectKeyGroup}. + * @return value or {@code null} for none + */ + public java.lang.String getInterconnectKeyGroup() { + return interconnectKeyGroup; + } + + /** + * Optional. URL of the InterconnectKeyGroup resource to use for MACsec, in the format: + * projects/{project}/locations/{region}/interconnectKeyGroups/{interconnectKeyGroup}. + * @param interconnectKeyGroup interconnectKeyGroup or {@code null} for none + */ + public InterconnectMacsec setInterconnectKeyGroup(java.lang.String interconnectKeyGroup) { + this.interconnectKeyGroup = interconnectKeyGroup; + return this; + } + /** * Required. A keychain placeholder describing a set of named key objects along with their start * times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlock.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlock.java index aa570b1a944..fb362a80eab 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlock.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationBlock.java @@ -30,26 +30,26 @@ public final class ReservationBlock extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The number of resources that are allocated in this reservation - * block. + * Output only. [Output Only] Health information for the reservation block. * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.lang.Integer count; + private ReservationBlockHealthInfo blockHealthInfo; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] The number of resources that are allocated in this reservation + * block. * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.lang.String creationTimestamp; + private java.lang.Integer count; /** - * Output only. [Output Only] Health information for the reservation block. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key - private ReservationBlockHealthInfo healthInfo; + private java.lang.String creationTimestamp; /** * Output only. [Output Only] The unique identifier for the resource. This identifier is defined @@ -159,6 +159,23 @@ public final class ReservationBlock extends com.google.api.client.json.GenericJs @com.google.api.client.util.Key private java.lang.String zone; + /** + * Output only. [Output Only] Health information for the reservation block. + * @return value or {@code null} for none + */ + public ReservationBlockHealthInfo getBlockHealthInfo() { + return blockHealthInfo; + } + + /** + * Output only. [Output Only] Health information for the reservation block. + * @param blockHealthInfo blockHealthInfo or {@code null} for none + */ + public ReservationBlock setBlockHealthInfo(ReservationBlockHealthInfo blockHealthInfo) { + this.blockHealthInfo = blockHealthInfo; + return this; + } + /** * Output only. [Output Only] The number of resources that are allocated in this reservation * block. @@ -195,23 +212,6 @@ public ReservationBlock setCreationTimestamp(java.lang.String creationTimestamp) return this; } - /** - * Output only. [Output Only] Health information for the reservation block. - * @return value or {@code null} for none - */ - public ReservationBlockHealthInfo getHealthInfo() { - return healthInfo; - } - - /** - * Output only. [Output Only] Health information for the reservation block. - * @param healthInfo healthInfo or {@code null} for none - */ - public ReservationBlock setHealthInfo(ReservationBlockHealthInfo healthInfo) { - this.healthInfo = healthInfo; - return this; - } - /** * Output only. [Output Only] The unique identifier for the resource. This identifier is defined * by the server. diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java index 7e39ffbcc94..e229ab3a396 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java @@ -50,13 +50,6 @@ public final class ReservationSubBlock extends com.google.api.client.json.Generi @com.google.api.client.util.Key private java.lang.String creationTimestamp; - /** - * Output only. [Output Only] Health information for the reservation subBlock. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ReservationSubBlockHealthInfo healthInfo; - /** * Output only. [Output Only] The unique identifier for the resource. This identifier is defined * by the server. @@ -112,6 +105,15 @@ public final class ReservationSubBlock extends com.google.api.client.json.Generi @com.google.api.client.util.Key private GroupMaintenanceInfo reservationSubBlockMaintenance; + /** + * Customer specified retention priority for power shedding events. Used to determine priority of + * the subBlock relative to others during a power shedding event. Higher priorities are retained + * over lower ones. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer retentionPriority; + /** * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * The value may be {@code null}. @@ -133,6 +135,13 @@ public final class ReservationSubBlock extends com.google.api.client.json.Generi @com.google.api.client.util.Key private java.lang.String status; + /** + * Output only. [Output Only] Health information for the reservation subBlock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationSubBlockHealthInfo subBlockHealthInfo; + /** * Output only. [Output Only] Zone in which the reservation subBlock resides. * The value may be {@code null}. @@ -191,23 +200,6 @@ public ReservationSubBlock setCreationTimestamp(java.lang.String creationTimesta return this; } - /** - * Output only. [Output Only] Health information for the reservation subBlock. - * @return value or {@code null} for none - */ - public ReservationSubBlockHealthInfo getHealthInfo() { - return healthInfo; - } - - /** - * Output only. [Output Only] Health information for the reservation subBlock. - * @param healthInfo healthInfo or {@code null} for none - */ - public ReservationSubBlock setHealthInfo(ReservationSubBlockHealthInfo healthInfo) { - this.healthInfo = healthInfo; - return this; - } - /** * Output only. [Output Only] The unique identifier for the resource. This identifier is defined * by the server. @@ -339,6 +331,27 @@ public ReservationSubBlock setReservationSubBlockMaintenance(GroupMaintenanceInf return this; } + /** + * Customer specified retention priority for power shedding events. Used to determine priority of + * the subBlock relative to others during a power shedding event. Higher priorities are retained + * over lower ones. + * @return value or {@code null} for none + */ + public java.lang.Integer getRetentionPriority() { + return retentionPriority; + } + + /** + * Customer specified retention priority for power shedding events. Used to determine priority of + * the subBlock relative to others during a power shedding event. Higher priorities are retained + * over lower ones. + * @param retentionPriority retentionPriority or {@code null} for none + */ + public ReservationSubBlock setRetentionPriority(java.lang.Integer retentionPriority) { + this.retentionPriority = retentionPriority; + return this; + } + /** * Output only. [Output Only] Server-defined fully-qualified URL for this resource. * @return value or {@code null} for none @@ -390,6 +403,23 @@ public ReservationSubBlock setStatus(java.lang.String status) { return this; } + /** + * Output only. [Output Only] Health information for the reservation subBlock. + * @return value or {@code null} for none + */ + public ReservationSubBlockHealthInfo getSubBlockHealthInfo() { + return subBlockHealthInfo; + } + + /** + * Output only. [Output Only] Health information for the reservation subBlock. + * @param subBlockHealthInfo subBlockHealthInfo or {@code null} for none + */ + public ReservationSubBlock setSubBlockHealthInfo(ReservationSubBlockHealthInfo subBlockHealthInfo) { + this.subBlockHealthInfo = subBlockHealthInfo; + return this; + } + /** * Output only. [Output Only] Zone in which the reservation subBlock resides. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterNat.java b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterNat.java index 49bb7ee52c3..67b18483489 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterNat.java +++ b/clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/RouterNat.java @@ -50,8 +50,8 @@ public final class RouterNat extends com.google.api.client.json.GenericJson { /** * Output only. Effective timeout (in seconds) for TCP connections that are in TIME_WAIT state. - * This value is equal to tcp_time_wait_timeout_sec if it is set, otherwise it is equal to 120s. - * The field is output only. + * This value is equal to tcp_time_wait_timeout_sec. If tcp_time_wait_timeout_sec isn't set, the + * effective timeout is 30s or 120s. The field is output only. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -280,8 +280,8 @@ public RouterNat setDrainNatIps(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 SchedulingVsockMode extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mode; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getMode() { + return mode; + } + + /** + * @param mode mode or {@code null} for none + */ + public SchedulingVsockMode setMode(java.lang.String mode) { + this.mode = mode; + return this; + } + + @Override + public SchedulingVsockMode set(String fieldName, Object value) { + return (SchedulingVsockMode) super.set(fieldName, value); + } + + @Override + public SchedulingVsockMode clone() { + return (SchedulingVsockMode) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/alpha/2.0.0/pom.xml b/clients/google-api-services-compute/alpha/2.0.0/pom.xml index d5ad37dbb7c..c1037e9efdd 100644 --- a/clients/google-api-services-compute/alpha/2.0.0/pom.xml +++ b/clients/google-api-services-compute/alpha/2.0.0/pom.xml @@ -8,8 +8,8 @@The typical use is:
+ *
+ * {@code Compute compute = new Compute(...);}
+ * {@code Compute.ImageViews.List request = compute.imageViews().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public ImageViews imageViews() {
+ return new ImageViews();
+ }
+
+ /**
+ * The "imageViews" collection of methods.
+ */
+ public class ImageViews {
+
+ /**
+ * Returns the specified global ImageView resource, with a regional context.
+ *
+ * Create a request for the method "imageViews.get".
+ *
+ * This request holds the parameters needed by the compute server. After setting any optional
+ * parameters, call the {@link Get#execute()} method to invoke the remote operation.
+ *
+ * @param project Required. Project ID for this request.
+ * @param region Required. Name of the region for this request.
+ * @param resourceId Name of the image resource to return.
+ * @return the request
+ */
+ public Get get(java.lang.String project, java.lang.String region, java.lang.String resourceId) throws java.io.IOException {
+ Get result = new Get(project, region, resourceId);
+ 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 Required. Project ID for this request. + * @param region Required. Name of the region for this request. + * @param resourceId Name of the image resource to return. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String region, java.lang.String resourceId) { + super(Compute.this, "GET", REST_PATH, null, com.google.api.services.compute.model.ImageView.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])?"); + } + this.resourceId = com.google.api.client.util.Preconditions.checkNotNull(resourceId, "Required parameter resourceId must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_ID_PATTERN.matcher(resourceId).matches(), + "Parameter resourceId 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); + } + + /** Required. Project ID for this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Required. Project ID for this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Required. 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; + } + + /** Required. Name of the region for this request. */ + @com.google.api.client.util.Key + private java.lang.String region; + + /** Required. Name of the region for this request. + */ + public java.lang.String getRegion() { + return region; + } + + /** Required. Name of the region for this request. */ + public Get 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; + } + + /** Name of the image resource to return. */ + @com.google.api.client.util.Key + private java.lang.String resourceId; + + /** Name of the image resource to return. + */ + public java.lang.String getResourceId() { + return resourceId; + } + + /** Name of the image resource to return. */ + public Get setResourceId(java.lang.String resourceId) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_ID_PATTERN.matcher(resourceId).matches(), + "Parameter resourceId must conform to the pattern " + + "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}"); + } + this.resourceId = resourceId; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + + } + /** * An accessor for creating requests from the Images collection. * diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageView.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageView.java new file mode 100644 index 00000000000..02f8c290b50 --- /dev/null +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ImageView.java @@ -0,0 +1,63 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.compute.model; + +/** + * Represents a read-only view of a global Image resource. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ImageView extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Image image; + + /** + * @return value or {@code null} for none + */ + public Image getImage() { + return image; + } + + /** + * @param image image or {@code null} for none + */ + public ImageView setImage(Image image) { + this.image = image; + return this; + } + + @Override + public ImageView set(String fieldName, Object value) { + return (ImageView) super.set(fieldName, value); + } + + @Override + public ImageView clone() { + return (ImageView) super.clone(); + } + +} diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicy.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicy.java index 18d01ae5ca8..5aba0671c09 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicy.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/InstanceGroupManagerInstanceLifecyclePolicy.java @@ -32,9 +32,9 @@ public final class InstanceGroupManagerInstanceLifecyclePolicy extends com.googl /** * The action that a MIG performs on a failed VM. If the value of the onFailedHealthCheck field is * `DEFAULT_ACTION`, then the same action also applies to the VMs on which your application fails - * a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed VM by - * recreating it. For more information, seeAbout repairing VMs in a MIG. - DO_NOTHING: MIG does - * not repair a failed VM. + * a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed + * VM by recreating it. For more information, see About repairing VMs in a MIG. - + * DO_NOTHING: MIG does not repair a failed VM. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -75,9 +75,9 @@ public final class InstanceGroupManagerInstanceLifecyclePolicy extends com.googl /** * The action that a MIG performs on a failed VM. If the value of the onFailedHealthCheck field is * `DEFAULT_ACTION`, then the same action also applies to the VMs on which your application fails - * a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed VM by - * recreating it. For more information, seeAbout repairing VMs in a MIG. - DO_NOTHING: MIG does - * not repair a failed VM. + * a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed + * VM by recreating it. For more information, see About repairing VMs in a MIG. - + * DO_NOTHING: MIG does not repair a failed VM. * @return value or {@code null} for none */ public java.lang.String getDefaultActionOnFailure() { @@ -87,9 +87,9 @@ public java.lang.String getDefaultActionOnFailure() { /** * The action that a MIG performs on a failed VM. If the value of the onFailedHealthCheck field is * `DEFAULT_ACTION`, then the same action also applies to the VMs on which your application fails - * a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed VM by - * recreating it. For more information, seeAbout repairing VMs in a MIG. - DO_NOTHING: MIG does - * not repair a failed VM. + * a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed + * VM by recreating it. For more information, see About repairing VMs in a MIG. - + * DO_NOTHING: MIG does not repair a failed VM. * @param defaultActionOnFailure defaultActionOnFailure or {@code null} for none */ public InstanceGroupManagerInstanceLifecyclePolicy setDefaultActionOnFailure(java.lang.String defaultActionOnFailure) { diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlock.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlock.java index 3cc78bd8634..32a16dff87f 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlock.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationBlock.java @@ -30,26 +30,26 @@ public final class ReservationBlock extends com.google.api.client.json.GenericJson { /** - * Output only. [Output Only] The number of resources that are allocated in this reservation - * block. + * Output only. [Output Only] Health information for the reservation block. * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.lang.Integer count; + private ReservationBlockHealthInfo blockHealthInfo; /** - * Output only. [Output Only] Creation timestamp inRFC3339 text format. + * Output only. [Output Only] The number of resources that are allocated in this reservation + * block. * The value may be {@code null}. */ @com.google.api.client.util.Key - private java.lang.String creationTimestamp; + private java.lang.Integer count; /** - * Output only. [Output Only] Health information for the reservation block. + * Output only. [Output Only] Creation timestamp inRFC3339 text format. * The value may be {@code null}. */ @com.google.api.client.util.Key - private ReservationBlockHealthInfo healthInfo; + private java.lang.String creationTimestamp; /** * Output only. [Output Only] The unique identifier for the resource. This identifier is defined @@ -150,6 +150,23 @@ public final class ReservationBlock extends com.google.api.client.json.GenericJs @com.google.api.client.util.Key private java.lang.String zone; + /** + * Output only. [Output Only] Health information for the reservation block. + * @return value or {@code null} for none + */ + public ReservationBlockHealthInfo getBlockHealthInfo() { + return blockHealthInfo; + } + + /** + * Output only. [Output Only] Health information for the reservation block. + * @param blockHealthInfo blockHealthInfo or {@code null} for none + */ + public ReservationBlock setBlockHealthInfo(ReservationBlockHealthInfo blockHealthInfo) { + this.blockHealthInfo = blockHealthInfo; + return this; + } + /** * Output only. [Output Only] The number of resources that are allocated in this reservation * block. @@ -186,23 +203,6 @@ public ReservationBlock setCreationTimestamp(java.lang.String creationTimestamp) return this; } - /** - * Output only. [Output Only] Health information for the reservation block. - * @return value or {@code null} for none - */ - public ReservationBlockHealthInfo getHealthInfo() { - return healthInfo; - } - - /** - * Output only. [Output Only] Health information for the reservation block. - * @param healthInfo healthInfo or {@code null} for none - */ - public ReservationBlock setHealthInfo(ReservationBlockHealthInfo healthInfo) { - this.healthInfo = healthInfo; - return this; - } - /** * Output only. [Output Only] The unique identifier for the resource. This identifier is defined * by the server. diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java index 7e39ffbcc94..5b7bf1ae41b 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/ReservationSubBlock.java @@ -50,13 +50,6 @@ public final class ReservationSubBlock extends com.google.api.client.json.Generi @com.google.api.client.util.Key private java.lang.String creationTimestamp; - /** - * Output only. [Output Only] Health information for the reservation subBlock. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private ReservationSubBlockHealthInfo healthInfo; - /** * Output only. [Output Only] The unique identifier for the resource. This identifier is defined * by the server. @@ -133,6 +126,13 @@ public final class ReservationSubBlock extends com.google.api.client.json.Generi @com.google.api.client.util.Key private java.lang.String status; + /** + * Output only. [Output Only] Health information for the reservation subBlock. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ReservationSubBlockHealthInfo subBlockHealthInfo; + /** * Output only. [Output Only] Zone in which the reservation subBlock resides. * The value may be {@code null}. @@ -191,23 +191,6 @@ public ReservationSubBlock setCreationTimestamp(java.lang.String creationTimesta return this; } - /** - * Output only. [Output Only] Health information for the reservation subBlock. - * @return value or {@code null} for none - */ - public ReservationSubBlockHealthInfo getHealthInfo() { - return healthInfo; - } - - /** - * Output only. [Output Only] Health information for the reservation subBlock. - * @param healthInfo healthInfo or {@code null} for none - */ - public ReservationSubBlock setHealthInfo(ReservationSubBlockHealthInfo healthInfo) { - this.healthInfo = healthInfo; - return this; - } - /** * Output only. [Output Only] The unique identifier for the resource. This identifier is defined * by the server. @@ -390,6 +373,23 @@ public ReservationSubBlock setStatus(java.lang.String status) { return this; } + /** + * Output only. [Output Only] Health information for the reservation subBlock. + * @return value or {@code null} for none + */ + public ReservationSubBlockHealthInfo getSubBlockHealthInfo() { + return subBlockHealthInfo; + } + + /** + * Output only. [Output Only] Health information for the reservation subBlock. + * @param subBlockHealthInfo subBlockHealthInfo or {@code null} for none + */ + public ReservationSubBlock setSubBlockHealthInfo(ReservationSubBlockHealthInfo subBlockHealthInfo) { + this.subBlockHealthInfo = subBlockHealthInfo; + return this; + } + /** * Output only. [Output Only] Zone in which the reservation subBlock resides. * @return value or {@code null} for none diff --git a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterNat.java b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterNat.java index 49bb7ee52c3..67b18483489 100644 --- a/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterNat.java +++ b/clients/google-api-services-compute/beta/2.0.0/com/google/api/services/compute/model/RouterNat.java @@ -50,8 +50,8 @@ public final class RouterNat extends com.google.api.client.json.GenericJson { /** * Output only. Effective timeout (in seconds) for TCP connections that are in TIME_WAIT state. - * This value is equal to tcp_time_wait_timeout_sec if it is set, otherwise it is equal to 120s. - * The field is output only. + * This value is equal to tcp_time_wait_timeout_sec. If tcp_time_wait_timeout_sec isn't set, the + * effective timeout is 30s or 120s. The field is output only. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -280,8 +280,8 @@ public RouterNat setDrainNatIps(java.util.List