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
def create_time() -> ::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — Output only. Time the patch deployment was created. Timestamp is in RFC3339 text format.
#description
def description() -> ::String- (::String) — Optional. Description of the patch deployment. Length of the description is limited to 1024 characters.
#description=
def description=(value) -> ::String- value (::String) — Optional. Description of the patch deployment. Length of the description is limited to 1024 characters.
- (::String) — Optional. Description of the patch deployment. Length of the description is limited to 1024 characters.
#duration
def duration() -> ::Google::Protobuf::Duration- (::Google::Protobuf::Duration) — Optional. Duration of the patch. After the duration ends, the patch times out.
#duration=
def duration=(value) -> ::Google::Protobuf::Duration- value (::Google::Protobuf::Duration) — Optional. Duration of the patch. After the duration ends, the patch times out.
- (::Google::Protobuf::Duration) — Optional. Duration of the patch. After the duration ends, the patch times out.
#instance_filter
def instance_filter() -> ::Google::Cloud::OsConfig::V1::PatchInstanceFilter- (::Google::Cloud::OsConfig::V1::PatchInstanceFilter) — Required. VM instances to patch.
#instance_filter=
def instance_filter=(value) -> ::Google::Cloud::OsConfig::V1::PatchInstanceFilter- value (::Google::Cloud::OsConfig::V1::PatchInstanceFilter) — Required. VM instances to patch.
- (::Google::Cloud::OsConfig::V1::PatchInstanceFilter) — Required. VM instances to patch.
#last_execute_time
def last_execute_time() -> ::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — Output only. The last time a patch job was started by this deployment. Timestamp is in RFC3339 text format.
#name
def name() -> ::String-
(::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=
def name=(value) -> ::String-
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.
-
(::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
def one_time_schedule() -> ::Google::Cloud::OsConfig::V1::OneTimeSchedule-
(::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=
def one_time_schedule=(value) -> ::Google::Cloud::OsConfig::V1::OneTimeSchedule-
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.
-
(::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
def patch_config() -> ::Google::Cloud::OsConfig::V1::PatchConfig- (::Google::Cloud::OsConfig::V1::PatchConfig) — Optional. Patch configuration that is applied.
#patch_config=
def patch_config=(value) -> ::Google::Cloud::OsConfig::V1::PatchConfig- value (::Google::Cloud::OsConfig::V1::PatchConfig) — Optional. Patch configuration that is applied.
- (::Google::Cloud::OsConfig::V1::PatchConfig) — Optional. Patch configuration that is applied.
#recurring_schedule
def recurring_schedule() -> ::Google::Cloud::OsConfig::V1::RecurringSchedule-
(::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=
def recurring_schedule=(value) -> ::Google::Cloud::OsConfig::V1::RecurringSchedule-
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.
-
(::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
def rollout() -> ::Google::Cloud::OsConfig::V1::PatchRollout- (::Google::Cloud::OsConfig::V1::PatchRollout) — Optional. Rollout strategy of the patch job.
#rollout=
def rollout=(value) -> ::Google::Cloud::OsConfig::V1::PatchRollout- value (::Google::Cloud::OsConfig::V1::PatchRollout) — Optional. Rollout strategy of the patch job.
- (::Google::Cloud::OsConfig::V1::PatchRollout) — Optional. Rollout strategy of the patch job.
#state
def state() -> ::Google::Cloud::OsConfig::V1::PatchDeployment::State- (::Google::Cloud::OsConfig::V1::PatchDeployment::State) — Output only. Current state of the patch deployment.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — Output only. Time the patch deployment was last updated. Timestamp is in RFC3339 text format.