Class: Google::Apis::OsconfigV1beta::PatchRollout

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/osconfig_v1beta/classes.rb,
lib/google/apis/osconfig_v1beta/representations.rb,
lib/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PatchRollout

Returns a new instance of PatchRollout.



1584
1585
1586
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1584

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

Instance Attribute Details

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



1577
1578
1579
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1577

def disruption_budget
  @disruption_budget
end

#modeString

Mode of the patch rollout. Corresponds to the JSON property mode

Returns:

  • (String)


1582
1583
1584
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1582

def mode
  @mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1589
1590
1591
1592
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1589

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