Class: Google::Apis::GkehubV1alpha::ConfigManagementManaged
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1alpha::ConfigManagementManaged
- 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
Configuration for Managed Config Sync.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
(also: #enabled?)
Set to true to enable Managed Config Sync.
-
#stop_syncing ⇒ Boolean
(also: #stop_syncing?)
Set to true to stop syncing configs for a single cluster.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConfigManagementManaged
constructor
A new instance of ConfigManagementManaged.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ConfigManagementManaged
Returns a new instance of ConfigManagementManaged.
1486 1487 1488 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1486 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enabled ⇒ Boolean Also known as: enabled?
Set to true to enable Managed Config Sync. Defaults to false which disables
Managed Config Sync. Setting this field to true when configSync.enabled is
false is invalid.
Corresponds to the JSON property enabled
1476 1477 1478 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1476 def enabled @enabled end |
#stop_syncing ⇒ Boolean Also known as: stop_syncing?
Set to true to stop syncing configs for a single cluster. Default to false. If
set to true, Managed Config Sync will not upgrade Config Sync.
Corresponds to the JSON property stopSyncing
1483 1484 1485 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1483 def stop_syncing @stop_syncing end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1491 1492 1493 1494 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1491 def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @stop_syncing = args[:stop_syncing] if args.key?(:stop_syncing) end |