Reference documentation and code samples for the Google Cloud Org Policy V2 Client class GetPolicyRequest.
The request sent to the [GetPolicy] [google.cloud.orgpolicy.v2.OrgPolicy.GetPolicy] method.
Generated from protobuf message google.cloud.orgpolicy.v2.GetPolicyRequest
Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Required. Resource name of the policy. See |
getName
Required. Resource name of the policy. See Policy for naming
requirements.
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Required. Resource name of the policy. See Policy for naming
requirements.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|