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 messagegoogle.cloud.osconfig.v1.CreatePatchDeploymentRequest
Namespace
Google \ Cloud \ OsConfig \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The project to apply this patch deployment to in the formprojects/*.
↳ 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.
Required. The project to apply this patch deployment to in the formprojects/*. Please seeOsConfigServiceClient::projectName()for help formatting this field.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud OsConfig V1 Client - Class CreatePatchDeploymentRequest (2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/php/docs/reference/cloud-osconfig/latest/V1.CreatePatchDeploymentRequest)\n- [2.0.5](/php/docs/reference/cloud-osconfig/2.0.5/V1.CreatePatchDeploymentRequest)\n- [1.3.5](/php/docs/reference/cloud-osconfig/1.3.5/V1.CreatePatchDeploymentRequest)\n- [1.2.2](/php/docs/reference/cloud-osconfig/1.2.2/V1.CreatePatchDeploymentRequest)\n- [1.1.1](/php/docs/reference/cloud-osconfig/1.1.1/V1.CreatePatchDeploymentRequest)\n- [1.0.5](/php/docs/reference/cloud-osconfig/1.0.5/V1.CreatePatchDeploymentRequest) \nReference documentation and code samples for the Google Cloud OsConfig V1 Client class CreatePatchDeploymentRequest.\n\nA request message for creating a patch deployment.\n\nGenerated from protobuf message `google.cloud.osconfig.v1.CreatePatchDeploymentRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ OsConfig \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The project to apply this patch deployment to in the form\n`projects/*`.\n\n### setParent\n\nRequired. The project to apply this patch deployment to in the form\n`projects/*`.\n\n### getPatchDeploymentId\n\nRequired. A name for the patch deployment in the project. When creating a\nname the following rules apply:\n\n- Must contain only lowercase letters, numbers, and hyphens.\n\n- Must start with a letter.\n\n- Must be between 1-63 characters.\n- Must end with a number or a letter.\n- Must be unique within the project.\n\n### setPatchDeploymentId\n\nRequired. A name for the patch deployment in the project. When creating a\nname the following rules apply:\n\n- Must contain only lowercase letters, numbers, and hyphens.\n\n- Must start with a letter.\n\n- Must be between 1-63 characters.\n- Must end with a number or a letter.\n- Must be unique within the project.\n\n### getPatchDeployment\n\nRequired. The patch deployment to create.\n\n### hasPatchDeployment\n\n### clearPatchDeployment\n\n### setPatchDeployment\n\nRequired. The patch deployment to create.\n\n### static::build"]]