Class CreateRoleRequest (1.1.0)

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

The request to create a new role.

Inheritance

Object > CreateRoleRequest

Namespace

Google.Cloud.Iam.Admin.V1

Assembly

Google.Cloud.Iam.Admin.V1.dll

Constructors

CreateRoleRequest()

public CreateRoleRequest()

CreateRoleRequest(CreateRoleRequest)

public CreateRoleRequest(CreateRoleRequest other)
Parameter
NameDescription
otherCreateRoleRequest

Properties

Parent

public string Parent { get; set; }

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.

Property Value
TypeDescription
String

ParentAsResourceName

public IResourceName ParentAsResourceName { get; set; }

IResourceName-typed view over the Parent resource name property.

Property Value
TypeDescription
IResourceName

Role

public Role Role { get; set; }

The Role resource to create.

Property Value
TypeDescription
Role

RoleId

public string RoleId { get; set; }

The role ID to use for this role.

A role ID may contain alphanumeric characters, underscores (_), and periods (.). It must contain a minimum of 3 characters and a maximum of 64 characters.

Property Value
TypeDescription
String