class Google::Apis::RunV1::RevisionTemplate
RevisionTemplateSpec describes the data a revision should have when created from a template. Based on: github.com/kubernetes/api/blob/e771f807/ core/v1/types.go#L3179-L3190
Attributes
metadata[RW]
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` @return [Google::Apis::RunV1::ObjectMeta]
spec[RW]
RevisionSpec
holds the desired state of the Revision
(from the client). Corresponds to the JSON property `spec` @return [Google::Apis::RunV1::RevisionSpec]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/run_v1/classes.rb, line 2145 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/run_v1/classes.rb, line 2150 def update!(**args) @metadata = args[:metadata] if args.key?(:metadata) @spec = args[:spec] if args.key?(:spec) end