Class: Google::Apis::RunV1alpha1::ServiceSpecPinnedType
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::ServiceSpecPinnedType
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v1alpha1/classes.rb,
lib/google/apis/run_v1alpha1/representations.rb,
lib/google/apis/run_v1alpha1/representations.rb
Overview
ServiceSpecPinnedType Pins this service to a specific revision name. The revision must be owned by the configuration provided. Deprecated and not supported by Cloud Run.
Instance Attribute Summary collapse
-
#configuration ⇒ Google::Apis::RunV1alpha1::ConfigurationSpec
ConfigurationSpec holds the desired state of the Configuration (from the client).
-
#revision_name ⇒ String
The revision name to pin this service to until changed to a different service type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceSpecPinnedType
constructor
A new instance of ServiceSpecPinnedType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ServiceSpecPinnedType
Returns a new instance of ServiceSpecPinnedType.
3653 3654 3655 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 3653 def initialize(**args) update!(**args) end |
Instance Attribute Details
#configuration ⇒ Google::Apis::RunV1alpha1::ConfigurationSpec
ConfigurationSpec holds the desired state of the Configuration (from the
client).
Corresponds to the JSON property configuration
3645 3646 3647 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 3645 def configuration @configuration end |
#revision_name ⇒ String
The revision name to pin this service to until changed to a different service
type.
Corresponds to the JSON property revisionName
3651 3652 3653 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 3651 def revision_name @revision_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3658 3659 3660 3661 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 3658 def update!(**args) @configuration = args[:configuration] if args.key?(:configuration) @revision_name = args[:revision_name] if args.key?(:revision_name) end |