2.26.0 (latest) 2.25.0 2.24.1 2.23.0 2.22.0 2.21.0 2.20.0 2.19.1 2.18.3 2.17.0 2.16.1 2.15.2 2.14.3 2.13.0 2.12.1 2.11.2 2.10.0 2.9.0 2.8.2 2.7.0 2.6.2 2.5.1 2.4.0 2.3.2 2.2.0 2.1.0 2.0.0 1.0.3 0.3.2 0.2.0

    CreateRoleRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The request to create a new role.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `parent` | `str` 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 organizations.roles.create()\`` `__: `organizations/{ORGANIZATION_ID}`. This method creates organization-level \`custom roles |
| `role_id` | `str` 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. |
| `role` | `https://docs.cloud.google.com/python/docs/reference/iam/latest/google.cloud.iam_admin_v1.types.Role` The Role resource to create. |