Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::InstanceGroupManager.
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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#auto_healing_policies
def auto_healing_policies() -> ::Array<::Google::Cloud::Compute::V1::InstanceGroupManagerAutoHealingPolicy>
- (::Array<::Google::Cloud::Compute::V1::InstanceGroupManagerAutoHealingPolicy>) — The autohealing policy for this managed instance group. You can specify only one value.
#auto_healing_policies=
def auto_healing_policies=(value) -> ::Array<::Google::Cloud::Compute::V1::InstanceGroupManagerAutoHealingPolicy>
- value (::Array<::Google::Cloud::Compute::V1::InstanceGroupManagerAutoHealingPolicy>) — The autohealing policy for this managed instance group. You can specify only one value.
- (::Array<::Google::Cloud::Compute::V1::InstanceGroupManagerAutoHealingPolicy>) — The autohealing policy for this managed instance group. You can specify only one value.
#base_instance_name
def base_instance_name() -> ::String
- (::String) — The base instance name to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with RFC1035.
#base_instance_name=
def base_instance_name=(value) -> ::String
- value (::String) — The base instance name to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with RFC1035.
- (::String) — The base instance name to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with RFC1035.
#creation_timestamp
def creation_timestamp() -> ::String
- (::String) — [Output Only] The creation timestamp for this managed instance group in RFC3339 text format.
#creation_timestamp=
def creation_timestamp=(value) -> ::String
- value (::String) — [Output Only] The creation timestamp for this managed instance group in RFC3339 text format.
- (::String) — [Output Only] The creation timestamp for this managed instance group in RFC3339 text format.
#current_actions
def current_actions() -> ::Google::Cloud::Compute::V1::InstanceGroupManagerActionsSummary
- (::Google::Cloud::Compute::V1::InstanceGroupManagerActionsSummary) — [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.
#current_actions=
def current_actions=(value) -> ::Google::Cloud::Compute::V1::InstanceGroupManagerActionsSummary
- value (::Google::Cloud::Compute::V1::InstanceGroupManagerActionsSummary) — [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.
- (::Google::Cloud::Compute::V1::InstanceGroupManagerActionsSummary) — [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.
#description
def description() -> ::String
- (::String) — An optional description of this resource.
#description=
def description=(value) -> ::String
- value (::String) — An optional description of this resource.
- (::String) — An optional description of this resource.
#distribution_policy
def distribution_policy() -> ::Google::Cloud::Compute::V1::DistributionPolicy
- (::Google::Cloud::Compute::V1::DistributionPolicy) — Policy specifying the intended distribution of managed instances across zones in a regional managed instance group.
#distribution_policy=
def distribution_policy=(value) -> ::Google::Cloud::Compute::V1::DistributionPolicy
- value (::Google::Cloud::Compute::V1::DistributionPolicy) — Policy specifying the intended distribution of managed instances across zones in a regional managed instance group.
- (::Google::Cloud::Compute::V1::DistributionPolicy) — Policy specifying the intended distribution of managed instances across zones in a regional managed instance group.
#fingerprint
def fingerprint() -> ::String
- (::String) — 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.
#fingerprint=
def fingerprint=(value) -> ::String
- value (::String) — 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.
- (::String) — 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.
#id
def id() -> ::Integer
- (::Integer) — [Output Only] A unique identifier for this resource type. The server generates this identifier.
#id=
def id=(value) -> ::Integer
- value (::Integer) — [Output Only] A unique identifier for this resource type. The server generates this identifier.
- (::Integer) — [Output Only] A unique identifier for this resource type. The server generates this identifier.
#instance_group
def instance_group() -> ::String
- (::String) — [Output Only] The URL of the Instance Group resource.
#instance_group=
def instance_group=(value) -> ::String
- value (::String) — [Output Only] The URL of the Instance Group resource.
- (::String) — [Output Only] The URL of the Instance Group resource.
#instance_lifecycle_policy
def instance_lifecycle_policy() -> ::Google::Cloud::Compute::V1::InstanceGroupManagerInstanceLifecyclePolicy
- (::Google::Cloud::Compute::V1::InstanceGroupManagerInstanceLifecyclePolicy) — The repair policy for this managed instance group.
#instance_lifecycle_policy=
def instance_lifecycle_policy=(value) -> ::Google::Cloud::Compute::V1::InstanceGroupManagerInstanceLifecyclePolicy
- value (::Google::Cloud::Compute::V1::InstanceGroupManagerInstanceLifecyclePolicy) — The repair policy for this managed instance group.
- (::Google::Cloud::Compute::V1::InstanceGroupManagerInstanceLifecyclePolicy) — The repair policy for this managed instance group.
#instance_template
def instance_template() -> ::String
- (::String) — 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.
#instance_template=
def instance_template=(value) -> ::String
- value (::String) — 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.
- (::String) — 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.
#kind
def kind() -> ::String
- (::String) — [Output Only] The resource type, which is always compute#instanceGroupManager for managed instance groups.
#kind=
def kind=(value) -> ::String
- value (::String) — [Output Only] The resource type, which is always compute#instanceGroupManager for managed instance groups.
- (::String) — [Output Only] The resource type, which is always compute#instanceGroupManager for managed instance groups.
#list_managed_instances_results
def list_managed_instances_results() -> ::String
- (::String) — Pagination behavior of the listManagedInstances API method for this managed instance group. Check the ListManagedInstancesResults enum for the list of possible values.
#list_managed_instances_results=
def list_managed_instances_results=(value) -> ::String
- value (::String) — Pagination behavior of the listManagedInstances API method for this managed instance group. Check the ListManagedInstancesResults enum for the list of possible values.
- (::String) — Pagination behavior of the listManagedInstances API method for this managed instance group. Check the ListManagedInstancesResults enum for the list of possible values.
#name
def name() -> ::String
- (::String) — The name of the managed instance group. The name must be 1-63 characters long, and comply with RFC1035.
#name=
def name=(value) -> ::String
- value (::String) — The name of the managed instance group. The name must be 1-63 characters long, and comply with RFC1035.
- (::String) — The name of the managed instance group. The name must be 1-63 characters long, and comply with RFC1035.
#named_ports
def named_ports() -> ::Array<::Google::Cloud::Compute::V1::NamedPort>
- (::Array<::Google::Cloud::Compute::V1::NamedPort>) — Named ports configured for the Instance Groups complementary to this Instance Group Manager.
#named_ports=
def named_ports=(value) -> ::Array<::Google::Cloud::Compute::V1::NamedPort>
- value (::Array<::Google::Cloud::Compute::V1::NamedPort>) — Named ports configured for the Instance Groups complementary to this Instance Group Manager.
- (::Array<::Google::Cloud::Compute::V1::NamedPort>) — Named ports configured for the Instance Groups complementary to this Instance Group Manager.
#region
def region() -> ::String
- (::String) — [Output Only] The URL of the region where the managed instance group resides (for regional resources).
#region=
def region=(value) -> ::String
- value (::String) — [Output Only] The URL of the region where the managed instance group resides (for regional resources).
- (::String) — [Output Only] The URL of the region where the managed instance group resides (for regional resources).
#self_link
def self_link() -> ::String
- (::String) — [Output Only] The URL for this managed instance group. The server defines this URL.
#self_link=
def self_link=(value) -> ::String
- value (::String) — [Output Only] The URL for this managed instance group. The server defines this URL.
- (::String) — [Output Only] The URL for this managed instance group. The server defines this URL.
#stateful_policy
def stateful_policy() -> ::Google::Cloud::Compute::V1::StatefulPolicy
- (::Google::Cloud::Compute::V1::StatefulPolicy) — Stateful configuration for this Instanced Group Manager
#stateful_policy=
def stateful_policy=(value) -> ::Google::Cloud::Compute::V1::StatefulPolicy
- value (::Google::Cloud::Compute::V1::StatefulPolicy) — Stateful configuration for this Instanced Group Manager
- (::Google::Cloud::Compute::V1::StatefulPolicy) — Stateful configuration for this Instanced Group Manager
#status
def status() -> ::Google::Cloud::Compute::V1::InstanceGroupManagerStatus
- (::Google::Cloud::Compute::V1::InstanceGroupManagerStatus) — [Output Only] The status of this managed instance group.
#status=
def status=(value) -> ::Google::Cloud::Compute::V1::InstanceGroupManagerStatus
- value (::Google::Cloud::Compute::V1::InstanceGroupManagerStatus) — [Output Only] The status of this managed instance group.
- (::Google::Cloud::Compute::V1::InstanceGroupManagerStatus) — [Output Only] The status of this managed instance group.
#target_pools
def target_pools() -> ::Array<::String>
- (::Array<::String>) — 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.
#target_pools=
def target_pools=(value) -> ::Array<::String>
- value (::Array<::String>) — 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.
- (::Array<::String>) — 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.
#target_size
def target_size() -> ::Integer
- (::Integer) — 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.
#target_size=
def target_size=(value) -> ::Integer
- value (::Integer) — 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.
- (::Integer) — 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.
#update_policy
def update_policy() -> ::Google::Cloud::Compute::V1::InstanceGroupManagerUpdatePolicy
- (::Google::Cloud::Compute::V1::InstanceGroupManagerUpdatePolicy) — The update policy for this managed instance group.
#update_policy=
def update_policy=(value) -> ::Google::Cloud::Compute::V1::InstanceGroupManagerUpdatePolicy
- value (::Google::Cloud::Compute::V1::InstanceGroupManagerUpdatePolicy) — The update policy for this managed instance group.
- (::Google::Cloud::Compute::V1::InstanceGroupManagerUpdatePolicy) — The update policy for this managed instance group.
#versions
def versions() -> ::Array<::Google::Cloud::Compute::V1::InstanceGroupManagerVersion>
- (::Array<::Google::Cloud::Compute::V1::InstanceGroupManagerVersion>) — 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.
#versions=
def versions=(value) -> ::Array<::Google::Cloud::Compute::V1::InstanceGroupManagerVersion>
- value (::Array<::Google::Cloud::Compute::V1::InstanceGroupManagerVersion>) — 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.
- (::Array<::Google::Cloud::Compute::V1::InstanceGroupManagerVersion>) — 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.
#zone
def zone() -> ::String
- (::String) — [Output Only] The URL of a zone where the managed instance group is located (for zonal resources).
#zone=
def zone=(value) -> ::String
- value (::String) — [Output Only] The URL of a zone where the managed instance group is located (for zonal resources).
- (::String) — [Output Only] The URL of a zone where the managed instance group is located (for zonal resources).