Interface CreateRoleRequestOrBuilder (3.23.0)

public interface CreateRoleRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getParent()

public abstract String getParent()

The parent parameter's value depends on the target resource for the request, namely projects or organizations. Each resource type's parent value format is described below:

  • projects.roles.create(): projects/{PROJECT_ID}. This method creates project-level custom roles. Example request URL: https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles

  • organizations.roles.create(): organizations/{ORGANIZATION_ID}. This method creates organization-level custom roles. Example request URL: https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles

    Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public abstract ByteString getParentBytes()

The parent parameter's value depends on the target resource for the request, namely projects or organizations. Each resource type's parent value format is described below:

  • projects.roles.create(): projects/{PROJECT_ID}. This method creates project-level custom roles. Example request URL: https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles

  • organizations.roles.create(): organizations/{ORGANIZATION_ID}. This method creates organization-level custom roles. Example request URL: https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles

    Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID.

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

Returns
TypeDescription
ByteString

The bytes for parent.

getRole()

public abstract Role getRole()

The Role resource to create.

.google.iam.admin.v1.Role role = 3;

Returns
TypeDescription
Role

The role.

getRoleId()

public abstract String getRoleId()

The role ID to use for this role.

A role ID may contain alphanumeric characters, underscores (_), and periods (.). It must contain a minimum of 3 characters and a maximum of 64 characters.

string role_id = 2;

Returns
TypeDescription
String

The roleId.

getRoleIdBytes()

public abstract ByteString getRoleIdBytes()

The role ID to use for this role.

A role ID may contain alphanumeric characters, underscores (_), and periods (.). It must contain a minimum of 3 characters and a maximum of 64 characters.

string role_id = 2;

Returns
TypeDescription
ByteString

The bytes for roleId.

getRoleOrBuilder()

public abstract RoleOrBuilder getRoleOrBuilder()

The Role resource to create.

.google.iam.admin.v1.Role role = 3;

Returns
TypeDescription
RoleOrBuilder

hasRole()

public abstract boolean hasRole()

The Role resource to create.

.google.iam.admin.v1.Role role = 3;

Returns
TypeDescription
boolean

Whether the role field is set.