Class: Google::Apis::RunV1alpha1::ConfigurationSpec
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::ConfigurationSpec
- 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
ConfigurationSpec holds the desired state of the Configuration (from the client).
Instance Attribute Summary collapse
-
#generation ⇒ Fixnum
Deprecated and not currently populated by Cloud Run.
-
#revision_template ⇒ Google::Apis::RunV1alpha1::RevisionTemplate
RevisionTemplateSpec describes the data a revision should have when created from a template.
-
#template ⇒ Google::Apis::RunV1alpha1::RevisionTemplate
RevisionTemplateSpec describes the data a revision should have when created from a template.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConfigurationSpec
constructor
A new instance of ConfigurationSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ConfigurationSpec
Returns a new instance of ConfigurationSpec.
967 968 969 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 967 def initialize(**args) update!(**args) end |
Instance Attribute Details
#generation ⇒ Fixnum
Deprecated and not currently populated by Cloud Run. See
metadata.generation instead, which is the sequence number containing the
latest generation of the desired state.
Read-only.
Corresponds to the JSON property generation
951 952 953 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 951 def generation @generation end |
#revision_template ⇒ Google::Apis::RunV1alpha1::RevisionTemplate
RevisionTemplateSpec describes the data a revision should have when created
from a template. Based on:
https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190
Corresponds to the JSON property revisionTemplate
958 959 960 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 958 def revision_template @revision_template end |
#template ⇒ Google::Apis::RunV1alpha1::RevisionTemplate
RevisionTemplateSpec describes the data a revision should have when created
from a template. Based on:
https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190
Corresponds to the JSON property template
965 966 967 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 965 def template @template end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
972 973 974 975 976 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 972 def update!(**args) @generation = args[:generation] if args.key?(:generation) @revision_template = args[:revision_template] if args.key?(:revision_template) @template = args[:template] if args.key?(:template) end |