class Google::Apis::OsconfigV1beta::PatchConfig

Patch configuration specifications. Contains details on how to apply the patch( es) to a VM instance.

Attributes

apt[RW]

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` @return [Google::Apis::OsconfigV1beta::AptSettings]

goo[RW]

Googet patching is performed by running `googet update`. Corresponds to the JSON property `goo` @return [Google::Apis::OsconfigV1beta::GooSettings]

post_step[RW]

A step that runs an executable for a PatchJob. Corresponds to the JSON property `postStep` @return [Google::Apis::OsconfigV1beta::ExecStep]

pre_step[RW]

A step that runs an executable for a PatchJob. Corresponds to the JSON property `preStep` @return [Google::Apis::OsconfigV1beta::ExecStep]

reboot_config[RW]

Post-patch reboot settings. Corresponds to the JSON property `rebootConfig` @return [String]

windows_update[RW]

Windows patching is performed using the Windows Update Agent. Corresponds to the JSON property `windowsUpdate` @return [Google::Apis::OsconfigV1beta::WindowsUpdateSettings]

yum[RW]

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` @return [Google::Apis::OsconfigV1beta::YumSettings]

zypper[RW]

Zypper patching is performed by running `zypper patch`. See also en. opensuse.org/SDB:Zypper_manual. Corresponds to the JSON property `zypper` @return [Google::Apis::OsconfigV1beta::ZypperSettings]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/osconfig_v1beta/classes.rb, line 1049
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/osconfig_v1beta/classes.rb, line 1054
def update!(**args)
  @apt = args[:apt] if args.key?(:apt)
  @goo = args[:goo] if args.key?(:goo)
  @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