Class: Google::Apis::RunV1alpha1::ServiceSpec
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::ServiceSpec
- 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
ServiceSpec holds the desired state of the Route (from the client), which is used to manipulate the underlying Route and Configuration(s).
Instance Attribute Summary collapse
-
#generation ⇒ Fixnum
Deprecated and not currently populated by Cloud Run.
-
#manual ⇒ Google::Apis::RunV1alpha1::ServiceSpecManualType
ServiceSpecManualType contains the options for configuring a manual service.
-
#pinned ⇒ Google::Apis::RunV1alpha1::ServiceSpecPinnedType
ServiceSpecPinnedType Pins this service to a specific revision name.
-
#release ⇒ Google::Apis::RunV1alpha1::ServiceSpecReleaseType
ServiceSpecReleaseType contains the options for slowly releasing revisions.
-
#run_latest ⇒ Google::Apis::RunV1alpha1::ServiceSpecRunLatest
ServiceSpecRunLatest contains the options for always having a route to the latest configuration.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceSpec
constructor
A new instance of ServiceSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ServiceSpec
Returns a new instance of ServiceSpec
2995 2996 2997 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2995 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
2966 2967 2968 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2966 def generation @generation end |
#manual ⇒ Google::Apis::RunV1alpha1::ServiceSpecManualType
ServiceSpecManualType contains the options for configuring a manual service.
See ServiceSpec for more details.
Not currently supported by Cloud Run.
Corresponds to the JSON property manual
2973 2974 2975 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2973 def manual @manual end |
#pinned ⇒ Google::Apis::RunV1alpha1::ServiceSpecPinnedType
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.
Corresponds to the JSON property pinned
2980 2981 2982 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2980 def pinned @pinned end |
#release ⇒ Google::Apis::RunV1alpha1::ServiceSpecReleaseType
ServiceSpecReleaseType contains the options for slowly releasing revisions.
See ServiceSpec for more details.
Not currently supported by Cloud Run.
Corresponds to the JSON property release
2987 2988 2989 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2987 def release @release end |
#run_latest ⇒ Google::Apis::RunV1alpha1::ServiceSpecRunLatest
ServiceSpecRunLatest contains the options for always having a route to the
latest configuration. See ServiceSpec for more details.
Corresponds to the JSON property runLatest
2993 2994 2995 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 2993 def run_latest @run_latest end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3000 3001 3002 3003 3004 3005 3006 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3000 def update!(**args) @generation = args[:generation] if args.key?(:generation) @manual = args[:manual] if args.key?(:manual) @pinned = args[:pinned] if args.key?(:pinned) @release = args[:release] if args.key?(:release) @run_latest = args[:run_latest] if args.key?(:run_latest) end |