Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

feat: add Image#storageLocationsList() #28

Merged
merged 1 commit into from
Dec 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 15 additions & 16 deletions src/main/java/com/google/cloud/compute/v1/Autoscaler.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -472,23 +471,23 @@ 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() {
return status;
}

/**
* [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) {
Expand Down
123 changes: 62 additions & 61 deletions src/main/java/com/google/cloud/compute/v1/AutoscalerStatusDetails.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand Down
Loading