Class ListRolesRequest (1.0.0)

public sealed class ListRolesRequest : IMessage<ListRolesRequest>, IEquatable<ListRolesRequest>, IDeepCloneable<ListRolesRequest>, IBufferMessage, IMessage, IPageRequest

The request to get all roles defined under a resource.

Inheritance

Object > ListRolesRequest

Namespace

Google.Cloud.Iam.Admin.V1

Assembly

Google.Cloud.Iam.Admin.V1.dll

Constructors

ListRolesRequest()

public ListRolesRequest()

ListRolesRequest(ListRolesRequest)

public ListRolesRequest(ListRolesRequest other)
Parameter
NameDescription
otherListRolesRequest

Properties

PageSize

public int PageSize { get; set; }

Optional limit on the number of roles to include in the response.

The default is 300, and the maximum is 1,000.

Property Value
TypeDescription
Int32

PageToken

public string PageToken { get; set; }

Optional pagination token returned in an earlier ListRolesResponse.

Property Value
TypeDescription
String

Parent

public string Parent { get; set; }

The parent parameter's value depends on the target resource for the request, namely roles, projects, or organizations. Each resource type's parent value format is described below:

  • roles.list(): An empty string. This method doesn't require a resource; it simply returns all predefined roles in Cloud IAM. Example request URL: https://iam.googleapis.com/v1/roles

  • projects.roles.list(): projects/{PROJECT_ID}. This method lists all project-level custom roles. Example request URL: https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles

  • organizations.roles.list(): organizations/{ORGANIZATION_ID}. This method lists all 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

ShowDeleted

public bool ShowDeleted { get; set; }

Include Roles that have been deleted.

Property Value
TypeDescription
Boolean

View

public RoleView View { get; set; }

Optional view for the returned Role objects. When FULL is specified, the includedPermissions field is returned, which includes a list of all permissions in the role. The default value is BASIC, which does not return the includedPermissions field.

Property Value
TypeDescription
RoleView