Generated from protobuf message google.cloud.orgpolicy.v2.DeletePolicyRequest
Namespace
Google \ Cloud \ OrgPolicy \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. Name of the policy to delete. See the policy entry for naming rules.
↳ etag
string
Optional. The current etag of policy. If an etag is provided and does not match the current etag of the policy, deletion will be blocked and an ABORTED error will be returned.
getName
Required. Name of the policy to delete.
See the policy entry for naming rules.
Returns
Type
Description
string
setName
Required. Name of the policy to delete.
See the policy entry for naming rules.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getEtag
Optional. The current etag of policy. If an etag is provided and does not
match the current etag of the policy, deletion will be blocked and an
ABORTED error will be returned.
Returns
Type
Description
string
setEtag
Optional. The current etag of policy. If an etag is provided and does not
match the current etag of the policy, deletion will be blocked and an
ABORTED error will be returned.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
name
string
Required. Name of the policy to delete.
See the policy entry for naming rules. Please see
OrgPolicyClient::policyName() 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 Org Policy V2 Client - Class DeletePolicyRequest (1.2.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.2 (latest)](/php/docs/reference/cloud-org-policy/latest/V2.DeletePolicyRequest)\n- [1.2.1](/php/docs/reference/cloud-org-policy/1.2.1/V2.DeletePolicyRequest)\n- [1.1.3](/php/docs/reference/cloud-org-policy/1.1.3/V2.DeletePolicyRequest)\n- [1.0.0](/php/docs/reference/cloud-org-policy/1.0.0/V2.DeletePolicyRequest)\n- [0.7.0](/php/docs/reference/cloud-org-policy/0.7.0/V2.DeletePolicyRequest)\n- [0.6.5](/php/docs/reference/cloud-org-policy/0.6.5/V2.DeletePolicyRequest)\n- [0.5.3](/php/docs/reference/cloud-org-policy/0.5.3/V2.DeletePolicyRequest)\n- [0.4.2](/php/docs/reference/cloud-org-policy/0.4.2/V2.DeletePolicyRequest)\n- [0.3.7](/php/docs/reference/cloud-org-policy/0.3.7/V2.DeletePolicyRequest) \nReference documentation and code samples for the Google Cloud Org Policy V2 Client class DeletePolicyRequest.\n\nThe request sent to the [DeletePolicy](/php/docs/reference/cloud-org-policy/latest/V2.Client.OrgPolicyClient#_Google_Cloud_OrgPolicy_V2_Client_OrgPolicyClient__deletePolicy__) method.\n\nGenerated from protobuf message `google.cloud.orgpolicy.v2.DeletePolicyRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ OrgPolicy \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. Name of the policy to delete.\n\nSee the policy entry for naming rules.\n\n### setName\n\nRequired. Name of the policy to delete.\n\nSee the policy entry for naming rules.\n\n### getEtag\n\nOptional. The current etag of policy. If an etag is provided and does not\nmatch the current etag of the policy, deletion will be blocked and an\nABORTED error will be returned.\n\n### setEtag\n\nOptional. The current etag of policy. If an etag is provided and does not\nmatch the current etag of the policy, deletion will be blocked and an\nABORTED error will be returned.\n\n### static::build"]]