Class: Google::Apis::GkehubV1beta::ConfigManagementConfigSync

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 Config Sync

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConfigManagementConfigSync

Returns a new instance of ConfigManagementConfigSync.



305
306
307
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 305

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

Instance Attribute Details

#gitGoogle::Apis::GkehubV1beta::ConfigManagementGitConfig

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



292
293
294
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 292

def git
  @git
end

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

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



297
298
299
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 297

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)


303
304
305
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 303

def source_format
  @source_format
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



310
311
312
313
314
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 310

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