Class: Google::Apis::GkehubV1beta::ConfigManagementManaged

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

Configuration for Managed Config Sync.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConfigManagementManaged

Returns a new instance of ConfigManagementManaged.



982
983
984
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 982

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

Instance Attribute Details

#enabledBoolean 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

Returns:

  • (Boolean)


972
973
974
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 972

def enabled
  @enabled
end

#stop_syncingBoolean 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

Returns:

  • (Boolean)


979
980
981
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 979

def stop_syncing
  @stop_syncing
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



987
988
989
990
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 987

def update!(**args)
  @enabled = args[:enabled] if args.key?(:enabled)
  @stop_syncing = args[:stop_syncing] if args.key?(:stop_syncing)
end