Class: Google::Apis::GkehubV1beta::AnthosVmMembershipState

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v1beta/classes.rb,
lib/google/apis/gkehub_v1beta/representations.rb,
lib/google/apis/gkehub_v1beta/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.



116
117
118
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 116

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

Instance Attribute Details

#local_controller_stateGoogle::Apis::GkehubV1beta::LocalControllerState

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



109
110
111
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 109

def local_controller_state
  @local_controller_state
end

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

List of AnthosVM subfeature states Corresponds to the JSON property subfeatureState



114
115
116
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 114

def subfeature_state
  @subfeature_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



121
122
123
124
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 121

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