Cloud OS Config V1 API - Class Google::Cloud::OsConfig::V1::PatchDeployment (v1.6.1)

Reference documentation and code samples for the Cloud OS Config V1 API class Google::Cloud::OsConfig::V1::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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#create_time

defcreate_time()->::Google::Protobuf::Timestamp
Returns

#description

defdescription()->::String
Returns
  • (::String) — Optional. Description of the patch deployment. Length of the description is limited to 1024 characters.

#description=

defdescription=(value)->::String
Parameter
  • value (::String) — Optional. Description of the patch deployment. Length of the description is limited to 1024 characters.
Returns
  • (::String) — Optional. Description of the patch deployment. Length of the description is limited to 1024 characters.

#duration

defduration()->::Google::Protobuf::Duration
Returns

#duration=

defduration=(value)->::Google::Protobuf::Duration
Parameter
Returns

#instance_filter

definstance_filter()->::Google::Cloud::OsConfig::V1::PatchInstanceFilter
Returns

#instance_filter=

definstance_filter=(value)->::Google::Cloud::OsConfig::V1::PatchInstanceFilter
Parameter
Returns

#last_execute_time

deflast_execute_time()->::Google::Protobuf::Timestamp
Returns

#name

defname()->::String
Returns
  • (::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.

#name=

defname=(value)->::String
Parameter
  • value (::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.
Returns
  • (::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.

#one_time_schedule

defone_time_schedule()->::Google::Cloud::OsConfig::V1::OneTimeSchedule
Returns
  • (::Google::Cloud::OsConfig::V1::OneTimeSchedule) — Required. Schedule a one-time execution.

    Note: The following fields are mutually exclusive: one_time_schedule, recurring_schedule. If a field in that set is populated, all other fields in the set will automatically be cleared.

#one_time_schedule=

defone_time_schedule=(value)->::Google::Cloud::OsConfig::V1::OneTimeSchedule
Parameter
  • value (::Google::Cloud::OsConfig::V1::OneTimeSchedule) — Required. Schedule a one-time execution.

    Note: The following fields are mutually exclusive: one_time_schedule, recurring_schedule. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::OsConfig::V1::OneTimeSchedule) — Required. Schedule a one-time execution.

    Note: The following fields are mutually exclusive: one_time_schedule, recurring_schedule. If a field in that set is populated, all other fields in the set will automatically be cleared.

#patch_config

defpatch_config()->::Google::Cloud::OsConfig::V1::PatchConfig
Returns

#patch_config=

defpatch_config=(value)->::Google::Cloud::OsConfig::V1::PatchConfig
Parameter
Returns

#recurring_schedule

defrecurring_schedule()->::Google::Cloud::OsConfig::V1::RecurringSchedule
Returns
  • (::Google::Cloud::OsConfig::V1::RecurringSchedule) — Required. Schedule recurring executions.

    Note: The following fields are mutually exclusive: recurring_schedule, one_time_schedule. If a field in that set is populated, all other fields in the set will automatically be cleared.

#recurring_schedule=

defrecurring_schedule=(value)->::Google::Cloud::OsConfig::V1::RecurringSchedule
Parameter
  • value (::Google::Cloud::OsConfig::V1::RecurringSchedule) — Required. Schedule recurring executions.

    Note: The following fields are mutually exclusive: recurring_schedule, one_time_schedule. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::OsConfig::V1::RecurringSchedule) — Required. Schedule recurring executions.

    Note: The following fields are mutually exclusive: recurring_schedule, one_time_schedule. If a field in that set is populated, all other fields in the set will automatically be cleared.

#rollout

defrollout()->::Google::Cloud::OsConfig::V1::PatchRollout
Returns

#rollout=

defrollout=(value)->::Google::Cloud::OsConfig::V1::PatchRollout
Parameter
Returns

#state

defstate()->::Google::Cloud::OsConfig::V1::PatchDeployment::State
Returns

#update_time

defupdate_time()->::Google::Protobuf::Timestamp
Returns

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.