Google Cloud Org Policy V2 Client - Class GetPolicyRequest (0.6.0)

Reference documentation and code samples for the Google Cloud Org Policy V2 Client class GetPolicyRequest.

The request sent to the GetPolicy method.

Generated from protobuf message google.cloud.orgpolicy.v2.GetPolicyRequest

Namespace

Google \ Cloud \ OrgPolicy \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. Resource name of the policy. See Policy for naming requirements.

getName

Required. Resource name of the policy. See Policy for naming requirements.

Returns
TypeDescription
string

setName

Required. Resource name of the policy. See Policy for naming requirements.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameter
NameDescription
name string

Required. Resource name of the policy. See Policy for naming requirements. Please see Google\Cloud\OrgPolicy\V2\OrgPolicyClient::policyName() for help formatting this field.

Returns
TypeDescription
Google\Cloud\OrgPolicy\V2\GetPolicyRequest