Class: Google::Apis::RunV1alpha1::Revision
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::Revision
- 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
-
#api_version ⇒ String
The API version for this call such as "serving.knative.dev/v1alpha1".
-
#kind ⇒ String
The kind of this resource, in this case "Revision".
-
#metadata ⇒ Google::Apis::RunV1alpha1::ObjectMeta
ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
-
#spec ⇒ Google::Apis::RunV1alpha1::RevisionSpec
RevisionSpec holds the desired state of the Revision (from the client).
-
#status ⇒ Google::Apis::RunV1alpha1::RevisionStatus
RevisionStatus communicates the observed state of the Revision (from the controller).
Instance Method Summary collapse
-
#initialize(**args) ⇒ Revision
constructor
A new instance of Revision.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Revision
Returns a new instance of Revision
3142 3143 3144 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3142 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api_version ⇒ String
The API version for this call such as "serving.knative.dev/v1alpha1".
Corresponds to the JSON property apiVersion
3118 3119 3120 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3118 def api_version @api_version end |
#kind ⇒ String
The kind of this resource, in this case "Revision".
Corresponds to the JSON property kind
3123 3124 3125 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3123 def kind @kind end |
#metadata ⇒ Google::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
3129 3130 3131 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3129 def @metadata end |
#spec ⇒ Google::Apis::RunV1alpha1::RevisionSpec
RevisionSpec holds the desired state of the Revision (from the client).
Corresponds to the JSON property spec
3134 3135 3136 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3134 def spec @spec end |
#status ⇒ Google::Apis::RunV1alpha1::RevisionStatus
RevisionStatus communicates the observed state of the Revision (from the
controller).
Corresponds to the JSON property status
3140 3141 3142 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3140 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3147 3148 3149 3150 3151 3152 3153 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3147 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 |