Class: Google::Apis::OsconfigV1beta::PatchConfig

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 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.



1101
1102
1103
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1101

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

Instance Attribute Details

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



1055
1056
1057
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1055

def apt
  @apt
end

#gooGoogle::Apis::OsconfigV1beta::GooSettings

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



1060
1061
1062
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1060

def goo
  @goo
end

#mig_instances_allowedBoolean Also known as: mig_instances_allowed?

Allows the patch job to run on Managed instance groups (MIGs). Corresponds to the JSON property migInstancesAllowed

Returns:

  • (Boolean)


1065
1066
1067
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1065

def mig_instances_allowed
  @mig_instances_allowed
end

#post_stepGoogle::Apis::OsconfigV1beta::ExecStep

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



1071
1072
1073
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1071

def post_step
  @post_step
end

#pre_stepGoogle::Apis::OsconfigV1beta::ExecStep

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



1076
1077
1078
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1076

def pre_step
  @pre_step
end

#reboot_configString

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

Returns:

  • (String)


1081
1082
1083
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1081

def reboot_config
  @reboot_config
end

#windows_updateGoogle::Apis::OsconfigV1beta::WindowsUpdateSettings

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



1086
1087
1088
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1086

def windows_update
  @windows_update
end

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



1093
1094
1095
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1093

def yum
  @yum
end

#zypperGoogle::Apis::OsconfigV1beta::ZypperSettings

Zypper patching is performed by running zypper patch. See also https://en. opensuse.org/SDB:Zypper_manual. Corresponds to the JSON property zypper



1099
1100
1101
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1099

def zypper
  @zypper
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1106

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