Class UpdateRoleRequest (1.2.0)

public sealed class UpdateRoleRequest : IMessage<UpdateRoleRequest>, IEquatable<UpdateRoleRequest>, IDeepCloneable<UpdateRoleRequest>, IBufferMessage, IMessage

The request to update a role.

Inheritance

Object > UpdateRoleRequest

Namespace

Google.Cloud.Iam.Admin.V1

Assembly

Google.Cloud.Iam.Admin.V1.dll

Constructors

UpdateRoleRequest()

public UpdateRoleRequest()

UpdateRoleRequest(UpdateRoleRequest)

public UpdateRoleRequest(UpdateRoleRequest other)
Parameter
NameDescription
otherUpdateRoleRequest

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
TypeDescription
String

ResourceName

public IResourceName ResourceName { get; set; }

IResourceName-typed view over the Name resource name property.

Property Value
TypeDescription
IResourceName

Role

public Role Role { get; set; }

The updated role.

Property Value
TypeDescription
Role

UpdateMask

public FieldMask UpdateMask { get; set; }

A mask describing which fields in the Role have changed.

Property Value
TypeDescription
FieldMask