Class: Google::Apis::OsconfigV1::PatchConfig

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PatchConfig

Returns a new instance of PatchConfig.



2636
2637
2638
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2636

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

Instance Attribute Details

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



2596
2597
2598
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2596

def apt
  @apt
end

#gooGoogle::Apis::OsconfigV1::GooSettings

Googet patching is performed by running googet update. Corresponds to the JSON property goo



2601
2602
2603
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2601

def goo
  @goo
end

#post_stepGoogle::Apis::OsconfigV1::ExecStep

A step that runs an executable for a PatchJob. Corresponds to the JSON property postStep



2606
2607
2608
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2606

def post_step
  @post_step
end

#pre_stepGoogle::Apis::OsconfigV1::ExecStep

A step that runs an executable for a PatchJob. Corresponds to the JSON property preStep



2611
2612
2613
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2611

def pre_step
  @pre_step
end

#reboot_configString

Post-patch reboot settings. Corresponds to the JSON property rebootConfig

Returns:

  • (String)


2616
2617
2618
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2616

def reboot_config
  @reboot_config
end

#windows_updateGoogle::Apis::OsconfigV1::WindowsUpdateSettings

Windows patching is performed using the Windows Update Agent. Corresponds to the JSON property windowsUpdate



2621
2622
2623
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2621

def windows_update
  @windows_update
end

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



2628
2629
2630
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2628

def yum
  @yum
end

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



2634
2635
2636
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2634

def zypper
  @zypper
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2641

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