#[non_exhaustive]pub struct CreateRoleRequest {
pub parent: String,
pub role_id: String,
pub role: Option<Role>,
/* private fields */
}Expand description
The request to create a new role.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringThe 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.
role_id: StringThe 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.
role: Option<Role>The Role resource to create.
Implementations§
Source§impl CreateRoleRequest
impl CreateRoleRequest
Trait Implementations§
Source§impl Clone for CreateRoleRequest
impl Clone for CreateRoleRequest
Source§fn clone(&self) -> CreateRoleRequest
fn clone(&self) -> CreateRoleRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more