Google Cloud OsConfig V1 Client - Class CreatePatchDeploymentRequest (1.2.2)

Reference documentation and code samples for the Google Cloud OsConfig V1 Client class CreatePatchDeploymentRequest.

A request message for creating a patch deployment.

Generated from protobuf message google.cloud.osconfig.v1.CreatePatchDeploymentRequest

Namespace

Google \ Cloud \ OsConfig \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The project to apply this patch deployment to in the form projects/*.

↳ patch_deployment_id string

Required. A name for the patch deployment in the project. When creating a name the following rules apply: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the project.

↳ patch_deployment Google\Cloud\OsConfig\V1\PatchDeployment

Required. The patch deployment to create.

getParent

Required. The project to apply this patch deployment to in the form projects/*.

Returns
TypeDescription
string

setParent

Required. The project to apply this patch deployment to in the form projects/*.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPatchDeploymentId

Required. A name for the patch deployment in the project. When creating a name the following rules apply:

  • Must contain only lowercase letters, numbers, and hyphens.

  • Must start with a letter.

  • Must be between 1-63 characters.
  • Must end with a number or a letter.
  • Must be unique within the project.
Returns
TypeDescription
string

setPatchDeploymentId

Required. A name for the patch deployment in the project. When creating a name the following rules apply:

  • Must contain only lowercase letters, numbers, and hyphens.

  • Must start with a letter.

  • Must be between 1-63 characters.
  • Must end with a number or a letter.
  • Must be unique within the project.
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPatchDeployment

Required. The patch deployment to create.

Returns
TypeDescription
Google\Cloud\OsConfig\V1\PatchDeployment|null

hasPatchDeployment

clearPatchDeployment

setPatchDeployment

Required. The patch deployment to create.

Parameter
NameDescription
var Google\Cloud\OsConfig\V1\PatchDeployment
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. The project to apply this patch deployment to in the form projects/*. Please see Google\Cloud\OsConfig\V1\OsConfigServiceClient::projectName() for help formatting this field.

patchDeployment Google\Cloud\OsConfig\V1\PatchDeployment

Required. The patch deployment to create.

patchDeploymentId string

Required. A name for the patch deployment in the project. When creating a name the following rules apply:

  • Must contain only lowercase letters, numbers, and hyphens.
  • Must start with a letter.
  • Must be between 1-63 characters.
  • Must end with a number or a letter.
  • Must be unique within the project.
Returns
TypeDescription
Google\Cloud\OsConfig\V1\CreatePatchDeploymentRequest