Class: Google::Apis::GkehubV1alpha::ConfigManagementConfigSync

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

Configuration for Config Sync

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConfigManagementConfigSync

Returns a new instance of ConfigManagementConfigSync.



341
342
343
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 341

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

Instance Attribute Details

#gitGoogle::Apis::GkehubV1alpha::ConfigManagementGitConfig

Git repo configuration for a single cluster. Corresponds to the JSON property git



328
329
330
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 328

def git
  @git
end

#resource_requirementsHash<String,Google::Apis::GkehubV1alpha::ConfigManagementContainerResourceRequirements>

Specifies CPU and memory limits for containers, keyed by container name Corresponds to the JSON property resourceRequirements



333
334
335
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 333

def resource_requirements
  @resource_requirements
end

#source_formatString

Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode. Corresponds to the JSON property sourceFormat

Returns:

  • (String)


339
340
341
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 339

def source_format
  @source_format
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



346
347
348
349
350
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 346

def update!(**args)
  @git = args[:git] if args.key?(:git)
  @resource_requirements = args[:resource_requirements] if args.key?(:resource_requirements)
  @source_format = args[:source_format] if args.key?(:source_format)
end