Class: Google::Apis::GkehubV1beta::ConfigManagementMembershipState

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

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.



1574
1575
1576
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1574

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

Instance Attribute Details

#binauthz_stateGoogle::Apis::GkehubV1beta::ConfigManagementBinauthzState

State for Binauthz Corresponds to the JSON property binauthzState



1540
1541
1542
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1540

def binauthz_state
  @binauthz_state
end

#cluster_nameString

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)


1546
1547
1548
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1546

def cluster_name
  @cluster_name
end

#config_sync_stateGoogle::Apis::GkehubV1beta::ConfigManagementConfigSyncState

State information for ConfigSync Corresponds to the JSON property configSyncState



1551
1552
1553
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1551

def config_sync_state
  @config_sync_state
end

#hierarchy_controller_stateGoogle::Apis::GkehubV1beta::ConfigManagementHierarchyControllerState

State for Hierarchy Controller Corresponds to the JSON property hierarchyControllerState



1556
1557
1558
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1556

def hierarchy_controller_state
  @hierarchy_controller_state
end

#membership_specGoogle::Apis::GkehubV1beta::ConfigManagementMembershipSpec

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



1562
1563
1564
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1562

def membership_spec
  @membership_spec
end

#operator_stateGoogle::Apis::GkehubV1beta::ConfigManagementOperatorState

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



1567
1568
1569
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1567

def operator_state
  @operator_state
end

#policy_controller_stateGoogle::Apis::GkehubV1beta::ConfigManagementPolicyControllerState

State for PolicyControllerState. Corresponds to the JSON property policyControllerState



1572
1573
1574
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1572

def policy_controller_state
  @policy_controller_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1579
1580
1581
1582
1583
1584
1585
1586
1587
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1579

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)
  @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