public interface CreatePolicyRequestOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getParent()
public abstract String getParent()Required. The 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 parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Type | Description |
| String | The parent. |
getParentBytes()
public abstract ByteString getParentBytes()Required. The 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 parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Type | Description |
| ByteString | The bytes for parent. |
getPolicy()
public abstract Policy getPolicy() Required. Policy to create.
.google.cloud.orgpolicy.v2.Policy policy = 3 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| Policy | The policy. |
getPolicyOrBuilder()
public abstract PolicyOrBuilder getPolicyOrBuilder() Required. Policy to create.
.google.cloud.orgpolicy.v2.Policy policy = 3 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| PolicyOrBuilder |
hasPolicy()
public abstract boolean hasPolicy() Required. Policy to create.
.google.cloud.orgpolicy.v2.Policy policy = 3 [(.google.api.field_behavior) = REQUIRED];
| Type | Description |
| boolean | Whether the policy field is set. |