Class: Google::Apis::ComputeV1::InstanceGroupManagerStatusStateful

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceGroupManagerStatusStateful

Returns a new instance of InstanceGroupManagerStatusStateful.



12108
12109
12110
# File 'generated/google/apis/compute_v1/classes.rb', line 12108

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#has_stateful_configBoolean Also known as: has_stateful_config?

[Output Only] A bit indicating whether the managed instance group has stateful configuration, that is, if you have configured any items in a stateful policy or in per-instance configs. The group might report that it has no stateful config even when there is still some preserved state on a managed instance, for example, if you have deleted all PICs but not yet applied those deletions. Corresponds to the JSON property hasStatefulConfig

Returns:

  • (Boolean)


12100
12101
12102
# File 'generated/google/apis/compute_v1/classes.rb', line 12100

def has_stateful_config
  @has_stateful_config
end

#per_instance_configsGoogle::Apis::ComputeV1::InstanceGroupManagerStatusStatefulPerInstanceConfigs

[Output Only] Status of per-instance configs on the instance. Corresponds to the JSON property perInstanceConfigs



12106
12107
12108
# File 'generated/google/apis/compute_v1/classes.rb', line 12106

def per_instance_configs
  @per_instance_configs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12113
12114
12115
12116
# File 'generated/google/apis/compute_v1/classes.rb', line 12113

def update!(**args)
  @has_stateful_config = args[:has_stateful_config] if args.key?(:has_stateful_config)
  @per_instance_configs = args[:per_instance_configs] if args.key?(:per_instance_configs)
end