@@ -2809,6 +2809,21 @@ class PatchConfig
28092809 # @return [String]
28102810 attr_accessor :reboot_config
28112811
2812+ # Optional. Enables enhanced reporting for the patch job: 1. Allows the patch
2813+ # job to skip unpatchable instances, reporting them as SKIPPED. An instance can
2814+ # be unpatchable for two reasons: a. The instance runs Container-Optimized OS (
2815+ # COS), which cannot be patched. b. The patch job's configuration prohibits
2816+ # patching on Managed Instance Groups (MIGs) through the PatchConfig.
2817+ # migInstancesAllowed field, and the instance is part of one. 2. The system
2818+ # reports the patch job as SUCCEEDED if it completes without errors, regardless
2819+ # of whether any instances were SKIPPED. 3. The system reports the patch job as
2820+ # COMPLETED_WITH_INACTIVE_VMS if it completes without errors, but some instances
2821+ # were INACTIVE and therefore not patched.
2822+ # Corresponds to the JSON property `skipUnpatchableVms`
2823+ # @return [Boolean]
2824+ attr_accessor :skip_unpatchable_vms
2825+ alias_method :skip_unpatchable_vms? , :skip_unpatchable_vms
2826+
28122827 # Windows patching is performed using the Windows Update Agent.
28132828 # Corresponds to the JSON property `windowsUpdate`
28142829 # @return [Google::Apis::OsconfigV1::WindowsUpdateSettings]
@@ -2839,6 +2854,7 @@ def update!(**args)
28392854 @post_step = args [ :post_step ] if args . key? ( :post_step )
28402855 @pre_step = args [ :pre_step ] if args . key? ( :pre_step )
28412856 @reboot_config = args [ :reboot_config ] if args . key? ( :reboot_config )
2857+ @skip_unpatchable_vms = args [ :skip_unpatchable_vms ] if args . key? ( :skip_unpatchable_vms )
28422858 @windows_update = args [ :windows_update ] if args . key? ( :windows_update )
28432859 @yum = args [ :yum ] if args . key? ( :yum )
28442860 @zypper = args [ :zypper ] if args . key? ( :zypper )
@@ -3255,6 +3271,11 @@ class PatchJobInstanceDetailsSummary
32553271 # @return [Fixnum]
32563272 attr_accessor :rebooting_instance_count
32573273
3274+ # Number of instances that were skipped during patching.
3275+ # Corresponds to the JSON property `skippedInstanceCount`
3276+ # @return [Fixnum]
3277+ attr_accessor :skipped_instance_count
3278+
32583279 # Number of instances that have started.
32593280 # Corresponds to the JSON property `startedInstanceCount`
32603281 # @return [Fixnum]
@@ -3292,6 +3313,7 @@ def update!(**args)
32923313 @post_patch_step_instance_count = args [ :post_patch_step_instance_count ] if args . key? ( :post_patch_step_instance_count )
32933314 @pre_patch_step_instance_count = args [ :pre_patch_step_instance_count ] if args . key? ( :pre_patch_step_instance_count )
32943315 @rebooting_instance_count = args [ :rebooting_instance_count ] if args . key? ( :rebooting_instance_count )
3316+ @skipped_instance_count = args [ :skipped_instance_count ] if args . key? ( :skipped_instance_count )
32953317 @started_instance_count = args [ :started_instance_count ] if args . key? ( :started_instance_count )
32963318 @succeeded_instance_count = args [ :succeeded_instance_count ] if args . key? ( :succeeded_instance_count )
32973319 @succeeded_reboot_required_instance_count = args [ :succeeded_reboot_required_instance_count ] if args . key? ( :succeeded_reboot_required_instance_count )
0 commit comments