Google Cloud Binary Authorization V1 Client - Class GetPolicyRequest (1.1.1)

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

Request message forBinauthzManagementService.GetPolicy.

Generated from protobuf messagegoogle.cloud.binaryauthorization.v1.GetPolicyRequest

Namespace

Google \ Cloud \ BinaryAuthorization \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ namestring

Required. The resource name of thepolicy to retrieve, in the formatprojects/*/policy.

getName

Required. The resource name of thepolicy to retrieve,in the formatprojects/*/policy.

Returns
TypeDescription
string

setName

Required. The resource name of thepolicy to retrieve,in the formatprojects/*/policy.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

static::build

Parameter
NameDescription
namestring

Required. The resource name of thepolicy to retrieve,in the formatprojects/*/policy. Please seeBinauthzManagementServiceV1Client::policyName() for help formatting this field.

Returns
TypeDescription
GetPolicyRequest

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

Last updated 2025-10-30 UTC.