Google Cloud Binary Authorization V1 Client - Class UpdatePolicyRequest (1.1.0)

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

Request message for BinauthzManagementService.UpdatePolicy.

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

Namespace

Google \ Cloud \ BinaryAuthorization \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ policy 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
Type Description
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
Name Description
var Policy
Returns
Type Description
$this

static::build

Parameter
Name Description
policy 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.

Returns
Type Description
UpdatePolicyRequest

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.