Required. A new or updated policy value. The service will overwrite the policy name field with the resource name in the request URL, in the format projects/*/policy.
getPolicy
Required. A new or updated policy value. The service will
overwrite the policy name field with the resource name in
the request URL, in the format projects/*/policy.
Required. A new or updated policy value. The service will
overwrite the policy name field with the resource name in
the request URL, in the format projects/*/policy.
Required. A new or updated policy value. The service will
overwrite the policy name field with the resource name in
the request URL, in the format projects/*/policy.
[[["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 Binary Authorization V1 Client - Class UpdatePolicyRequest (1.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-binary-authorization/latest/V1.UpdatePolicyRequest)\n- [1.0.4](/php/docs/reference/cloud-binary-authorization/1.0.4/V1.UpdatePolicyRequest)\n- [0.8.7](/php/docs/reference/cloud-binary-authorization/0.8.7/V1.UpdatePolicyRequest)\n- [0.7.0](/php/docs/reference/cloud-binary-authorization/0.7.0/V1.UpdatePolicyRequest)\n- [0.6.1](/php/docs/reference/cloud-binary-authorization/0.6.1/V1.UpdatePolicyRequest)\n- [0.5.13](/php/docs/reference/cloud-binary-authorization/0.5.13/V1.UpdatePolicyRequest) \nReference documentation and code samples for the Google Cloud Binary Authorization V1 Client class UpdatePolicyRequest.\n\nRequest message for BinauthzManagementService.UpdatePolicy.\n\nGenerated from protobuf message `google.cloud.binaryauthorization.v1.UpdatePolicyRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ BinaryAuthorization \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPolicy\n\nRequired. A new or updated [policy](/php/docs/reference/cloud-binary-authorization/latest/V1.Policy) value. The service will\noverwrite the [policy name](/php/docs/reference/cloud-binary-authorization/latest/V1.Policy#_Google_Cloud_BinaryAuthorization_V1_Policy__getName__) field with the resource name in\nthe request URL, in the format `projects/*/policy`.\n\n### hasPolicy\n\n### clearPolicy\n\n### setPolicy\n\nRequired. A new or updated [policy](/php/docs/reference/cloud-binary-authorization/latest/V1.Policy) value. The service will\noverwrite the [policy name](/php/docs/reference/cloud-binary-authorization/latest/V1.Policy#_Google_Cloud_BinaryAuthorization_V1_Policy__getName__) field with the resource name in\nthe request URL, in the format `projects/*/policy`.\n\n### static::build"]]