Class: Google::Apis::OsconfigV1beta::PatchRollout
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::PatchRollout
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/osconfig_v1beta/classes.rb,
generated/google/apis/osconfig_v1beta/representations.rb,
generated/google/apis/osconfig_v1beta/representations.rb
Overview
Patch rollout configuration specifications. Contains details on the concurrency control when applying patch(es) to all targeted VMs.
Instance Attribute Summary collapse
-
#disruption_budget ⇒ Google::Apis::OsconfigV1beta::FixedOrPercent
Message encapsulating a value that can be either absolute ("fixed") or relative ("percent") to a value.
-
#mode ⇒ String
Mode of the patch rollout.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PatchRollout
constructor
A new instance of PatchRollout.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PatchRollout
Returns a new instance of PatchRollout.
1899 1900 1901 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1899 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disruption_budget ⇒ Google::Apis::OsconfigV1beta::FixedOrPercent
Message encapsulating a value that can be either absolute ("fixed") or
relative ("percent") to a value.
Corresponds to the JSON property disruptionBudget
1892 1893 1894 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1892 def disruption_budget @disruption_budget end |
#mode ⇒ String
Mode of the patch rollout.
Corresponds to the JSON property mode
1897 1898 1899 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1897 def mode @mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1904 1905 1906 1907 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1904 def update!(**args) @disruption_budget = args[:disruption_budget] if args.key?(:disruption_budget) @mode = args[:mode] if args.key?(:mode) end |