Class: Google::Apis::OsconfigV1beta::PatchDeployment
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::PatchDeployment
- 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
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
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Optional.
-
#duration ⇒ String
Optional.
-
#instance_filter ⇒ Google::Apis::OsconfigV1beta::PatchInstanceFilter
A filter to target VM instances for patching.
-
#last_execute_time ⇒ String
Output only.
-
#name ⇒ String
Unique name for the patch deployment resource in a project.
-
#one_time_schedule ⇒ Google::Apis::OsconfigV1beta::OneTimeSchedule
Sets the time for a one time patch deployment.
-
#patch_config ⇒ Google::Apis::OsconfigV1beta::PatchConfig
Patch configuration specifications.
-
#recurring_schedule ⇒ Google::Apis::OsconfigV1beta::RecurringSchedule
Sets the time for recurring patch deployments.
-
#rollout ⇒ Google::Apis::OsconfigV1beta::PatchRollout
Patch rollout configuration specifications.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PatchDeployment
constructor
A new instance of PatchDeployment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PatchDeployment
Returns a new instance of PatchDeployment.
1514 1515 1516 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1514 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Time the patch deployment was created. Timestamp is in RFC3339 text format.
Corresponds to the JSON property createTime
1451 1452 1453 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1451 def create_time @create_time end |
#description ⇒ String
Optional. Description of the patch deployment. Length of the description is
limited to 1024 characters.
Corresponds to the JSON property description
1457 1458 1459 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1457 def description @description end |
#duration ⇒ String
Optional. Duration of the patch. After the duration ends, the patch times out.
Corresponds to the JSON property duration
1462 1463 1464 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1462 def duration @duration end |
#instance_filter ⇒ Google::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
1469 1470 1471 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1469 def instance_filter @instance_filter end |
#last_execute_time ⇒ String
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
1475 1476 1477 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1475 def last_execute_time @last_execute_time end |
#name ⇒ String
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`
1483 1484 1485 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1483 def name @name end |
#one_time_schedule ⇒ Google::Apis::OsconfigV1beta::OneTimeSchedule
Sets the time for a one time patch deployment. Timestamp is in RFC3339 text format.
Corresponds to the JSON property oneTimeSchedule
1489 1490 1491 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1489 def one_time_schedule @one_time_schedule end |
#patch_config ⇒ Google::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
1495 1496 1497 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1495 def patch_config @patch_config end |
#recurring_schedule ⇒ Google::Apis::OsconfigV1beta::RecurringSchedule
Sets the time for recurring patch deployments.
Corresponds to the JSON property recurringSchedule
1500 1501 1502 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1500 def recurring_schedule @recurring_schedule end |
#rollout ⇒ Google::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
1506 1507 1508 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1506 def rollout @rollout end |
#update_time ⇒ String
Output only. Time the patch deployment was last updated. Timestamp is in
RFC3339 text format.
Corresponds to the JSON property updateTime
1512 1513 1514 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1512 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1519 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 |