Class: Google::Apis::OsconfigV1::OsPolicyAssignmentRollout

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

Overview

Message to configure the rollout at the zonal level for the OS policy assignment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OsPolicyAssignmentRollout

Returns a new instance of OsPolicyAssignmentRollout.



1702
1703
1704
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1702

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

Instance Attribute Details

#disruption_budgetGoogle::Apis::OsconfigV1::FixedOrPercent

Message encapsulating a value that can be either absolute ("fixed") or relative ("percent") to a value. Corresponds to the JSON property disruptionBudget



1692
1693
1694
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1692

def disruption_budget
  @disruption_budget
end

#min_wait_durationString

Required. This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the disruption_budget at least until this duration of time has passed after configuration changes are applied. Corresponds to the JSON property minWaitDuration

Returns:

  • (String)


1700
1701
1702
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1700

def min_wait_duration
  @min_wait_duration
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1707
1708
1709
1710
# File 'lib/google/apis/osconfig_v1/classes.rb', line 1707

def update!(**args)
  @disruption_budget = args[:disruption_budget] if args.key?(:disruption_budget)
  @min_wait_duration = args[:min_wait_duration] if args.key?(:min_wait_duration)
end