Class: Google::Apis::GkehubV2::ConfigManagementState

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

Overview

Anthos Config Management: State for a single cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConfigManagementState

Returns a new instance of ConfigManagementState.



1363
1364
1365
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1363

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

Instance Attribute Details

#binauthz_stateGoogle::Apis::GkehubV2::ConfigManagementBinauthzState

State for Binauthz. Corresponds to the JSON property binauthzState



1323
1324
1325
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1323

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)


1330
1331
1332
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1330

def cluster_name
  @cluster_name
end

#config_sync_stateGoogle::Apis::GkehubV2::ConfigManagementConfigSyncState

State information for ConfigSync. Corresponds to the JSON property configSyncState



1335
1336
1337
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1335

def config_sync_state
  @config_sync_state
end

#hierarchy_controller_stateGoogle::Apis::GkehubV2::ConfigManagementHierarchyControllerState

State for Hierarchy Controller. Corresponds to the JSON property hierarchyControllerState



1340
1341
1342
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1340

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)


1345
1346
1347
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1345

def kubernetes_api_server_version
  @kubernetes_api_server_version
end

#membership_specGoogle::Apis::GkehubV2::ConfigManagementSpec

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



1351
1352
1353
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1351

def membership_spec
  @membership_spec
end

#operator_stateGoogle::Apis::GkehubV2::ConfigManagementOperatorState

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



1356
1357
1358
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1356

def operator_state
  @operator_state
end

#policy_controller_stateGoogle::Apis::GkehubV2::ConfigManagementPolicyControllerState

State for PolicyControllerState. Corresponds to the JSON property policyControllerState



1361
1362
1363
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1361

def policy_controller_state
  @policy_controller_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
# File 'lib/google/apis/gkehub_v2/classes.rb', line 1368

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