Class: Google::Apis::RunV1::Revision

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

Overview

Revision is an immutable snapshot of code and configuration. A revision references a container image. Revisions are created by updates to a Configuration. See also: https://github.com/knative/serving/blob/master/docs/spec/overview.md#revision

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Revision

Returns a new instance of Revision.



2368
2369
2370
# File 'generated/google/apis/run_v1/classes.rb', line 2368

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)


2344
2345
2346
# File 'generated/google/apis/run_v1/classes.rb', line 2344

def api_version
  @api_version
end

#kindString

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

Returns:

  • (String)


2349
2350
2351
# File 'generated/google/apis/run_v1/classes.rb', line 2349

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



2355
2356
2357
# File 'generated/google/apis/run_v1/classes.rb', line 2355

def 
  @metadata
end

#specGoogle::Apis::RunV1::RevisionSpec

RevisionSpec holds the desired state of the Revision (from the client). Corresponds to the JSON property spec



2360
2361
2362
# File 'generated/google/apis/run_v1/classes.rb', line 2360

def spec
  @spec
end

#statusGoogle::Apis::RunV1::RevisionStatus

RevisionStatus communicates the observed state of the Revision (from the controller). Corresponds to the JSON property status



2366
2367
2368
# File 'generated/google/apis/run_v1/classes.rb', line 2366

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2373
2374
2375
2376
2377
2378
2379
# File 'generated/google/apis/run_v1/classes.rb', line 2373

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