Class: Google::Apis::GkehubV1alpha::ConfigManagementMembershipState

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

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.



1955
1956
1957
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1955

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

Instance Attribute Details

#binauthz_stateGoogle::Apis::GkehubV1alpha::ConfigManagementBinauthzState

State for Binauthz Corresponds to the JSON property binauthzState



1915
1916
1917
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1915

def binauthz_state
  @binauthz_state
end

#cluster_nameString

Output only. This field is set to the cluster_name field of the Membership Spec if it is not empty. Otherwise, it is set to the cluster's fleet membership name. Corresponds to the JSON property clusterName

Returns:

  • (String)


1922
1923
1924
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1922

def cluster_name
  @cluster_name
end

#config_sync_stateGoogle::Apis::GkehubV1alpha::ConfigManagementConfigSyncState

State information for ConfigSync Corresponds to the JSON property configSyncState



1927
1928
1929
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1927

def config_sync_state
  @config_sync_state
end

#hierarchy_controller_stateGoogle::Apis::GkehubV1alpha::ConfigManagementHierarchyControllerState

State for Hierarchy Controller Corresponds to the JSON property hierarchyControllerState



1932
1933
1934
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1932

def hierarchy_controller_state
  @hierarchy_controller_state
end

#kubernetes_api_server_versionString

Output only. The Kubernetes API server version of the cluster. Corresponds to the JSON property kubernetesApiServerVersion

Returns:

  • (String)


1937
1938
1939
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1937

def kubernetes_api_server_version
  @kubernetes_api_server_version
end

#membership_specGoogle::Apis::GkehubV1alpha::ConfigManagementMembershipSpec

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



1943
1944
1945
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1943

def membership_spec
  @membership_spec
end

#operator_stateGoogle::Apis::GkehubV1alpha::ConfigManagementOperatorState

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



1948
1949
1950
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1948

def operator_state
  @operator_state
end

#policy_controller_stateGoogle::Apis::GkehubV1alpha::ConfigManagementPolicyControllerState

State for PolicyControllerState. Corresponds to the JSON property policyControllerState



1953
1954
1955
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1953

def policy_controller_state
  @policy_controller_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1960

def update!(**args)
  @binauthz_state = args[:binauthz_state] if args.key?(:binauthz_state)
  @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)
  @kubernetes_api_server_version = args[:kubernetes_api_server_version] if args.key?(:kubernetes_api_server_version)
  @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