public interface CreateRoleRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
String |
getParent()
The `parent` parameter's value depends on the target resource for the
request, namely
[`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
or
[`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
|
com.google.protobuf.ByteString |
getParentBytes()
The `parent` parameter's value depends on the target resource for the
request, namely
[`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
or
[`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
|
Role |
getRole()
The Role resource to create.
|
String |
getRoleId()
The role ID to use for this role.
|
com.google.protobuf.ByteString |
getRoleIdBytes()
The role ID to use for this role.
|
RoleOrBuilder |
getRoleOrBuilder()
The Role resource to create.
|
boolean |
hasRole()
The Role resource to create.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getParent()
The `parent` parameter's value depends on the target resource for the
request, namely
[`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
or
[`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
Each resource type's `parent` value format is described below:
* [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create):
`projects/{PROJECT_ID}`. This method creates project-level
[custom
roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
Example request URL:
`https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
* [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create):
`organizations/{ORGANIZATION_ID}`. This method creates organization-level
[custom
roles](https://cloud.google.com/iam/docs/understanding-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) = { ... }com.google.protobuf.ByteString getParentBytes()
The `parent` parameter's value depends on the target resource for the
request, namely
[`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
or
[`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
Each resource type's `parent` value format is described below:
* [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create):
`projects/{PROJECT_ID}`. This method creates project-level
[custom
roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
Example request URL:
`https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
* [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create):
`organizations/{ORGANIZATION_ID}`. This method creates organization-level
[custom
roles](https://cloud.google.com/iam/docs/understanding-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) = { ... }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;com.google.protobuf.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;boolean hasRole()
The Role resource to create.
.google.iam.admin.v1.Role role = 3;Role getRole()
The Role resource to create.
.google.iam.admin.v1.Role role = 3;RoleOrBuilder getRoleOrBuilder()
The Role resource to create.
.google.iam.admin.v1.Role role = 3;Copyright © 2025 Google LLC. All rights reserved.