Google Cloud Binary Authorization V1beta1 Client - Class UpdatePolicyRequest (0.5.13)

Reference documentation and code samples for the Google Cloud Binary Authorization V1beta1 Client class UpdatePolicyRequest.

Request message for BinauthzManagementService.UpdatePolicy.

Generated from protobuf message google.cloud.binaryauthorization.v1beta1.UpdatePolicyRequest

Namespace

Google \ Cloud \ BinaryAuthorization \ V1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ policy Google\Cloud\BinaryAuthorization\V1beta1\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.

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.

Returns
TypeDescription
Google\Cloud\BinaryAuthorization\V1beta1\Policy|null

hasPolicy

clearPolicy

setPolicy

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.

Parameter
NameDescription
var Google\Cloud\BinaryAuthorization\V1beta1\Policy
Returns
TypeDescription
$this