Class: Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicy

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourcePolicyVmMaintenancePolicy

Returns a new instance of ResourcePolicyVmMaintenancePolicy.



37420
37421
37422
# File 'lib/google/apis/compute_alpha/classes.rb', line 37420

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#concurrency_control_groupGoogle::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



37412
37413
37414
# File 'lib/google/apis/compute_alpha/classes.rb', line 37412

def concurrency_control_group
  @concurrency_control_group
end

#maintenance_windowGoogle::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicyMaintenanceWindow

A maintenance window for VMs. When set, we restrict our maintenance operations to this window. Corresponds to the JSON property maintenanceWindow



37418
37419
37420
# File 'lib/google/apis/compute_alpha/classes.rb', line 37418

def maintenance_window
  @maintenance_window
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



37425
37426
37427
37428
# File 'lib/google/apis/compute_alpha/classes.rb', line 37425

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