@Generated(value="by GAPIC") @BetaApi public final class InstanceGroupManagerUpdatePolicy extends Object implements com.google.api.gax.httpjson.ApiMessage
Modifier and Type | Class and Description |
---|---|
static class |
InstanceGroupManagerUpdatePolicy.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
com.google.api.gax.httpjson.ApiMessage |
getApiMessageRequestBody() |
static InstanceGroupManagerUpdatePolicy |
getDefaultInstance() |
List<String> |
getFieldMask() |
Object |
getFieldValue(String fieldName) |
FixedOrPercent |
getMaxSurge()
The maximum number of instances that can be created above the specified targetSize during the
update process.
|
FixedOrPercent |
getMaxUnavailable()
The maximum number of instances that can be unavailable during the update process.
|
String |
getMinimalAction()
Minimal action to be taken on an instance.
|
String |
getType()
The type of update process.
|
int |
hashCode() |
static InstanceGroupManagerUpdatePolicy.Builder |
newBuilder() |
static InstanceGroupManagerUpdatePolicy.Builder |
newBuilder(InstanceGroupManagerUpdatePolicy prototype) |
InstanceGroupManagerUpdatePolicy.Builder |
toBuilder() |
String |
toString() |
public Object getFieldValue(String fieldName)
getFieldValue
in interface com.google.api.gax.httpjson.ApiMessage
@Nullable public com.google.api.gax.httpjson.ApiMessage getApiMessageRequestBody()
getApiMessageRequestBody
in interface com.google.api.gax.httpjson.ApiMessage
@Nullable public List<String> getFieldMask()
getFieldMask
in interface com.google.api.gax.httpjson.ApiMessage
public FixedOrPercent getMaxSurge()
At least one of either maxSurge or maxUnavailable must be greater than 0. Learn more about maxSurge.
public FixedOrPercent getMaxUnavailable()
- The instance's status is RUNNING. - If there is a health check on the instance group, the instance's liveness health check result must be HEALTHY at least once. If there is no health check on the group, then the instance only needs to have a status of RUNNING to be considered available. By default, a fixed value of 1 is used. This value can be either a fixed number or a percentage if the instance group has 10 or more instances. If you set a percentage, the number of instances will be rounded up if necessary.
At least one of either maxSurge or maxUnavailable must be greater than 0. Learn more about maxUnavailable.
public String getMinimalAction()
public String getType()
public static InstanceGroupManagerUpdatePolicy.Builder newBuilder()
public static InstanceGroupManagerUpdatePolicy.Builder newBuilder(InstanceGroupManagerUpdatePolicy prototype)
public InstanceGroupManagerUpdatePolicy.Builder toBuilder()
public static InstanceGroupManagerUpdatePolicy getDefaultInstance()
Copyright © 2019 Google LLC. All rights reserved.