Class: Google::Apis::RunV1alpha1::Revision

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/run_v1alpha1/classes.rb,
generated/google/apis/run_v1alpha1/representations.rb,
generated/google/apis/run_v1alpha1/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. Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source. 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



2823
2824
2825
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2823

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

Instance Attribute Details

#api_versionString

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

Returns:

  • (String)


2799
2800
2801
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2799

def api_version
  @api_version
end

#kindString

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

Returns:

  • (String)


2804
2805
2806
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2804

def kind
  @kind
end

#metadataGoogle::Apis::RunV1alpha1::ObjectMeta

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. Corresponds to the JSON property metadata



2810
2811
2812
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2810

def 
  @metadata
end

#specGoogle::Apis::RunV1alpha1::RevisionSpec

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



2815
2816
2817
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2815

def spec
  @spec
end

#statusGoogle::Apis::RunV1alpha1::RevisionStatus

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



2821
2822
2823
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2821

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2828
2829
2830
2831
2832
2833
2834
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2828

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