public sealed class CreateRoleRequest : IMessage<CreateRoleRequest>, IEquatable<CreateRoleRequest>, IDeepCloneable<CreateRoleRequest>, IBufferMessage, IMessage
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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCreateRoleRequest\u003c/code\u003e class is used to request the creation of a new role and is found within the \u003ccode\u003eGoogle.Cloud.Iam.Admin.V1\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its functionality in handling messages, comparing objects, deep cloning, and buffer message management.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateRoleRequest\u003c/code\u003e class has properties including \u003ccode\u003eParent\u003c/code\u003e, \u003ccode\u003eParentAsResourceName\u003c/code\u003e, \u003ccode\u003eRole\u003c/code\u003e, and \u003ccode\u003eRoleId\u003c/code\u003e, which define the scope and details of the role to be created.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eParent\u003c/code\u003e property specifies the project or organization where the role will be created, and the format depends on whether it's a project-level or organization-level custom role, following the \u003ccode\u003eprojects/{PROJECT_ID}\u003c/code\u003e or \u003ccode\u003eorganizations/{ORGANIZATION_ID}\u003c/code\u003e structure respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateRoleRequest\u003c/code\u003e class is available in multiple versions, with version 2.4.0 being the latest.\u003c/p\u003e\n"]]],[],null,[]]