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 request to update a role.
Implements
IMessageUpdateRoleRequest, IEquatableUpdateRoleRequest, IDeepCloneableUpdateRoleRequest, IBufferMessage, IMessageNamespace
Google.Cloud.Iam.Admin.V1Assembly
Google.Cloud.Iam.Admin.V1.dll
Constructors
UpdateRoleRequest()
public UpdateRoleRequest()
UpdateRoleRequest(UpdateRoleRequest)
public UpdateRoleRequest(UpdateRoleRequest other)
Parameter | |
---|---|
Name | Description |
other | UpdateRoleRequest |
Properties
Name
public string Name { get; set; }
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.
Property Value | |
---|---|
Type | Description |
string |
ResourceName
public IResourceName ResourceName { get; set; }
IResourceName-typed view over the Name resource name property.
Property Value | |
---|---|
Type | Description |
IResourceName |
Role
public Role Role { get; set; }
The updated role.
Property Value | |
---|---|
Type | Description |
Role |
UpdateMask
public FieldMask UpdateMask { get; set; }
A mask describing which fields in the Role have changed.
Property Value | |
---|---|
Type | Description |
FieldMask |