class Google::Apis::OsconfigV1beta::PatchDeployment

Patch deployments are configurations that individual patch jobs use to complete a patch. These configurations include instance filter, package repository settings, and a schedule. For more information about creating and managing patch deployments, see [Scheduling patch jobs](cloud.google. com/compute/docs/os-patch-management/schedule-patch-jobs).

Attributes

create_time[RW]

Output only. Time the patch deployment was created. Timestamp is in [RFC3339]( www.ietf.org/rfc/rfc3339.txt) text format. Corresponds to the JSON property `createTime` @return [String]

description[RW]

Optional. Description of the patch deployment. Length of the description is limited to 1024 characters. Corresponds to the JSON property `description` @return [String]

duration[RW]

Optional. Duration of the patch. After the duration ends, the patch times out. Corresponds to the JSON property `duration` @return [String]

instance_filter[RW]

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` @return [Google::Apis::OsconfigV1beta::PatchInstanceFilter]

last_execute_time[RW]

Output only. The last time a patch job was started by this deployment. Timestamp is in [RFC3339](www.ietf.org/rfc/rfc3339.txt) text format. Corresponds to the JSON property `lastExecuteTime` @return [String]

name[RW]

Unique name for the patch deployment resource in a project. The patch deployment name is in the form: `projects/`project_id`/patchDeployments/` patch_deployment_id“. This field is ignored when you create a new patch deployment. Corresponds to the JSON property `name` @return [String]

one_time_schedule[RW]

Sets the time for a one time patch deployment. Timestamp is in [RFC3339](https: //www.ietf.org/rfc/rfc3339.txt) text format. Corresponds to the JSON property `oneTimeSchedule` @return [Google::Apis::OsconfigV1beta::OneTimeSchedule]

patch_config[RW]

Patch configuration specifications. Contains details on how to apply the patch( es) to a VM instance. Corresponds to the JSON property `patchConfig` @return [Google::Apis::OsconfigV1beta::PatchConfig]

recurring_schedule[RW]

Sets the time for recurring patch deployments. Corresponds to the JSON property `recurringSchedule` @return [Google::Apis::OsconfigV1beta::RecurringSchedule]

rollout[RW]

Patch rollout configuration specifications. Contains details on the concurrency control when applying patch(es) to all targeted VMs. Corresponds to the JSON property `rollout` @return [Google::Apis::OsconfigV1beta::PatchRollout]

update_time[RW]

Output only. Time the patch deployment was last updated. Timestamp is in [ RFC3339](www.ietf.org/rfc/rfc3339.txt) text format. Corresponds to the JSON property `updateTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/osconfig_v1beta/classes.rb, line 1141
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/osconfig_v1beta/classes.rb, line 1146
def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @duration = args[:duration] if args.key?(:duration)
  @instance_filter = args[:instance_filter] if args.key?(:instance_filter)
  @last_execute_time = args[:last_execute_time] if args.key?(:last_execute_time)
  @name = args[:name] if args.key?(:name)
  @one_time_schedule = args[:one_time_schedule] if args.key?(:one_time_schedule)
  @patch_config = args[:patch_config] if args.key?(:patch_config)
  @recurring_schedule = args[:recurring_schedule] if args.key?(:recurring_schedule)
  @rollout = args[:rollout] if args.key?(:rollout)
  @update_time = args[:update_time] if args.key?(:update_time)
end