Class: Google::Apis::RunV1::Configuration

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

Overview

Configuration represents the "floating HEAD" of a linear history of Revisions, and optionally how the containers those revisions reference are built. Users create new Revisions by updating the Configuration's spec. The "latest created" revision's name is available under status, as is the "latest ready" revision' s name.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Configuration

Returns a new instance of Configuration.



398
399
400
# File 'lib/google/apis/run_v1/classes.rb', line 398

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

Instance Attribute Details

#api_versionString

The API version for this call such as "serving.knative.dev/v1". Corresponds to the JSON property apiVersion

Returns:

  • (String)


373
374
375
# File 'lib/google/apis/run_v1/classes.rb', line 373

def api_version
  @api_version
end

#kindString

The kind of resource, in this case always "Configuration". Corresponds to the JSON property kind

Returns:

  • (String)


378
379
380
# File 'lib/google/apis/run_v1/classes.rb', line 378

def kind
  @kind
end

#metadataGoogle::Apis::RunV1::ObjectMeta

k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Corresponds to the JSON property metadata



384
385
386
# File 'lib/google/apis/run_v1/classes.rb', line 384

def 
  @metadata
end

#specGoogle::Apis::RunV1::ConfigurationSpec

ConfigurationSpec holds the desired state of the Configuration (from the client). Corresponds to the JSON property spec



390
391
392
# File 'lib/google/apis/run_v1/classes.rb', line 390

def spec
  @spec
end

#statusGoogle::Apis::RunV1::ConfigurationStatus

ConfigurationStatus communicates the observed state of the Configuration (from the controller). Corresponds to the JSON property status



396
397
398
# File 'lib/google/apis/run_v1/classes.rb', line 396

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



403
404
405
406
407
408
409
# File 'lib/google/apis/run_v1/classes.rb', line 403

def update!(**args)
  @api_version = args[:api_version] if args.key?(:api_version)
  @kind = args[:kind] if args.key?(:kind)
  @metadata = args[:metadata] if args.key?(:metadata)
  @spec = args[:spec] if args.key?(:spec)
  @status = args[:status] if args.key?(:status)
end