Class: Google::Apis::OsconfigV1beta::PatchConfig
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::PatchConfig
- 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
-
#apt ⇒ Google::Apis::OsconfigV1beta::AptSettings
Apt patching is completed by executing
apt-get update && apt-get upgrade. -
#goo ⇒ Google::Apis::OsconfigV1beta::GooSettings
Googet patching is performed by running
googet update. -
#post_step ⇒ Google::Apis::OsconfigV1beta::ExecStep
A step that runs an executable for a PatchJob.
-
#pre_step ⇒ Google::Apis::OsconfigV1beta::ExecStep
A step that runs an executable for a PatchJob.
-
#reboot_config ⇒ String
Post-patch reboot settings.
-
#windows_update ⇒ Google::Apis::OsconfigV1beta::WindowsUpdateSettings
Windows patching is performed using the Windows Update Agent.
-
#yum ⇒ Google::Apis::OsconfigV1beta::YumSettings
Yum patching is performed by executing
yum update. -
#zypper ⇒ Google::Apis::OsconfigV1beta::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.
1049 1050 1051 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1049 def initialize(**args) update!(**args) end |
Instance Attribute Details
#apt ⇒ Google::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
1009 1010 1011 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1009 def apt @apt end |
#goo ⇒ Google::Apis::OsconfigV1beta::GooSettings
Googet patching is performed by running googet update.
Corresponds to the JSON property goo
1014 1015 1016 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1014 def goo @goo end |
#post_step ⇒ Google::Apis::OsconfigV1beta::ExecStep
A step that runs an executable for a PatchJob.
Corresponds to the JSON property postStep
1019 1020 1021 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1019 def post_step @post_step end |
#pre_step ⇒ Google::Apis::OsconfigV1beta::ExecStep
A step that runs an executable for a PatchJob.
Corresponds to the JSON property preStep
1024 1025 1026 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1024 def pre_step @pre_step end |
#reboot_config ⇒ String
Post-patch reboot settings.
Corresponds to the JSON property rebootConfig
1029 1030 1031 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1029 def reboot_config @reboot_config end |
#windows_update ⇒ Google::Apis::OsconfigV1beta::WindowsUpdateSettings
Windows patching is performed using the Windows Update Agent.
Corresponds to the JSON property windowsUpdate
1034 1035 1036 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1034 def windows_update @windows_update end |
#yum ⇒ Google::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
1041 1042 1043 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1041 def yum @yum end |
#zypper ⇒ Google::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
1047 1048 1049 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1047 def zypper @zypper end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 |
# 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 |