Class: Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicy
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb
Instance Attribute Summary collapse
-
#concurrency_control_group ⇒ Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicyConcurrencyControl
A concurrency control configuration.
-
#maintenance_window ⇒ Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicyMaintenanceWindow
A maintenance window for VMs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourcePolicyVmMaintenancePolicy
constructor
A new instance of ResourcePolicyVmMaintenancePolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourcePolicyVmMaintenancePolicy
Returns a new instance of ResourcePolicyVmMaintenancePolicy.
30764 30765 30766 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 30764 def initialize(**args) update!(**args) end |
Instance Attribute Details
#concurrency_control_group ⇒ Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicyConcurrencyControl
A concurrency control configuration. Defines a group config that, when
attached to an instance, recognizes that instance as part of a group of
instances where only up the concurrency_limit of instances in that group can
undergo simultaneous maintenance. For more information: go/concurrency-control-
design-doc
Corresponds to the JSON property concurrencyControlGroup
30756 30757 30758 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 30756 def concurrency_control_group @concurrency_control_group end |
#maintenance_window ⇒ Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicyMaintenanceWindow
A maintenance window for VMs. When set, we restrict our maintenance operations
to this window.
Corresponds to the JSON property maintenanceWindow
30762 30763 30764 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 30762 def maintenance_window @maintenance_window end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
30769 30770 30771 30772 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 30769 def update!(**args) @concurrency_control_group = args[:concurrency_control_group] if args.key?(:concurrency_control_group) @maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window) end |