Class: Google::Apis::ContainerV1::BlueGreenSettings
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::BlueGreenSettings
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/container_v1/classes.rb,
lib/google/apis/container_v1/representations.rb,
lib/google/apis/container_v1/representations.rb
Overview
Settings for blue-green upgrade.
Instance Attribute Summary collapse
-
#node_pool_soak_duration ⇒ String
Time needed after draining entire blue pool.
-
#standard_rollout_policy ⇒ Google::Apis::ContainerV1::StandardRolloutPolicy
Standard rollout policy is the default policy for blue-green.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BlueGreenSettings
constructor
A new instance of BlueGreenSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BlueGreenSettings
Returns a new instance of BlueGreenSettings.
724 725 726 |
# File 'lib/google/apis/container_v1/classes.rb', line 724 def initialize(**args) update!(**args) end |
Instance Attribute Details
#node_pool_soak_duration ⇒ String
Time needed after draining entire blue pool. After this period, blue pool will
be cleaned up.
Corresponds to the JSON property nodePoolSoakDuration
717 718 719 |
# File 'lib/google/apis/container_v1/classes.rb', line 717 def node_pool_soak_duration @node_pool_soak_duration end |
#standard_rollout_policy ⇒ Google::Apis::ContainerV1::StandardRolloutPolicy
Standard rollout policy is the default policy for blue-green.
Corresponds to the JSON property standardRolloutPolicy
722 723 724 |
# File 'lib/google/apis/container_v1/classes.rb', line 722 def standard_rollout_policy @standard_rollout_policy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
729 730 731 732 |
# File 'lib/google/apis/container_v1/classes.rb', line 729 def update!(**args) @node_pool_soak_duration = args[:node_pool_soak_duration] if args.key?(:node_pool_soak_duration) @standard_rollout_policy = args[:standard_rollout_policy] if args.key?(:standard_rollout_policy) end |