Class: Google::Apis::OsconfigV1beta::ExecutePatchJobRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/osconfig_v1beta/classes.rb,
generated/google/apis/osconfig_v1beta/representations.rb,
generated/google/apis/osconfig_v1beta/representations.rb

Overview

A request message to initiate patching across Compute Engine instances.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExecutePatchJobRequest

Returns a new instance of ExecutePatchJobRequest.



487
488
489
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 487

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

Instance Attribute Details

#descriptionString

Description of the patch job. Length of the description is limited to 1024 characters. Corresponds to the JSON property description

Returns:

  • (String)


450
451
452
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 450

def description
  @description
end

#display_nameString

Display name for this patch job. This does not have to be unique. Corresponds to the JSON property displayName

Returns:

  • (String)


455
456
457
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 455

def display_name
  @display_name
end

#dry_runBoolean Also known as: dry_run?

If this patch is a dry-run only, instances are contacted but will do nothing. Corresponds to the JSON property dryRun

Returns:

  • (Boolean)


460
461
462
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 460

def dry_run
  @dry_run
end

#durationString

Duration of the patch job. After the duration ends, the patch job times out. Corresponds to the JSON property duration

Returns:

  • (String)


466
467
468
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 466

def duration
  @duration
end

#instance_filterGoogle::Apis::OsconfigV1beta::PatchInstanceFilter

A filter to target VM instances for patching. The targeted VMs must meet all criteria specified. So if both labels and zones are specified, the patch job targets only VMs with those labels and in those zones. Corresponds to the JSON property instanceFilter



473
474
475
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 473

def instance_filter
  @instance_filter
end

#patch_configGoogle::Apis::OsconfigV1beta::PatchConfig

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



479
480
481
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 479

def patch_config
  @patch_config
end

#rolloutGoogle::Apis::OsconfigV1beta::PatchRollout

Patch rollout configuration specifications. Contains details on the concurrency control when applying patch(es) to all targeted VMs. Corresponds to the JSON property rollout



485
486
487
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 485

def rollout
  @rollout
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



492
493
494
495
496
497
498
499
500
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 492

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @dry_run = args[:dry_run] if args.key?(:dry_run)
  @duration = args[:duration] if args.key?(:duration)
  @instance_filter = args[:instance_filter] if args.key?(:instance_filter)
  @patch_config = args[:patch_config] if args.key?(:patch_config)
  @rollout = args[:rollout] if args.key?(:rollout)
end