Class: Google::Apis::OsconfigV1beta::PatchDeployment

Inherits:
Object
  • Object
show all
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 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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PatchDeployment

Returns a new instance of PatchDeployment.



1257
1258
1259
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1257

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

Instance Attribute Details

#create_timeString

Output only. Time the patch deployment was created. Timestamp is in RFC3339 text format. Corresponds to the JSON property createTime

Returns:

  • (String)


1189
1190
1191
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1189

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


1195
1196
1197
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1195

def description
  @description
end

#durationString

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

Returns:

  • (String)


1200
1201
1202
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1200

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



1207
1208
1209
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1207

def instance_filter
  @instance_filter
end

#last_execute_timeString

Output only. The last time a patch job was started by this deployment. Timestamp is in RFC3339 text format. Corresponds to the JSON property lastExecuteTime

Returns:

  • (String)


1213
1214
1215
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1213

def last_execute_time
  @last_execute_time
end

#nameString

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 propertyname`

Returns:

  • (String)


1221
1222
1223
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1221

def name
  @name
end

#one_time_scheduleGoogle::Apis::OsconfigV1beta::OneTimeSchedule

Sets the time for a one time patch deployment. Timestamp is in RFC3339 text format. Corresponds to the JSON property oneTimeSchedule



1227
1228
1229
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1227

def one_time_schedule
  @one_time_schedule
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



1233
1234
1235
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1233

def patch_config
  @patch_config
end

#recurring_scheduleGoogle::Apis::OsconfigV1beta::RecurringSchedule

Sets the time for recurring patch deployments. Corresponds to the JSON property recurringSchedule



1238
1239
1240
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1238

def recurring_schedule
  @recurring_schedule
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



1244
1245
1246
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1244

def rollout
  @rollout
end

#stateString

Output only. Current state of the patch deployment. Corresponds to the JSON property state

Returns:

  • (String)


1249
1250
1251
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1249

def state
  @state
end

#update_timeString

Output only. Time the patch deployment was last updated. Timestamp is in RFC3339 text format. Corresponds to the JSON property updateTime

Returns:

  • (String)


1255
1256
1257
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1255

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1262

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)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
end