Class: Google::Apis::GkehubV1::ConfigManagementMembershipState

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

Overview

Anthos Config Management: State for a single cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConfigManagementMembershipState

Returns a new instance of ConfigManagementMembershipState.



968
969
970
# File 'lib/google/apis/gkehub_v1/classes.rb', line 968

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

Instance Attribute Details

#cluster_nameString

The user-defined name for the cluster used by ClusterSelectors to group clusters together. This should match Membership's membership_name, unless the user installed ACM on the cluster manually prior to enabling the ACM hub feature. Unique within a Anthos Config Management installation. Corresponds to the JSON property clusterName

Returns:

  • (String)


940
941
942
# File 'lib/google/apis/gkehub_v1/classes.rb', line 940

def cluster_name
  @cluster_name
end

#config_sync_stateGoogle::Apis::GkehubV1::ConfigManagementConfigSyncState

State information for ConfigSync Corresponds to the JSON property configSyncState



945
946
947
# File 'lib/google/apis/gkehub_v1/classes.rb', line 945

def config_sync_state
  @config_sync_state
end

#hierarchy_controller_stateGoogle::Apis::GkehubV1::ConfigManagementHierarchyControllerState

State for Hierarchy Controller Corresponds to the JSON property hierarchyControllerState



950
951
952
# File 'lib/google/apis/gkehub_v1/classes.rb', line 950

def hierarchy_controller_state
  @hierarchy_controller_state
end

#membership_specGoogle::Apis::GkehubV1::ConfigManagementMembershipSpec

Anthos Config Management: Configuration for a single cluster. Intended to parallel the ConfigManagement CR. Corresponds to the JSON property membershipSpec



956
957
958
# File 'lib/google/apis/gkehub_v1/classes.rb', line 956

def membership_spec
  @membership_spec
end

#operator_stateGoogle::Apis::GkehubV1::ConfigManagementOperatorState

State information for an ACM's Operator Corresponds to the JSON property operatorState



961
962
963
# File 'lib/google/apis/gkehub_v1/classes.rb', line 961

def operator_state
  @operator_state
end

#policy_controller_stateGoogle::Apis::GkehubV1::ConfigManagementPolicyControllerState

State for PolicyControllerState. Corresponds to the JSON property policyControllerState



966
967
968
# File 'lib/google/apis/gkehub_v1/classes.rb', line 966

def policy_controller_state
  @policy_controller_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



973
974
975
976
977
978
979
980
# File 'lib/google/apis/gkehub_v1/classes.rb', line 973

def update!(**args)
  @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
  @config_sync_state = args[:config_sync_state] if args.key?(:config_sync_state)
  @hierarchy_controller_state = args[:hierarchy_controller_state] if args.key?(:hierarchy_controller_state)
  @membership_spec = args[:membership_spec] if args.key?(:membership_spec)
  @operator_state = args[:operator_state] if args.key?(:operator_state)
  @policy_controller_state = args[:policy_controller_state] if args.key?(:policy_controller_state)
end