Class Role (1.0.0)

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

A role in the Identity and Access Management API.

Inheritance

Object > Role

Namespace

Google.Cloud.Iam.Admin.V1

Assembly

Google.Cloud.Iam.Admin.V1.dll

Constructors

Role()

public Role()

Role(Role)

public Role(Role other)
Parameter
NameDescription
otherRole

Properties

Deleted

public bool Deleted { get; set; }

The current deleted state of the role. This field is read only. It will be ignored in calls to CreateRole and UpdateRole.

Property Value
TypeDescription
Boolean

Description

public string Description { get; set; }

Optional. A human-readable description for the role.

Property Value
TypeDescription
String

Etag

public ByteString Etag { get; set; }

Used to perform a consistent read-modify-write.

Property Value
TypeDescription
ByteString

IncludedPermissions

public RepeatedField<string> IncludedPermissions { get; }

The names of the permissions this role grants when bound in an IAM policy.

Property Value
TypeDescription
RepeatedField<String>

Name

public string Name { get; set; }

The name of the role.

When Role is used in CreateRole, the role name must not be set.

When Role is used in output and other input such as UpdateRole, the role name is the complete path, e.g., roles/logging.viewer for predefined roles and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.

Property Value
TypeDescription
String

Stage

public Role.Types.RoleLaunchStage Stage { get; set; }

The current launch stage of the role. If the ALPHA launch stage has been selected for a role, the stage field will not be included in the returned definition for the role.

Property Value
TypeDescription
Role.Types.RoleLaunchStage

Title

public string Title { get; set; }

Optional. A human-readable title for the role. Typically this is limited to 100 UTF-8 bytes.

Property Value
TypeDescription
String