public sealed class CreateRoleRequest : IMessage<CreateRoleRequest>, IEquatable<CreateRoleRequest>, IDeepCloneable<CreateRoleRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Identity and Access Management (IAM) v1 API class CreateRoleRequest.
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.
A role ID may contain alphanumeric characters, underscores (_), and
periods (.). It must contain a minimum of 3 characters and a maximum of
64 characters.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The latest version of the `CreateRoleRequest` API class is 2.4.0, part of the Google.Cloud.Iam.Admin.V1 namespace for Identity and Access Management."],["This class facilitates the creation of new roles within the IAM v1 API, either at the project level or organization level using `projects/{PROJECT_ID}` or `organizations/{ORGANIZATION_ID}`."],["The `CreateRoleRequest` class allows for the specification of a parent resource, the role details, and a custom role ID that may include alphanumeric characters, underscores, and periods, with a length between 3 and 64 characters."],["The `CreateRoleRequest` class inherits from [object](https://learn.microsoft.com/dotnet/api/system.object) and implements the following interfaces: [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateRoleRequest](/dotnet/docs/reference/Google.Cloud.Iam.Admin.V1/latest/Google.Cloud.Iam.Admin.V1.CreateRoleRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateRoleRequest](/dotnet/docs/reference/Google.Cloud.Iam.Admin.V1/latest/Google.Cloud.Iam.Admin.V1.CreateRoleRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateRoleRequest](/dotnet/docs/reference/Google.Cloud.Iam.Admin.V1/latest/Google.Cloud.Iam.Admin.V1.CreateRoleRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), and [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)."]]],[]]