Reference documentation and code samples for the Google Cloud Org Policy V2 Client class CreatePolicyRequest.
The request sent to the CreatePolicyRequest method.
Generated from protobuf message google.cloud.orgpolicy.v2.CreatePolicyRequest
Namespace
Google \ Cloud \ OrgPolicy \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms: * projects/{project_number}
* projects/{project_id}
* folders/{folder_id}
* organizations/{organization_id}
↳ policy
getParent
Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms:
-
projects/{project_number}
-
projects/{project_id}
-
folders/{folder_id}
-
organizations/{organization_id}
string
setParent
Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms:
-
projects/{project_number}
-
projects/{project_id}
-
folders/{folder_id}
-
organizations/{organization_id}
var
string
$this
getPolicy
Required. Policy to create.
hasPolicy
clearPolicy
setPolicy
Required. Policy to create.
$this
static::build
parent
string
Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms:
-
projects/{project_number}
-
projects/{project_id}
-
folders/{folder_id}
-
organizations/{organization_id}
Please see Google\Cloud\OrgPolicy\V2\OrgPolicyClient::projectName() for help formatting this field.
policy