If this is provided, it must match the server's etag.
Returns
Type
Description
string
setEtag
Optional. The etag of the workload.
If this is provided, it must match the server's etag.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
name
string
Required. Thenamefield is used to identify the workload.
Format:
organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
Please seeAssuredWorkloadsServiceClient::workloadName()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 DeleteWorkloadRequest (1.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-assured-workloads/latest/V1.DeleteWorkloadRequest)\n- [1.0.4](/php/docs/reference/cloud-assured-workloads/1.0.4/V1.DeleteWorkloadRequest)\n- [0.11.5](/php/docs/reference/cloud-assured-workloads/0.11.5/V1.DeleteWorkloadRequest)\n- [0.10.2](/php/docs/reference/cloud-assured-workloads/0.10.2/V1.DeleteWorkloadRequest)\n- [0.9.1](/php/docs/reference/cloud-assured-workloads/0.9.1/V1.DeleteWorkloadRequest)\n- [0.8.3](/php/docs/reference/cloud-assured-workloads/0.8.3/V1.DeleteWorkloadRequest)\n- [0.7.3](/php/docs/reference/cloud-assured-workloads/0.7.3/V1.DeleteWorkloadRequest) \nReference documentation and code samples for the Google Cloud Assured Workloads V1 Client class DeleteWorkloadRequest.\n\nRequest for deleting a Workload.\n\nGenerated from protobuf message `google.cloud.assuredworkloads.v1.DeleteWorkloadRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AssuredWorkloads \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The `name` field is used to identify the workload.\n\nFormat:\norganizations/{org_id}/locations/{location_id}/workloads/{workload_id}\n\n### setName\n\nRequired. The `name` field is used to identify the workload.\n\nFormat:\norganizations/{org_id}/locations/{location_id}/workloads/{workload_id}\n\n### getEtag\n\nOptional. The etag of the workload.\n\nIf this is provided, it must match the server's etag.\n\n### setEtag\n\nOptional. The etag of the workload.\n\nIf this is provided, it must match the server's etag.\n\n### static::build"]]