Class: Google::Apis::ClouddeployV1::Config

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

Overview

Service-wide configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Config

Returns a new instance of Config.



309
310
311
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 309

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

Instance Attribute Details

#default_skaffold_versionString

Output only. Default Skaffold version that is assigned when a Release is created without specifying a Skaffold version. Corresponds to the JSON property defaultSkaffoldVersion

Returns:

  • (String)


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

def default_skaffold_version
  @default_skaffold_version
end

#nameString

Name of the configuration. Corresponds to the JSON property name

Returns:

  • (String)


302
303
304
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 302

def name
  @name
end

#supported_versionsArray<Google::Apis::ClouddeployV1::SkaffoldVersion>

Output only. All supported versions of Skaffold. Corresponds to the JSON property supportedVersions



307
308
309
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 307

def supported_versions
  @supported_versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



314
315
316
317
318
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 314

def update!(**args)
  @default_skaffold_version = args[:default_skaffold_version] if args.key?(:default_skaffold_version)
  @name = args[:name] if args.key?(:name)
  @supported_versions = args[:supported_versions] if args.key?(:supported_versions)
end