Class: Google::Apis::GkehubV1alpha::AnthosVmMembershipState

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v1alpha/classes.rb,
lib/google/apis/gkehub_v1alpha/representations.rb,
lib/google/apis/gkehub_v1alpha/representations.rb

Overview

AnthosVMFeatureState contains the state of the AnthosVM feature. It represents the actual state in the cluster, while the AnthosVMMembershipSpec represents the desired state.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AnthosVmMembershipState

Returns a new instance of AnthosVmMembershipState.



117
118
119
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 117

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

Instance Attribute Details

#local_controller_stateGoogle::Apis::GkehubV1alpha::LocalControllerState

LocalControllerState contains the state of the local controller deployed in the cluster. Corresponds to the JSON property localControllerState



110
111
112
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 110

def local_controller_state
  @local_controller_state
end

#subfeature_stateArray<Google::Apis::GkehubV1alpha::AnthosVmSubFeatureState>

List of AnthosVM subfeature states Corresponds to the JSON property subfeatureState



115
116
117
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 115

def subfeature_state
  @subfeature_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



122
123
124
125
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 122

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