diff --git a/src/main/java/com/google/cloud/compute/v1/Autoscaler.java b/src/main/java/com/google/cloud/compute/v1/Autoscaler.java index 77926570b..4fe7181f8 100644 --- a/src/main/java/com/google/cloud/compute/v1/Autoscaler.java +++ b/src/main/java/com/google/cloud/compute/v1/Autoscaler.java @@ -214,12 +214,11 @@ public String getSelfLink() { } /** - * [Output Only] The status of the autoscaler configuration. Current set of possible values: - * PENDING: Autoscaler backend hasn't read new/updated configuration DELETING: Configuration is - * being deleted ACTIVE: Configuration is acknowledged to be effective. Some warnings might or - * might not be present in the status_details field. ERROR: Configuration has errors. Actionable - * for users. Details are present in the status_details field. New values might be added in the - * future. + * [Output Only] The status of the autoscaler configuration. Current set of possible values: - + * PENDING: Autoscaler backend hasn't read new/updated configuration. - DELETING: Configuration is + * being deleted. - ACTIVE: Configuration is acknowledged to be effective. Some warnings might be + * present in the statusDetails field. - ERROR: Configuration has errors. Actionable for users. + * Details are present in the statusDetails field. New values might be added in the future. */ public String getStatus() { return status; @@ -472,11 +471,11 @@ public Builder setSelfLink(String selfLink) { } /** - * [Output Only] The status of the autoscaler configuration. Current set of possible values: - * PENDING: Autoscaler backend hasn't read new/updated configuration DELETING: Configuration is - * being deleted ACTIVE: Configuration is acknowledged to be effective. Some warnings might or - * might not be present in the status_details field. ERROR: Configuration has errors. Actionable - * for users. Details are present in the status_details field. New values might be added in the + * [Output Only] The status of the autoscaler configuration. Current set of possible values: - + * PENDING: Autoscaler backend hasn't read new/updated configuration. - DELETING: Configuration + * is being deleted. - ACTIVE: Configuration is acknowledged to be effective. Some warnings + * might be present in the statusDetails field. - ERROR: Configuration has errors. Actionable + * for users. Details are present in the statusDetails field. New values might be added in the * future. */ public String getStatus() { @@ -484,11 +483,11 @@ public String getStatus() { } /** - * [Output Only] The status of the autoscaler configuration. Current set of possible values: - * PENDING: Autoscaler backend hasn't read new/updated configuration DELETING: Configuration is - * being deleted ACTIVE: Configuration is acknowledged to be effective. Some warnings might or - * might not be present in the status_details field. ERROR: Configuration has errors. Actionable - * for users. Details are present in the status_details field. New values might be added in the + * [Output Only] The status of the autoscaler configuration. Current set of possible values: - + * PENDING: Autoscaler backend hasn't read new/updated configuration. - DELETING: Configuration + * is being deleted. - ACTIVE: Configuration is acknowledged to be effective. Some warnings + * might be present in the statusDetails field. - ERROR: Configuration has errors. Actionable + * for users. Details are present in the statusDetails field. New values might be added in the * future. */ public Builder setStatus(String status) { diff --git a/src/main/java/com/google/cloud/compute/v1/AutoscalerStatusDetails.java b/src/main/java/com/google/cloud/compute/v1/AutoscalerStatusDetails.java index 295aa89ef..5745a7552 100644 --- a/src/main/java/com/google/cloud/compute/v1/AutoscalerStatusDetails.java +++ b/src/main/java/com/google/cloud/compute/v1/AutoscalerStatusDetails.java @@ -73,32 +73,33 @@ public String getMessage() { } /** - * The type of error, warning or notice returned. Current set of possible values: + * The type of error, warning, or notice returned. Current set of possible values: - * ALL_INSTANCES_UNHEALTHY (WARNING): All instances in the instance group are unhealthy (not in - * RUNNING state). BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): There is no backend service attached to - * the instance group. CAPPED_AT_MAX_NUM_REPLICAS (WARNING): Autoscaler recommends size bigger - * than maxNumReplicas. CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom metric samples - * are not exported often enough to be a credible base for autoscaling. CUSTOM_METRIC_INVALID - * (ERROR): The custom metric that was specified does not exist or does not have the necessary - * labels. MIN_EQUALS_MAX (WARNING): The minNumReplicas is equal to maxNumReplicas. This means the - * autoscaler cannot add or remove instances from the instance group. - * MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not receive any data from the - * custom metric configured for autoscaling. MISSING_LOAD_BALANCING_DATA_POINTS (WARNING): The - * autoscaler is configured to scale based on a load balancing signal but the instance group has - * not received any requests from the load balancer. MODE_OFF (WARNING): Autoscaling is turned - * off. The number of instances in the group won't change automatically. The autoscaling - * configuration is preserved. MODE_ONLY_UP (WARNING): Autoscaling is in the "Autoscale only up" - * mode. Instances in the group will be only added. MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The - * instance group cannot be autoscaled because it has more than one backend service attached to - * it. NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): Exceeded quota for necessary resources, such as CPU, - * number of instances and so on. REGION_RESOURCE_STOCKOUT (ERROR): Showed only for regional - * autoscalers: there is a resource stockout in the chosen region. SCALING_TARGET_DOES_NOT_EXIST - * (ERROR): The target to be scaled does not exist. - * UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): Autoscaling does not work with an - * HTTP/S load balancer that has been configured for maxRate. ZONE_RESOURCE_STOCKOUT (ERROR): For - * zonal autoscalers: there is a resource stockout in the chosen zone. For regional autoscalers: - * in at least one of the zones you're using there is a resource stockout. New values might be - * added in the future. Some of the values might not be available in all API versions. + * RUNNING state). - BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): There is no backend service attached + * to the instance group. - CAPPED_AT_MAX_NUM_REPLICAS (WARNING): Autoscaler recommends a size + * greater than maxNumReplicas. - CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom + * metric samples are not exported often enough to be a credible base for autoscaling. - + * CUSTOM_METRIC_INVALID (ERROR): The custom metric that was specified does not exist or does not + * have the necessary labels. - MIN_EQUALS_MAX (WARNING): The minNumReplicas is equal to + * maxNumReplicas. This means the autoscaler cannot add or remove instances from the instance + * group. - MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not receive any data + * from the custom metric configured for autoscaling. - MISSING_LOAD_BALANCING_DATA_POINTS + * (WARNING): The autoscaler is configured to scale based on a load balancing signal but the + * instance group has not received any requests from the load balancer. - MODE_OFF (WARNING): + * Autoscaling is turned off. The number of instances in the group won't change automatically. The + * autoscaling configuration is preserved. - MODE_ONLY_UP (WARNING): Autoscaling is in the + * "Autoscale only up" mode. The autoscaler can add instances but not remove any. - + * MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The instance group cannot be autoscaled because it has + * more than one backend service attached to it. - NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): There is + * insufficient quota for the necessary resources, such as CPU or number of instances. - + * REGION_RESOURCE_STOCKOUT (ERROR): Shown only for regional autoscalers: there is a resource + * stockout in the chosen region. - SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be scaled + * does not exist. - UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): Autoscaling does + * not work with an HTTP/S load balancer that has been configured for maxRate. - + * ZONE_RESOURCE_STOCKOUT (ERROR): For zonal autoscalers: there is a resource stockout in the + * chosen zone. For regional autoscalers: in at least one of the zones you're using there is a + * resource stockout. New values might be added in the future. Some of the values might not be + * available in all API versions. */ public String getType() { return type; @@ -160,30 +161,30 @@ public Builder setMessage(String message) { } /** - * The type of error, warning or notice returned. Current set of possible values: + * The type of error, warning, or notice returned. Current set of possible values: - * ALL_INSTANCES_UNHEALTHY (WARNING): All instances in the instance group are unhealthy (not in - * RUNNING state). BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): There is no backend service attached - * to the instance group. CAPPED_AT_MAX_NUM_REPLICAS (WARNING): Autoscaler recommends size - * bigger than maxNumReplicas. CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom metric - * samples are not exported often enough to be a credible base for autoscaling. + * RUNNING state). - BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): There is no backend service + * attached to the instance group. - CAPPED_AT_MAX_NUM_REPLICAS (WARNING): Autoscaler recommends + * a size greater than maxNumReplicas. - CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The + * custom metric samples are not exported often enough to be a credible base for autoscaling. - * CUSTOM_METRIC_INVALID (ERROR): The custom metric that was specified does not exist or does - * not have the necessary labels. MIN_EQUALS_MAX (WARNING): The minNumReplicas is equal to + * not have the necessary labels. - MIN_EQUALS_MAX (WARNING): The minNumReplicas is equal to * maxNumReplicas. This means the autoscaler cannot add or remove instances from the instance - * group. MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not receive any data - * from the custom metric configured for autoscaling. MISSING_LOAD_BALANCING_DATA_POINTS + * group. - MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not receive any data + * from the custom metric configured for autoscaling. - MISSING_LOAD_BALANCING_DATA_POINTS * (WARNING): The autoscaler is configured to scale based on a load balancing signal but the - * instance group has not received any requests from the load balancer. MODE_OFF (WARNING): + * instance group has not received any requests from the load balancer. - MODE_OFF (WARNING): * Autoscaling is turned off. The number of instances in the group won't change automatically. - * The autoscaling configuration is preserved. MODE_ONLY_UP (WARNING): Autoscaling is in the - * "Autoscale only up" mode. Instances in the group will be only added. + * The autoscaling configuration is preserved. - MODE_ONLY_UP (WARNING): Autoscaling is in the + * "Autoscale only up" mode. The autoscaler can add instances but not remove any. - * MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The instance group cannot be autoscaled because it has - * more than one backend service attached to it. NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): Exceeded - * quota for necessary resources, such as CPU, number of instances and so on. - * REGION_RESOURCE_STOCKOUT (ERROR): Showed only for regional autoscalers: there is a resource - * stockout in the chosen region. SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be scaled - * does not exist. UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): Autoscaling does - * not work with an HTTP/S load balancer that has been configured for maxRate. - * ZONE_RESOURCE_STOCKOUT (ERROR): For zonal autoscalers: there is a resource stockout in the + * more than one backend service attached to it. - NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): There is + * insufficient quota for the necessary resources, such as CPU or number of instances. - + * REGION_RESOURCE_STOCKOUT (ERROR): Shown only for regional autoscalers: there is a resource + * stockout in the chosen region. - SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be + * scaled does not exist. - UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): + * Autoscaling does not work with an HTTP/S load balancer that has been configured for maxRate. + * - ZONE_RESOURCE_STOCKOUT (ERROR): For zonal autoscalers: there is a resource stockout in the * chosen zone. For regional autoscalers: in at least one of the zones you're using there is a * resource stockout. New values might be added in the future. Some of the values might not be * available in all API versions. @@ -193,30 +194,30 @@ public String getType() { } /** - * The type of error, warning or notice returned. Current set of possible values: + * The type of error, warning, or notice returned. Current set of possible values: - * ALL_INSTANCES_UNHEALTHY (WARNING): All instances in the instance group are unhealthy (not in - * RUNNING state). BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): There is no backend service attached - * to the instance group. CAPPED_AT_MAX_NUM_REPLICAS (WARNING): Autoscaler recommends size - * bigger than maxNumReplicas. CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom metric - * samples are not exported often enough to be a credible base for autoscaling. + * RUNNING state). - BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): There is no backend service + * attached to the instance group. - CAPPED_AT_MAX_NUM_REPLICAS (WARNING): Autoscaler recommends + * a size greater than maxNumReplicas. - CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The + * custom metric samples are not exported often enough to be a credible base for autoscaling. - * CUSTOM_METRIC_INVALID (ERROR): The custom metric that was specified does not exist or does - * not have the necessary labels. MIN_EQUALS_MAX (WARNING): The minNumReplicas is equal to + * not have the necessary labels. - MIN_EQUALS_MAX (WARNING): The minNumReplicas is equal to * maxNumReplicas. This means the autoscaler cannot add or remove instances from the instance - * group. MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not receive any data - * from the custom metric configured for autoscaling. MISSING_LOAD_BALANCING_DATA_POINTS + * group. - MISSING_CUSTOM_METRIC_DATA_POINTS (WARNING): The autoscaler did not receive any data + * from the custom metric configured for autoscaling. - MISSING_LOAD_BALANCING_DATA_POINTS * (WARNING): The autoscaler is configured to scale based on a load balancing signal but the - * instance group has not received any requests from the load balancer. MODE_OFF (WARNING): + * instance group has not received any requests from the load balancer. - MODE_OFF (WARNING): * Autoscaling is turned off. The number of instances in the group won't change automatically. - * The autoscaling configuration is preserved. MODE_ONLY_UP (WARNING): Autoscaling is in the - * "Autoscale only up" mode. Instances in the group will be only added. + * The autoscaling configuration is preserved. - MODE_ONLY_UP (WARNING): Autoscaling is in the + * "Autoscale only up" mode. The autoscaler can add instances but not remove any. - * MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The instance group cannot be autoscaled because it has - * more than one backend service attached to it. NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): Exceeded - * quota for necessary resources, such as CPU, number of instances and so on. - * REGION_RESOURCE_STOCKOUT (ERROR): Showed only for regional autoscalers: there is a resource - * stockout in the chosen region. SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be scaled - * does not exist. UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): Autoscaling does - * not work with an HTTP/S load balancer that has been configured for maxRate. - * ZONE_RESOURCE_STOCKOUT (ERROR): For zonal autoscalers: there is a resource stockout in the + * more than one backend service attached to it. - NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): There is + * insufficient quota for the necessary resources, such as CPU or number of instances. - + * REGION_RESOURCE_STOCKOUT (ERROR): Shown only for regional autoscalers: there is a resource + * stockout in the chosen region. - SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be + * scaled does not exist. - UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): + * Autoscaling does not work with an HTTP/S load balancer that has been configured for maxRate. + * - ZONE_RESOURCE_STOCKOUT (ERROR): For zonal autoscalers: there is a resource stockout in the * chosen zone. For regional autoscalers: in at least one of the zones you're using there is a * resource stockout. New values might be added in the future. Some of the values might not be * available in all API versions. diff --git a/src/main/java/com/google/cloud/compute/v1/Image.java b/src/main/java/com/google/cloud/compute/v1/Image.java index dee404476..0de2d9997 100644 --- a/src/main/java/com/google/cloud/compute/v1/Image.java +++ b/src/main/java/com/google/cloud/compute/v1/Image.java @@ -61,6 +61,7 @@ public final class Image implements ApiMessage { private final String sourceSnapshotId; private final String sourceType; private final String status; + private final List storageLocations; private Image() { this.archiveSizeBytes = null; @@ -91,6 +92,7 @@ private Image() { this.sourceSnapshotId = null; this.sourceType = null; this.status = null; + this.storageLocations = null; } private Image( @@ -121,7 +123,8 @@ private Image( CustomerEncryptionKey sourceSnapshotEncryptionKey, String sourceSnapshotId, String sourceType, - String status) { + String status, + List storageLocations) { this.archiveSizeBytes = archiveSizeBytes; this.creationTimestamp = creationTimestamp; this.deprecated = deprecated; @@ -150,6 +153,7 @@ private Image( this.sourceSnapshotId = sourceSnapshotId; this.sourceType = sourceType; this.status = status; + this.storageLocations = storageLocations; } @Override @@ -238,6 +242,9 @@ public Object getFieldValue(String fieldName) { if ("status".equals(fieldName)) { return status; } + if ("storageLocations".equals(fieldName)) { + return storageLocations; + } return null; } @@ -474,6 +481,11 @@ public String getStatus() { return status; } + /** Cloud Storage bucket storage location of the image (regional or multi-regional). */ + public List getStorageLocationsList() { + return storageLocations; + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } @@ -525,6 +537,7 @@ public static class Builder { private String sourceSnapshotId; private String sourceType; private String status; + private List storageLocations; Builder() {} @@ -614,6 +627,9 @@ public Builder mergeFrom(Image other) { if (other.getStatus() != null) { this.status = other.status; } + if (other.getStorageLocationsList() != null) { + this.storageLocations = other.storageLocations; + } return this; } @@ -646,6 +662,7 @@ public Builder mergeFrom(Image other) { this.sourceSnapshotId = source.sourceSnapshotId; this.sourceType = source.sourceType; this.status = source.status; + this.storageLocations = source.storageLocations; } /** Size of the image tar.gz archive stored in Google Cloud Storage (in bytes). */ @@ -1148,6 +1165,29 @@ public Builder setStatus(String status) { return this; } + /** Cloud Storage bucket storage location of the image (regional or multi-regional). */ + public List getStorageLocationsList() { + return storageLocations; + } + + /** Cloud Storage bucket storage location of the image (regional or multi-regional). */ + public Builder addAllStorageLocations(List storageLocations) { + if (this.storageLocations == null) { + this.storageLocations = new LinkedList<>(); + } + this.storageLocations.addAll(storageLocations); + return this; + } + + /** Cloud Storage bucket storage location of the image (regional or multi-regional). */ + public Builder addStorageLocations(String storageLocations) { + if (this.storageLocations == null) { + this.storageLocations = new LinkedList<>(); + } + this.storageLocations.add(storageLocations); + return this; + } + public Image build() { return new Image( @@ -1178,7 +1218,8 @@ public Image build() { sourceSnapshotEncryptionKey, sourceSnapshotId, sourceType, - status); + status, + storageLocations); } public Builder clone() { @@ -1211,6 +1252,7 @@ public Builder clone() { newBuilder.setSourceSnapshotId(this.sourceSnapshotId); newBuilder.setSourceType(this.sourceType); newBuilder.setStatus(this.status); + newBuilder.addAllStorageLocations(this.storageLocations); return newBuilder; } } @@ -1301,6 +1343,9 @@ public String toString() { + ", " + "status=" + status + + ", " + + "storageLocations=" + + storageLocations + "}"; } @@ -1338,7 +1383,8 @@ public boolean equals(Object o) { && Objects.equals(this.sourceSnapshotEncryptionKey, that.getSourceSnapshotEncryptionKey()) && Objects.equals(this.sourceSnapshotId, that.getSourceSnapshotId()) && Objects.equals(this.sourceType, that.getSourceType()) - && Objects.equals(this.status, that.getStatus()); + && Objects.equals(this.status, that.getStatus()) + && Objects.equals(this.storageLocations, that.getStorageLocationsList()); } return false; } @@ -1373,6 +1419,7 @@ public int hashCode() { sourceSnapshotEncryptionKey, sourceSnapshotId, sourceType, - status); + status, + storageLocations); } } diff --git a/src/main/java/com/google/cloud/compute/v1/OutlierDetection.java b/src/main/java/com/google/cloud/compute/v1/OutlierDetection.java index 9cd6a4ce4..283956fbb 100644 --- a/src/main/java/com/google/cloud/compute/v1/OutlierDetection.java +++ b/src/main/java/com/google/cloud/compute/v1/OutlierDetection.java @@ -189,8 +189,8 @@ public Integer getEnforcingSuccessRate() { } /** - * Time interval between ejection sweep analysis. This can result in both new ejections as well as - * hosts being returned to service. Defaults to 1 seconds. + * Time interval between ejection analysis sweeps. This can result in both new ejections as well + * as hosts being returned to service. Defaults to 1 second. */ public Duration getInterval() { return interval; @@ -437,16 +437,16 @@ public Builder setEnforcingSuccessRate(Integer enforcingSuccessRate) { } /** - * Time interval between ejection sweep analysis. This can result in both new ejections as well - * as hosts being returned to service. Defaults to 1 seconds. + * Time interval between ejection analysis sweeps. This can result in both new ejections as well + * as hosts being returned to service. Defaults to 1 second. */ public Duration getInterval() { return interval; } /** - * Time interval between ejection sweep analysis. This can result in both new ejections as well - * as hosts being returned to service. Defaults to 1 seconds. + * Time interval between ejection analysis sweeps. This can result in both new ejections as well + * as hosts being returned to service. Defaults to 1 second. */ public Builder setInterval(Duration interval) { this.interval = interval; diff --git a/src/main/java/com/google/cloud/compute/v1/Snapshot.java b/src/main/java/com/google/cloud/compute/v1/Snapshot.java index f29cfa245..8492b4051 100644 --- a/src/main/java/com/google/cloud/compute/v1/Snapshot.java +++ b/src/main/java/com/google/cloud/compute/v1/Snapshot.java @@ -205,8 +205,8 @@ public List getFieldMask() { } /** - * [Output Only] Set to true if snapshots are automatically by applying resource policy on the - * target disk. + * [Output Only] Set to true if snapshots are automatically created by applying resource policy on + * the target disk. */ public Boolean getAutoCreated() { return autoCreated; @@ -498,16 +498,16 @@ public Builder mergeFrom(Snapshot other) { } /** - * [Output Only] Set to true if snapshots are automatically by applying resource policy on the - * target disk. + * [Output Only] Set to true if snapshots are automatically created by applying resource policy + * on the target disk. */ public Boolean getAutoCreated() { return autoCreated; } /** - * [Output Only] Set to true if snapshots are automatically by applying resource policy on the - * target disk. + * [Output Only] Set to true if snapshots are automatically created by applying resource policy + * on the target disk. */ public Builder setAutoCreated(Boolean autoCreated) { this.autoCreated = autoCreated; diff --git a/synth.metadata b/synth.metadata index 74f1e0c86..1c62e1c7a 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,11 +1,11 @@ { - "updateTime": "2019-11-19T19:43:35.696290Z", + "updateTime": "2019-12-10T08:41:50.615594Z", "sources": [ { "git": { "name": "discovery-artifact-manager", "remote": "https://github.com/googleapis/discovery-artifact-manager.git", - "sha": "581a30134d154a33dc79cf526511ed1f214fb357" + "sha": "dba1f24e70484400d9f22a4a8248356523d53f3d" } }, {