Class: Google::Apis::ClouddeployV1::CloudRunConfig
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::CloudRunConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/clouddeploy_v1/classes.rb,
lib/google/apis/clouddeploy_v1/representations.rb,
lib/google/apis/clouddeploy_v1/representations.rb
Overview
CloudRunConfig contains the Cloud Run runtime configuration.
Instance Attribute Summary collapse
-
#automatic_traffic_control ⇒ Boolean
(also: #automatic_traffic_control?)
Whether Cloud Deploy should update the traffic stanza in a Cloud Run Service on the user's behalf to facilitate traffic splitting.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudRunConfig
constructor
A new instance of CloudRunConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudRunConfig
Returns a new instance of CloudRunConfig.
499 500 501 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 499 def initialize(**args) update!(**args) end |
Instance Attribute Details
#automatic_traffic_control ⇒ Boolean Also known as: automatic_traffic_control?
Whether Cloud Deploy should update the traffic stanza in a Cloud Run Service
on the user's behalf to facilitate traffic splitting. This is required to be
true for CanaryDeployments, but optional for CustomCanaryDeployments.
Corresponds to the JSON property automaticTrafficControl
496 497 498 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 496 def automatic_traffic_control @automatic_traffic_control end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
504 505 506 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 504 def update!(**args) @automatic_traffic_control = args[:automatic_traffic_control] if args.key?(:automatic_traffic_control) end |