target.apidocs.com.google.api.services.compute.model.InstanceGroupManager.html Maven / Gradle / Ivy
InstanceGroupManager (Compute Engine API v1-rev20250107-2.0.0)
com.google.api.services.compute.model
Class InstanceGroupManager
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.compute.model.InstanceGroupManager
-
public final class InstanceGroupManager
extends com.google.api.client.json.GenericJson
Represents a Managed Instance Group resource. An instance group is a collection of VM instances
that you can manage as a single entity. For more information, read Instance groups. For zonal
Managed Instance Group, use the instanceGroupManagers resource. For regional Managed Instance
Group, use the regionInstanceGroupManagers 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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
InstanceGroupManager()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
InstanceGroupManager
clone()
byte[]
decodeFingerprint()
Fingerprint of this resource.
InstanceGroupManager
encodeFingerprint(byte[] fingerprint)
Fingerprint of this resource.
InstanceGroupManagerAllInstancesConfig
getAllInstancesConfig()
Specifies configuration that overrides the instance template configuration for the group.
List<InstanceGroupManagerAutoHealingPolicy>
getAutoHealingPolicies()
The autohealing policy for this managed instance group.
String
getBaseInstanceName()
The base instance name is a prefix that you want to attach to the names of all VMs in a MIG.
String
getCreationTimestamp()
[Output Only] The creation timestamp for this managed instance group in RFC3339 text format.
InstanceGroupManagerActionsSummary
getCurrentActions()
[Output Only] The list of instance actions and the number of instances in this managed instance
group that are scheduled for each of those actions.
String
getDescription()
An optional description of this resource.
DistributionPolicy
getDistributionPolicy()
Policy specifying the intended distribution of managed instances across zones in a regional
managed instance group.
String
getFingerprint()
Fingerprint of this resource.
BigInteger
getId()
[Output Only] A unique identifier for this resource type.
InstanceGroupManagerInstanceFlexibilityPolicy
getInstanceFlexibilityPolicy()
Instance flexibility allowing MIG to create VMs from multiple types of machines.
String
getInstanceGroup()
[Output Only] The URL of the Instance Group resource.
InstanceGroupManagerInstanceLifecyclePolicy
getInstanceLifecyclePolicy()
The repair policy for this managed instance group.
String
getInstanceTemplate()
The URL of the instance template that is specified for this managed instance group.
String
getKind()
[Output Only] The resource type, which is always compute#instanceGroupManager for managed
instance groups.
String
getListManagedInstancesResults()
Pagination behavior of the listManagedInstances API method for this managed instance group.
String
getName()
The name of the managed instance group.
List<NamedPort>
getNamedPorts()
[Output Only] Named ports configured on the Instance Groups complementary to this Instance
Group Manager.
String
getRegion()
[Output Only] The URL of the region where the managed instance group resides (for regional
resources).
Boolean
getSatisfiesPzi()
[Output Only] Reserved for future use.
Boolean
getSatisfiesPzs()
[Output Only] Reserved for future use.
String
getSelfLink()
[Output Only] The URL for this managed instance group.
InstanceGroupManagerStandbyPolicy
getStandbyPolicy()
Standby policy for stopped and suspended instances.
StatefulPolicy
getStatefulPolicy()
Stateful configuration for this Instanced Group Manager
InstanceGroupManagerStatus
getStatus()
[Output Only] The status of this managed instance group.
List<String>
getTargetPools()
The URLs for all TargetPool resources to which instances in the instanceGroup field are added.
Integer
getTargetSize()
The target number of running instances for this managed instance group.
Integer
getTargetStoppedSize()
The target number of stopped instances for this managed instance group.
Integer
getTargetSuspendedSize()
The target number of suspended instances for this managed instance group.
InstanceGroupManagerUpdatePolicy
getUpdatePolicy()
The update policy for this managed instance group.
List<InstanceGroupManagerVersion>
getVersions()
Specifies the instance templates used by this managed instance group to create instances.
String
getZone()
[Output Only] The URL of a zone where the managed instance group is located (for zonal
resources).
InstanceGroupManager
set(String fieldName,
Object value)
InstanceGroupManager
setAllInstancesConfig(InstanceGroupManagerAllInstancesConfig allInstancesConfig)
Specifies configuration that overrides the instance template configuration for the group.
InstanceGroupManager
setAutoHealingPolicies(List<InstanceGroupManagerAutoHealingPolicy> autoHealingPolicies)
The autohealing policy for this managed instance group.
InstanceGroupManager
setBaseInstanceName(String baseInstanceName)
The base instance name is a prefix that you want to attach to the names of all VMs in a MIG.
InstanceGroupManager
setCreationTimestamp(String creationTimestamp)
[Output Only] The creation timestamp for this managed instance group in RFC3339 text format.
InstanceGroupManager
setCurrentActions(InstanceGroupManagerActionsSummary currentActions)
[Output Only] The list of instance actions and the number of instances in this managed instance
group that are scheduled for each of those actions.
InstanceGroupManager
setDescription(String description)
An optional description of this resource.
InstanceGroupManager
setDistributionPolicy(DistributionPolicy distributionPolicy)
Policy specifying the intended distribution of managed instances across zones in a regional
managed instance group.
InstanceGroupManager
setFingerprint(String fingerprint)
Fingerprint of this resource.
InstanceGroupManager
setId(BigInteger id)
[Output Only] A unique identifier for this resource type.
InstanceGroupManager
setInstanceFlexibilityPolicy(InstanceGroupManagerInstanceFlexibilityPolicy instanceFlexibilityPolicy)
Instance flexibility allowing MIG to create VMs from multiple types of machines.
InstanceGroupManager
setInstanceGroup(String instanceGroup)
[Output Only] The URL of the Instance Group resource.
InstanceGroupManager
setInstanceLifecyclePolicy(InstanceGroupManagerInstanceLifecyclePolicy instanceLifecyclePolicy)
The repair policy for this managed instance group.
InstanceGroupManager
setInstanceTemplate(String instanceTemplate)
The URL of the instance template that is specified for this managed instance group.
InstanceGroupManager
setKind(String kind)
[Output Only] The resource type, which is always compute#instanceGroupManager for managed
instance groups.
InstanceGroupManager
setListManagedInstancesResults(String listManagedInstancesResults)
Pagination behavior of the listManagedInstances API method for this managed instance group.
InstanceGroupManager
setName(String name)
The name of the managed instance group.
InstanceGroupManager
setNamedPorts(List<NamedPort> namedPorts)
[Output Only] Named ports configured on the Instance Groups complementary to this Instance
Group Manager.
InstanceGroupManager
setRegion(String region)
[Output Only] The URL of the region where the managed instance group resides (for regional
resources).
InstanceGroupManager
setSatisfiesPzi(Boolean satisfiesPzi)
[Output Only] Reserved for future use.
InstanceGroupManager
setSatisfiesPzs(Boolean satisfiesPzs)
[Output Only] Reserved for future use.
InstanceGroupManager
setSelfLink(String selfLink)
[Output Only] The URL for this managed instance group.
InstanceGroupManager
setStandbyPolicy(InstanceGroupManagerStandbyPolicy standbyPolicy)
Standby policy for stopped and suspended instances.
InstanceGroupManager
setStatefulPolicy(StatefulPolicy statefulPolicy)
Stateful configuration for this Instanced Group Manager
InstanceGroupManager
setStatus(InstanceGroupManagerStatus status)
[Output Only] The status of this managed instance group.
InstanceGroupManager
setTargetPools(List<String> targetPools)
The URLs for all TargetPool resources to which instances in the instanceGroup field are added.
InstanceGroupManager
setTargetSize(Integer targetSize)
The target number of running instances for this managed instance group.
InstanceGroupManager
setTargetStoppedSize(Integer targetStoppedSize)
The target number of stopped instances for this managed instance group.
InstanceGroupManager
setTargetSuspendedSize(Integer targetSuspendedSize)
The target number of suspended instances for this managed instance group.
InstanceGroupManager
setUpdatePolicy(InstanceGroupManagerUpdatePolicy updatePolicy)
The update policy for this managed instance group.
InstanceGroupManager
setVersions(List<InstanceGroupManagerVersion> versions)
Specifies the instance templates used by this managed instance group to create instances.
InstanceGroupManager
setZone(String zone)
[Output Only] The URL of a zone where the managed instance group is located (for zonal
resources).
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getAllInstancesConfig
public InstanceGroupManagerAllInstancesConfig getAllInstancesConfig()
Specifies configuration that overrides the instance template configuration for the group.
- Returns:
- value or
null for none
-
setAllInstancesConfig
public InstanceGroupManager setAllInstancesConfig(InstanceGroupManagerAllInstancesConfig allInstancesConfig)
Specifies configuration that overrides the instance template configuration for the group.
- Parameters:
allInstancesConfig - allInstancesConfig or null for none
-
getAutoHealingPolicies
public List<InstanceGroupManagerAutoHealingPolicy> getAutoHealingPolicies()
The autohealing policy for this managed instance group. You can specify only one value.
- Returns:
- value or
null for none
-
setAutoHealingPolicies
public InstanceGroupManager setAutoHealingPolicies(List<InstanceGroupManagerAutoHealingPolicy> autoHealingPolicies)
The autohealing policy for this managed instance group. You can specify only one value.
- Parameters:
autoHealingPolicies - autoHealingPolicies or null for none
-
getBaseInstanceName
public String getBaseInstanceName()
The base instance name is a prefix that you want to attach to the names of all VMs in a MIG.
The maximum character length is 58 and the name must comply with RFC1035 format. When a VM is
created in the group, the MIG appends a hyphen and a random four-character string to the base
instance name. If you want the MIG to assign sequential numbers instead of a random string,
then end the base instance name with a hyphen followed by one or more hash symbols. The hash
symbols indicate the number of digits. For example, a base instance name of "vm-###" results in
"vm-001" as a VM name. @pattern
[a-z](([-a-z0-9]{0,57})|([-a-z0-9]{0,51}-#{1,10}(\\[[0-9]{1,10}\\])?))
- Returns:
- value or
null for none
-
setBaseInstanceName
public InstanceGroupManager setBaseInstanceName(String baseInstanceName)
The base instance name is a prefix that you want to attach to the names of all VMs in a MIG.
The maximum character length is 58 and the name must comply with RFC1035 format. When a VM is
created in the group, the MIG appends a hyphen and a random four-character string to the base
instance name. If you want the MIG to assign sequential numbers instead of a random string,
then end the base instance name with a hyphen followed by one or more hash symbols. The hash
symbols indicate the number of digits. For example, a base instance name of "vm-###" results in
"vm-001" as a VM name. @pattern
[a-z](([-a-z0-9]{0,57})|([-a-z0-9]{0,51}-#{1,10}(\\[[0-9]{1,10}\\])?))
- Parameters:
baseInstanceName - baseInstanceName or null for none
-
getCreationTimestamp
public String getCreationTimestamp()
[Output Only] The creation timestamp for this managed instance group in RFC3339 text format.
- Returns:
- value or
null for none
-
setCreationTimestamp
public InstanceGroupManager setCreationTimestamp(String creationTimestamp)
[Output Only] The creation timestamp for this managed instance group in RFC3339 text format.
- Parameters:
creationTimestamp - creationTimestamp or null for none
-
getCurrentActions
public InstanceGroupManagerActionsSummary getCurrentActions()
[Output Only] The list of instance actions and the number of instances in this managed instance
group that are scheduled for each of those actions.
- Returns:
- value or
null for none
-
setCurrentActions
public InstanceGroupManager setCurrentActions(InstanceGroupManagerActionsSummary currentActions)
[Output Only] The list of instance actions and the number of instances in this managed instance
group that are scheduled for each of those actions.
- Parameters:
currentActions - currentActions or null for none
-
getDescription
public String getDescription()
An optional description of this resource.
- Returns:
- value or
null for none
-
setDescription
public InstanceGroupManager setDescription(String description)
An optional description of this resource.
- Parameters:
description - description or null for none
-
getDistributionPolicy
public DistributionPolicy getDistributionPolicy()
Policy specifying the intended distribution of managed instances across zones in a regional
managed instance group.
- Returns:
- value or
null for none
-
setDistributionPolicy
public InstanceGroupManager setDistributionPolicy(DistributionPolicy distributionPolicy)
Policy specifying the intended distribution of managed instances across zones in a regional
managed instance group.
- Parameters:
distributionPolicy - distributionPolicy or null for none
-
getFingerprint
public String getFingerprint()
Fingerprint of this resource. This field may be used in optimistic locking. It will be ignored
when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to
update the InstanceGroupManager, otherwise the request will fail with error 412
conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an
InstanceGroupManager.
- Returns:
- value or
null for none
- See Also:
decodeFingerprint()
-
decodeFingerprint
public byte[] decodeFingerprint()
Fingerprint of this resource. This field may be used in optimistic locking. It will be ignored
when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to
update the InstanceGroupManager, otherwise the request will fail with error 412
conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an
InstanceGroupManager.
- Returns:
- Base64 decoded value or
null for none
- Since:
- 1.14
- See Also:
getFingerprint()
-
setFingerprint
public InstanceGroupManager setFingerprint(String fingerprint)
Fingerprint of this resource. This field may be used in optimistic locking. It will be ignored
when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to
update the InstanceGroupManager, otherwise the request will fail with error 412
conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an
InstanceGroupManager.
- Parameters:
fingerprint - fingerprint or null for none
- See Also:
#encodeFingerprint()
-
encodeFingerprint
public InstanceGroupManager encodeFingerprint(byte[] fingerprint)
Fingerprint of this resource. This field may be used in optimistic locking. It will be ignored
when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to
update the InstanceGroupManager, otherwise the request will fail with error 412
conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an
InstanceGroupManager.
- Since:
- 1.14
- See Also:
The value is encoded Base64 or {@code null} for none.
-
getId
public BigInteger getId()
[Output Only] A unique identifier for this resource type. The server generates this identifier.
- Returns:
- value or
null for none
-
setId
public InstanceGroupManager setId(BigInteger id)
[Output Only] A unique identifier for this resource type. The server generates this identifier.
- Parameters:
id - id or null for none
-
getInstanceFlexibilityPolicy
public InstanceGroupManagerInstanceFlexibilityPolicy getInstanceFlexibilityPolicy()
Instance flexibility allowing MIG to create VMs from multiple types of machines. Instance
flexibility configuration on MIG overrides instance template configuration.
- Returns:
- value or
null for none
-
setInstanceFlexibilityPolicy
public InstanceGroupManager setInstanceFlexibilityPolicy(InstanceGroupManagerInstanceFlexibilityPolicy instanceFlexibilityPolicy)
Instance flexibility allowing MIG to create VMs from multiple types of machines. Instance
flexibility configuration on MIG overrides instance template configuration.
- Parameters:
instanceFlexibilityPolicy - instanceFlexibilityPolicy or null for none
-
getInstanceGroup
public String getInstanceGroup()
[Output Only] The URL of the Instance Group resource.
- Returns:
- value or
null for none
-
setInstanceGroup
public InstanceGroupManager setInstanceGroup(String instanceGroup)
[Output Only] The URL of the Instance Group resource.
- Parameters:
instanceGroup - instanceGroup or null for none
-
getInstanceLifecyclePolicy
public InstanceGroupManagerInstanceLifecyclePolicy getInstanceLifecyclePolicy()
The repair policy for this managed instance group.
- Returns:
- value or
null for none
-
setInstanceLifecyclePolicy
public InstanceGroupManager setInstanceLifecyclePolicy(InstanceGroupManagerInstanceLifecyclePolicy instanceLifecyclePolicy)
The repair policy for this managed instance group.
- Parameters:
instanceLifecyclePolicy - instanceLifecyclePolicy or null for none
-
getInstanceTemplate
public String getInstanceTemplate()
The URL of the instance template that is specified for this managed instance group. The group
uses this template to create all new instances in the managed instance group. The templates for
existing instances in the group do not change unless you run recreateInstances, run
applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE.
- Returns:
- value or
null for none
-
setInstanceTemplate
public InstanceGroupManager setInstanceTemplate(String instanceTemplate)
The URL of the instance template that is specified for this managed instance group. The group
uses this template to create all new instances in the managed instance group. The templates for
existing instances in the group do not change unless you run recreateInstances, run
applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE.
- Parameters:
instanceTemplate - instanceTemplate or null for none
-
getKind
public String getKind()
[Output Only] The resource type, which is always compute#instanceGroupManager for managed
instance groups.
- Returns:
- value or
null for none
-
setKind
public InstanceGroupManager setKind(String kind)
[Output Only] The resource type, which is always compute#instanceGroupManager for managed
instance groups.
- Parameters:
kind - kind or null for none
-
getListManagedInstancesResults
public String getListManagedInstancesResults()
Pagination behavior of the listManagedInstances API method for this managed instance group.
- Returns:
- value or
null for none
-
setListManagedInstancesResults
public InstanceGroupManager setListManagedInstancesResults(String listManagedInstancesResults)
Pagination behavior of the listManagedInstances API method for this managed instance group.
- Parameters:
listManagedInstancesResults - listManagedInstancesResults or null for none
-
getName
public String getName()
The name of the managed instance group. The name must be 1-63 characters long, and comply with
RFC1035.
- Returns:
- value or
null for none
-
setName
public InstanceGroupManager setName(String name)
The name of the managed instance group. The name must be 1-63 characters long, and comply with
RFC1035.
- Parameters:
name - name or null for none
-
getNamedPorts
public List<NamedPort> getNamedPorts()
[Output Only] Named ports configured on the Instance Groups complementary to this Instance
Group Manager.
- Returns:
- value or
null for none
-
setNamedPorts
public InstanceGroupManager setNamedPorts(List<NamedPort> namedPorts)
[Output Only] Named ports configured on the Instance Groups complementary to this Instance
Group Manager.
- Parameters:
namedPorts - namedPorts or null for none
-
getRegion
public String getRegion()
[Output Only] The URL of the region where the managed instance group resides (for regional
resources).
- Returns:
- value or
null for none
-
setRegion
public InstanceGroupManager setRegion(String region)
[Output Only] The URL of the region where the managed instance group resides (for regional
resources).
- Parameters:
region - region or null for none
-
getSatisfiesPzi
public Boolean getSatisfiesPzi()
[Output Only] Reserved for future use.
- Returns:
- value or
null for none
-
setSatisfiesPzi
public InstanceGroupManager setSatisfiesPzi(Boolean satisfiesPzi)
[Output Only] Reserved for future use.
- Parameters:
satisfiesPzi - satisfiesPzi or null for none
-
getSatisfiesPzs
public Boolean getSatisfiesPzs()
[Output Only] Reserved for future use.
- Returns:
- value or
null for none
-
setSatisfiesPzs
public InstanceGroupManager setSatisfiesPzs(Boolean satisfiesPzs)
[Output Only] Reserved for future use.
- Parameters:
satisfiesPzs - satisfiesPzs or null for none
-
getSelfLink
public String getSelfLink()
[Output Only] The URL for this managed instance group. The server defines this URL.
- Returns:
- value or
null for none
-
setSelfLink
public InstanceGroupManager setSelfLink(String selfLink)
[Output Only] The URL for this managed instance group. The server defines this URL.
- Parameters:
selfLink - selfLink or null for none
-
getStandbyPolicy
public InstanceGroupManagerStandbyPolicy getStandbyPolicy()
Standby policy for stopped and suspended instances.
- Returns:
- value or
null for none
-
setStandbyPolicy
public InstanceGroupManager setStandbyPolicy(InstanceGroupManagerStandbyPolicy standbyPolicy)
Standby policy for stopped and suspended instances.
- Parameters:
standbyPolicy - standbyPolicy or null for none
-
getStatefulPolicy
public StatefulPolicy getStatefulPolicy()
Stateful configuration for this Instanced Group Manager
- Returns:
- value or
null for none
-
setStatefulPolicy
public InstanceGroupManager setStatefulPolicy(StatefulPolicy statefulPolicy)
Stateful configuration for this Instanced Group Manager
- Parameters:
statefulPolicy - statefulPolicy or null for none
-
getStatus
public InstanceGroupManagerStatus getStatus()
[Output Only] The status of this managed instance group.
- Returns:
- value or
null for none
-
setStatus
public InstanceGroupManager setStatus(InstanceGroupManagerStatus status)
[Output Only] The status of this managed instance group.
- Parameters:
status - status or null for none
-
getTargetPools
public List<String> getTargetPools()
The URLs for all TargetPool resources to which instances in the instanceGroup field are added.
The target pools automatically apply to all of the instances in the managed instance group.
- Returns:
- value or
null for none
-
setTargetPools
public InstanceGroupManager setTargetPools(List<String> targetPools)
The URLs for all TargetPool resources to which instances in the instanceGroup field are added.
The target pools automatically apply to all of the instances in the managed instance group.
- Parameters:
targetPools - targetPools or null for none
-
getTargetSize
public Integer getTargetSize()
The target number of running instances for this managed instance group. You can reduce this
number by using the instanceGroupManager deleteInstances or abandonInstances methods. Resizing
the group also changes this number.
- Returns:
- value or
null for none
-
setTargetSize
public InstanceGroupManager setTargetSize(Integer targetSize)
The target number of running instances for this managed instance group. You can reduce this
number by using the instanceGroupManager deleteInstances or abandonInstances methods. Resizing
the group also changes this number.
- Parameters:
targetSize - targetSize or null for none
-
getTargetStoppedSize
public Integer getTargetStoppedSize()
The target number of stopped instances for this managed instance group. This number changes
when you: - Stop instance using the stopInstances method or start instances using the
startInstances method. - Manually change the targetStoppedSize using the update method.
- Returns:
- value or
null for none
-
setTargetStoppedSize
public InstanceGroupManager setTargetStoppedSize(Integer targetStoppedSize)
The target number of stopped instances for this managed instance group. This number changes
when you: - Stop instance using the stopInstances method or start instances using the
startInstances method. - Manually change the targetStoppedSize using the update method.
- Parameters:
targetStoppedSize - targetStoppedSize or null for none
-
getTargetSuspendedSize
public Integer getTargetSuspendedSize()
The target number of suspended instances for this managed instance group. This number changes
when you: - Suspend instance using the suspendInstances method or resume instances using the
resumeInstances method. - Manually change the targetSuspendedSize using the update method.
- Returns:
- value or
null for none
-
setTargetSuspendedSize
public InstanceGroupManager setTargetSuspendedSize(Integer targetSuspendedSize)
The target number of suspended instances for this managed instance group. This number changes
when you: - Suspend instance using the suspendInstances method or resume instances using the
resumeInstances method. - Manually change the targetSuspendedSize using the update method.
- Parameters:
targetSuspendedSize - targetSuspendedSize or null for none
-
getUpdatePolicy
public InstanceGroupManagerUpdatePolicy getUpdatePolicy()
The update policy for this managed instance group.
- Returns:
- value or
null for none
-
setUpdatePolicy
public InstanceGroupManager setUpdatePolicy(InstanceGroupManagerUpdatePolicy updatePolicy)
The update policy for this managed instance group.
- Parameters:
updatePolicy - updatePolicy or null for none
-
getVersions
public List<InstanceGroupManagerVersion> getVersions()
Specifies the instance templates used by this managed instance group to create instances. Each
version is defined by an instanceTemplate and a name. Every version can appear at most once per
instance group. This field overrides the top-level instanceTemplate field. Read more about the
relationships between these fields. Exactly one version must leave the targetSize field unset.
That version will be applied to all remaining instances. For more information, read about
canary updates.
- Returns:
- value or
null for none
-
setVersions
public InstanceGroupManager setVersions(List<InstanceGroupManagerVersion> versions)
Specifies the instance templates used by this managed instance group to create instances. Each
version is defined by an instanceTemplate and a name. Every version can appear at most once per
instance group. This field overrides the top-level instanceTemplate field. Read more about the
relationships between these fields. Exactly one version must leave the targetSize field unset.
That version will be applied to all remaining instances. For more information, read about
canary updates.
- Parameters:
versions - versions or null for none
-
getZone
public String getZone()
[Output Only] The URL of a zone where the managed instance group is located (for zonal
resources).
- Returns:
- value or
null for none
-
setZone
public InstanceGroupManager setZone(String zone)
[Output Only] The URL of a zone where the managed instance group is located (for zonal
resources).
- Parameters:
zone - zone or null for none
-
set
public InstanceGroupManager set(String fieldName,
Object value)
- Overrides:
set in class com.google.api.client.json.GenericJson
-
clone
public InstanceGroupManager clone()
- Overrides:
clone in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy