public sealed class UpdateRoleRequest : IMessage<UpdateRoleRequest>, IEquatable<UpdateRoleRequest>, IDeepCloneable<UpdateRoleRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Identity and Access Management (IAM) v1 API class UpdateRoleRequest.
The name parameter's value depends on the target resource for the
request, namely
projects
or
organizations.
Each resource type's name value format is described below:
projects.roles.patch():
projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}. This method updates only
custom
roles that
have been created at the project level. Example request URL:
https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}
organizations.roles.patch():
organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}. This method
updates only custom
roles that
have been created at the organization level. Example request URL:
https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}
Note: Wildcard (*) values are invalid; you must specify a complete project
ID or organization ID.
[[["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\u003eThis document provides reference information for the \u003ccode\u003eUpdateRoleRequest\u003c/code\u003e class within the Google Cloud Identity and Access Management (IAM) v1 API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUpdateRoleRequest\u003c/code\u003e is used to update a role, with properties including \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eResourceName\u003c/code\u003e, \u003ccode\u003eRole\u003c/code\u003e, and \u003ccode\u003eUpdateMask\u003c/code\u003e to specify the details of the role and the update.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eName\u003c/code\u003e property in the \u003ccode\u003eUpdateRoleRequest\u003c/code\u003e class specifies the resource and can target \u003ccode\u003eprojects\u003c/code\u003e or \u003ccode\u003eorganizations\u003c/code\u003e roles, and this property must contain a full ID, as wildcards are invalid.\u003c/p\u003e\n"],["\u003cp\u003eThe document provides multiple versions of the API, with the latest being version 2.4.0, and it includes information about inheritance and implemented interfaces.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdateRoleRequest\u003c/code\u003e class implements multiple interfaces, such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and it includes constructors to initialize an empty object or clone another \u003ccode\u003eUpdateRoleRequest\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,[]]