Reference documentation and code samples for the Google Cloud OsConfig V1 Client class 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 .
Generated from protobuf message google.cloud.osconfig.v1.PatchDeployment
Namespace
Google \ Cloud \ OsConfig \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ 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.
↳ description
string
Optional. Description of the patch deployment. Length of the description is limited to 1024 characters.
↳ instance_filter
↳ patch_config
↳ duration
Google\Protobuf\Duration
Optional. Duration of the patch. After the duration ends, the patch times out.
↳ one_time_schedule
↳ recurring_schedule
↳ create_time
Google\Protobuf\Timestamp
Output only. Time the patch deployment was created. Timestamp is in RFC3339 text format.
↳ update_time
Google\Protobuf\Timestamp
Output only. Time the patch deployment was last updated. Timestamp is in RFC3339 text format.
↳ last_execute_time
Google\Protobuf\Timestamp
Output only. The last time a patch job was started by this deployment. Timestamp is in RFC3339 text format.
↳ rollout
↳ state
int
Output only. Current state of the patch deployment.
getName
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
setName
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.
var
string
$this
getDescription
Optional. Description of the patch deployment. Length of the description is limited to 1024 characters.
string
setDescription
Optional. Description of the patch deployment. Length of the description is limited to 1024 characters.
var
string
$this
getInstanceFilter
Required. VM instances to patch.
hasInstanceFilter
clearInstanceFilter
setInstanceFilter
Required. VM instances to patch.
$this
getPatchConfig
Optional. Patch configuration that is applied.
hasPatchConfig
clearPatchConfig
setPatchConfig
Optional. Patch configuration that is applied.
$this
getDuration
Optional. Duration of the patch. After the duration ends, the patch times out.
hasDuration
clearDuration
setDuration
Optional. Duration of the patch. After the duration ends, the patch times out.
$this
getOneTimeSchedule
Required. Schedule a one-time execution.
hasOneTimeSchedule
setOneTimeSchedule
Required. Schedule a one-time execution.
$this
getRecurringSchedule
Required. Schedule recurring executions.
hasRecurringSchedule
setRecurringSchedule
Required. Schedule recurring executions.
$this
getCreateTime
Output only. Time the patch deployment was created. Timestamp is in RFC3339 text format.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Time the patch deployment was created. Timestamp is in RFC3339 text format.
$this
getUpdateTime
Output only. Time the patch deployment was last updated. Timestamp is in RFC3339 text format.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Time the patch deployment was last updated. Timestamp is in RFC3339 text format.
$this
getLastExecuteTime
Output only. The last time a patch job was started by this deployment.
Timestamp is in RFC3339 text format.
hasLastExecuteTime
clearLastExecuteTime
setLastExecuteTime
Output only. The last time a patch job was started by this deployment.
Timestamp is in RFC3339 text format.
$this
getRollout
Optional. Rollout strategy of the patch job.
hasRollout
clearRollout
setRollout
Optional. Rollout strategy of the patch job.
$this
getState
Output only. Current state of the patch deployment.
int
setState
Output only. Current state of the patch deployment.
var
int
$this
getSchedule
string