Interface CreateAccessPolicyRequestOrBuilder (1.67.0)

public interface CreateAccessPolicyRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAccessPolicy()

public abstract AccessPolicy getAccessPolicy()

Required. The access policy to create.

.google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AccessPolicy

The accessPolicy.

getAccessPolicyId()

public abstract String getAccessPolicyId()

Required. The ID to use for the access policy, which will become the final component of the access policy's resource name.

This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, hyphens, or dots. Pattern, /a-z{2,62}/.

This value must be unique among all access policies with the same parent.

string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The accessPolicyId.

getAccessPolicyIdBytes()

public abstract ByteString getAccessPolicyIdBytes()

Required. The ID to use for the access policy, which will become the final component of the access policy's resource name.

This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, hyphens, or dots. Pattern, /a-z{2,62}/.

This value must be unique among all access policies with the same parent.

string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for accessPolicyId.

getAccessPolicyOrBuilder()

public abstract AccessPolicyOrBuilder getAccessPolicyOrBuilder()

Required. The access policy to create.

.google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AccessPolicyOrBuilder

getParent()

public abstract String getParent()

Required. The parent resource where this access policy will be created.

Format: projects/{project_id}/locations/{location} projects/{project_number}/locations/{location} folders/{folder_id}/locations/{location} organizations/{organization_id}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public abstract ByteString getParentBytes()

Required. The parent resource where this access policy will be created.

Format: projects/{project_id}/locations/{location} projects/{project_number}/locations/{location} folders/{folder_id}/locations/{location} organizations/{organization_id}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getValidateOnly()

public abstract boolean getValidateOnly()

Optional. If set, validate the request and preview the creation, but do not actually post it.

bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The validateOnly.

hasAccessPolicy()

public abstract boolean hasAccessPolicy()

Required. The access policy to create.

.google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the accessPolicy field is set.