@@ -1218,6 +1218,21 @@ class PatchConfig
12181218 # @return [String]
12191219 attr_accessor :reboot_config
12201220
1221+ # Optional. Enables enhanced reporting for the patch job: 1. Allows the patch
1222+ # job to skip unpatchable instances, reporting them as SKIPPED. An instance can
1223+ # be unpatchable for two reasons: a. The instance runs Container-Optimized OS (
1224+ # COS), which cannot be patched. b. The patch job's configuration prohibits
1225+ # patching on Managed Instance Groups (MIGs) through the PatchConfig.
1226+ # migInstancesAllowed field, and the instance is part of one. 2. The system
1227+ # reports the patch job as SUCCEEDED if it completes without errors, regardless
1228+ # of whether any instances were SKIPPED. 3. The system reports the patch job as
1229+ # COMPLETED_WITH_INACTIVE_VMS if it completes without errors, but some instances
1230+ # were INACTIVE and therefore not patched.
1231+ # Corresponds to the JSON property `skipUnpatchableVms`
1232+ # @return [Boolean]
1233+ attr_accessor :skip_unpatchable_vms
1234+ alias_method :skip_unpatchable_vms? , :skip_unpatchable_vms
1235+
12211236 # Windows patching is performed using the Windows Update Agent.
12221237 # Corresponds to the JSON property `windowsUpdate`
12231238 # @return [Google::Apis::OsconfigV1beta::WindowsUpdateSettings]
@@ -1248,6 +1263,7 @@ def update!(**args)
12481263 @post_step = args [ :post_step ] if args . key? ( :post_step )
12491264 @pre_step = args [ :pre_step ] if args . key? ( :pre_step )
12501265 @reboot_config = args [ :reboot_config ] if args . key? ( :reboot_config )
1266+ @skip_unpatchable_vms = args [ :skip_unpatchable_vms ] if args . key? ( :skip_unpatchable_vms )
12511267 @windows_update = args [ :windows_update ] if args . key? ( :windows_update )
12521268 @yum = args [ :yum ] if args . key? ( :yum )
12531269 @zypper = args [ :zypper ] if args . key? ( :zypper )
@@ -1660,6 +1676,11 @@ class PatchJobInstanceDetailsSummary
16601676 # @return [Fixnum]
16611677 attr_accessor :rebooting_instance_count
16621678
1679+ # Number of instances that were skipped during patching.
1680+ # Corresponds to the JSON property `skippedInstanceCount`
1681+ # @return [Fixnum]
1682+ attr_accessor :skipped_instance_count
1683+
16631684 # Number of instances that have started.
16641685 # Corresponds to the JSON property `startedInstanceCount`
16651686 # @return [Fixnum]
@@ -1697,6 +1718,7 @@ def update!(**args)
16971718 @post_patch_step_instance_count = args [ :post_patch_step_instance_count ] if args . key? ( :post_patch_step_instance_count )
16981719 @pre_patch_step_instance_count = args [ :pre_patch_step_instance_count ] if args . key? ( :pre_patch_step_instance_count )
16991720 @rebooting_instance_count = args [ :rebooting_instance_count ] if args . key? ( :rebooting_instance_count )
1721+ @skipped_instance_count = args [ :skipped_instance_count ] if args . key? ( :skipped_instance_count )
17001722 @started_instance_count = args [ :started_instance_count ] if args . key? ( :started_instance_count )
17011723 @succeeded_instance_count = args [ :succeeded_instance_count ] if args . key? ( :succeeded_instance_count )
17021724 @succeeded_reboot_required_instance_count = args [ :succeeded_reboot_required_instance_count ] if args . key? ( :succeeded_reboot_required_instance_count )
0 commit comments