Optional. A identifier associated with the workload and underlying projects which allows for the break down of billing costs for a workload. The value provided for the identifier will add a label to the workload and contained projects with the identifier as the value.
getParent
Required. The resource name of the new Workload's parent.
Must be of the formorganizations/{org_id}/locations/{location_id}.
Returns
Type
Description
string
setParent
Required. The resource name of the new Workload's parent.
Must be of the formorganizations/{org_id}/locations/{location_id}.
Optional. A identifier associated with the workload and underlying projects which
allows for the break down of billing costs for a workload. The value
provided for the identifier will add a label to the workload and contained
projects with the identifier as the value.
Returns
Type
Description
string
setExternalId
Optional. A identifier associated with the workload and underlying projects which
allows for the break down of billing costs for a workload. The value
provided for the identifier will add a label to the workload and contained
projects with the identifier as the value.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameters
Name
Description
parent
string
Required. The resource name of the new Workload's parent.
Must be of the formorganizations/{org_id}/locations/{location_id}. Please seeAssuredWorkloadsServiceClient::locationName()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 Assured Workloads V1 Client - Class CreateWorkloadRequest (1.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-assured-workloads/latest/V1.CreateWorkloadRequest)\n- [1.0.4](/php/docs/reference/cloud-assured-workloads/1.0.4/V1.CreateWorkloadRequest)\n- [0.11.5](/php/docs/reference/cloud-assured-workloads/0.11.5/V1.CreateWorkloadRequest)\n- [0.10.2](/php/docs/reference/cloud-assured-workloads/0.10.2/V1.CreateWorkloadRequest)\n- [0.9.1](/php/docs/reference/cloud-assured-workloads/0.9.1/V1.CreateWorkloadRequest)\n- [0.8.3](/php/docs/reference/cloud-assured-workloads/0.8.3/V1.CreateWorkloadRequest)\n- [0.7.3](/php/docs/reference/cloud-assured-workloads/0.7.3/V1.CreateWorkloadRequest) \nReference documentation and code samples for the Google Cloud Assured Workloads V1 Client class CreateWorkloadRequest.\n\nRequest for creating a workload.\n\nGenerated from protobuf message `google.cloud.assuredworkloads.v1.CreateWorkloadRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AssuredWorkloads \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The resource name of the new Workload's parent.\n\nMust be of the form `organizations/{org_id}/locations/{location_id}`.\n\n### setParent\n\nRequired. The resource name of the new Workload's parent.\n\nMust be of the form `organizations/{org_id}/locations/{location_id}`.\n\n### getWorkload\n\nRequired. Assured Workload to create\n\n### hasWorkload\n\n### clearWorkload\n\n### setWorkload\n\nRequired. Assured Workload to create\n\n### getExternalId\n\nOptional. A identifier associated with the workload and underlying projects which\nallows for the break down of billing costs for a workload. The value\nprovided for the identifier will add a label to the workload and contained\nprojects with the identifier as the value.\n\n### setExternalId\n\nOptional. A identifier associated with the workload and underlying projects which\nallows for the break down of billing costs for a workload. The value\nprovided for the identifier will add a label to the workload and contained\nprojects with the identifier as the value.\n\n### static::build"]]