Class RolesResource
The "roles" collection of methods.
Inherited Members
Namespace: Google.Apis.Iam.v1
Assembly: Google.Apis.Iam.v1.dll
Syntax
public class RolesResource
Constructors
RolesResource(IClientService)
Constructs a new resource.
Declaration
public RolesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Get(string)
Gets the definition of a Role.
Declaration
public virtual RolesResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The |
Returns
Type | Description |
---|---|
RolesResource.GetRequest |
List()
Lists every predefined Role that IAM supports, or every custom role that is defined for an organization or project.
Declaration
public virtual RolesResource.ListRequest List()
Returns
Type | Description |
---|---|
RolesResource.ListRequest |
QueryGrantableRoles(QueryGrantableRolesRequest)
Lists roles that can be granted on a Google Cloud resource. A role is grantable if the IAM policy for the resource can contain bindings to the role.
Declaration
public virtual RolesResource.QueryGrantableRolesRequest QueryGrantableRoles(QueryGrantableRolesRequest body)
Parameters
Type | Name | Description |
---|---|---|
QueryGrantableRolesRequest | body | The body of the request. |
Returns
Type | Description |
---|---|
RolesResource.QueryGrantableRolesRequest |