Identity and Access Management (IAM) v1 API - Class CreateRoleRequest (2.4.0)

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

Reference documentation and code samples for the Identity and Access Management (IAM) v1 API class CreateRoleRequest.

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
Name Description
other CreateRoleRequest

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
Type Description
string

ParentAsResourceName

public IResourceName ParentAsResourceName { get; set; }

IResourceName-typed view over the Parent resource name property.

Property Value
Type Description
IResourceName

Role

public Role Role { get; set; }

The Role resource to create.

Property Value
Type Description
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
Type Description
string