Reference documentation and code samples for the Google Cloud Design Center V1 Client class CreatePolicyRequest.
Message for creating a policy.
Generated from protobuf message google.cloud.designcenter.v1.CreatePolicyRequest
Namespace
Google \ Cloud \ DesignCenter \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The parent resource in which to create the policy in the following format: |
↳ policy_id |
string
Required. The ID of the policy to create. |
↳ policy |
Policy
Required. The policy to create. |
getParent
Required. The parent resource in which to create the policy in the
following format:
projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. The parent resource in which to create the policy in the
following format:
projects/$project/locations/$location/spaces/$space/applicationTemplates/$applicationTemplate
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPolicyId
Required. The ID of the policy to create.
| Returns | |
|---|---|
| Type | Description |
string |
|
setPolicyId
Required. The ID of the policy to create.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPolicy
Required. The policy to create.
| Returns | |
|---|---|
| Type | Description |
Policy|null |
|
hasPolicy
clearPolicy
setPolicy
Required. The policy to create.
| Parameter | |
|---|---|
| Name | Description |
var |
Policy
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
static::build
| Parameters | |
|---|---|
| Name | Description |
parent |
string
Required. The parent resource in which to create the policy in the
following format:
|
policy |
Policy
Required. The policy to create. |
policyId |
string
Required. The ID of the policy to create. |
| Returns | |
|---|---|
| Type | Description |
CreatePolicyRequest |
|