public sealed class UndeleteRoleRequest : IMessage<UndeleteRoleRequest>, IEquatable<UndeleteRoleRequest>, IDeepCloneable<UndeleteRoleRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Identity and Access Management (IAM) v1 API class UndeleteRoleRequest.
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.undelete():
projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}. This method undeletes
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.undelete():
organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}. This method
undeletes 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\u003eThe \u003ccode\u003eUndeleteRoleRequest\u003c/code\u003e class in the Google Cloud IAM Admin v1 API is used to undelete existing custom roles within either projects or organizations.\u003c/p\u003e\n"],["\u003cp\u003eThis class has a latest version of 2.4.0, and contains versions ranging from 1.0.0 to 2.4.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUndeleteRoleRequest\u003c/code\u003e implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties like \u003ccode\u003eName\u003c/code\u003e which defines the resource path, \u003ccode\u003eEtag\u003c/code\u003e for consistent read-modify-write, and \u003ccode\u003eResourceName\u003c/code\u003e for an \u003ccode\u003eIResourceName\u003c/code\u003e view.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eName\u003c/code\u003e property can be used for both \u003ccode\u003eprojects.roles.undelete()\u003c/code\u003e and \u003ccode\u003eorganizations.roles.undelete()\u003c/code\u003e to undelete custom roles, depending on whether they were created at the project or organizational level.\u003c/p\u003e\n"]]],[],null,[]]