Class: Google::Apis::OsconfigV1::PatchConfig
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1::PatchConfig
- 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
Patch configuration specifications. Contains details on how to apply the patch( es) to a VM instance.
Instance Attribute Summary collapse
-
#apt ⇒ Google::Apis::OsconfigV1::AptSettings
Apt patching is completed by executing
apt-get update && apt-get upgrade
. -
#goo ⇒ Google::Apis::OsconfigV1::GooSettings
Googet patching is performed by running
googet update
. -
#mig_instances_allowed ⇒ Boolean
(also: #mig_instances_allowed?)
Allows the patch job to run on Managed instance groups (MIGs).
-
#post_step ⇒ Google::Apis::OsconfigV1::ExecStep
A step that runs an executable for a PatchJob.
-
#pre_step ⇒ Google::Apis::OsconfigV1::ExecStep
A step that runs an executable for a PatchJob.
-
#reboot_config ⇒ String
Post-patch reboot settings.
-
#windows_update ⇒ Google::Apis::OsconfigV1::WindowsUpdateSettings
Windows patching is performed using the Windows Update Agent.
-
#yum ⇒ Google::Apis::OsconfigV1::YumSettings
Yum patching is performed by executing
yum update
. -
#zypper ⇒ Google::Apis::OsconfigV1::ZypperSettings
Zypper patching is performed by running
zypper patch
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PatchConfig
constructor
A new instance of PatchConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PatchConfig
Returns a new instance of PatchConfig.
2691 2692 2693 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2691 def initialize(**args) update!(**args) end |
Instance Attribute Details
#apt ⇒ Google::Apis::OsconfigV1::AptSettings
Apt patching is completed by executing apt-get update && apt-get upgrade
.
Additional options can be set to control how this is executed.
Corresponds to the JSON property apt
2645 2646 2647 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2645 def apt @apt end |
#goo ⇒ Google::Apis::OsconfigV1::GooSettings
Googet patching is performed by running googet update
.
Corresponds to the JSON property goo
2650 2651 2652 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2650 def goo @goo end |
#mig_instances_allowed ⇒ Boolean Also known as: mig_instances_allowed?
Allows the patch job to run on Managed instance groups (MIGs).
Corresponds to the JSON property migInstancesAllowed
2655 2656 2657 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2655 def mig_instances_allowed @mig_instances_allowed end |
#post_step ⇒ Google::Apis::OsconfigV1::ExecStep
A step that runs an executable for a PatchJob.
Corresponds to the JSON property postStep
2661 2662 2663 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2661 def post_step @post_step end |
#pre_step ⇒ Google::Apis::OsconfigV1::ExecStep
A step that runs an executable for a PatchJob.
Corresponds to the JSON property preStep
2666 2667 2668 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2666 def pre_step @pre_step end |
#reboot_config ⇒ String
Post-patch reboot settings.
Corresponds to the JSON property rebootConfig
2671 2672 2673 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2671 def reboot_config @reboot_config end |
#windows_update ⇒ Google::Apis::OsconfigV1::WindowsUpdateSettings
Windows patching is performed using the Windows Update Agent.
Corresponds to the JSON property windowsUpdate
2676 2677 2678 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2676 def windows_update @windows_update end |
#yum ⇒ Google::Apis::OsconfigV1::YumSettings
Yum patching is performed by executing yum update
. Additional options can be
set to control how this is executed. Note that not all settings are supported
on all platforms.
Corresponds to the JSON property yum
2683 2684 2685 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2683 def yum @yum end |
#zypper ⇒ Google::Apis::OsconfigV1::ZypperSettings
Zypper patching is performed by running zypper patch
. See also https://en.
opensuse.org/SDB:Zypper_manual.
Corresponds to the JSON property zypper
2689 2690 2691 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2689 def zypper @zypper end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2696 def update!(**args) @apt = args[:apt] if args.key?(:apt) @goo = args[:goo] if args.key?(:goo) @mig_instances_allowed = args[:mig_instances_allowed] if args.key?(:mig_instances_allowed) @post_step = args[:post_step] if args.key?(:post_step) @pre_step = args[:pre_step] if args.key?(:pre_step) @reboot_config = args[:reboot_config] if args.key?(:reboot_config) @windows_update = args[:windows_update] if args.key?(:windows_update) @yum = args[:yum] if args.key?(:yum) @zypper = args[:zypper] if args.key?(:zypper) end |