Table of Contents

Class RolesResource

Namespace
Google.Apis.Admin.Directory.directory_v1
Assembly
Google.Apis.Admin.Directory.directory_v1.dll

The "roles" collection of methods.

public class RolesResource
Inheritance
RolesResource
Inherited Members

Constructors

RolesResource(IClientService)

Constructs a new resource.

public RolesResource(IClientService service)

Parameters

service IClientService

Methods

Delete(string, string)

Deletes a role.

public virtual RolesResource.DeleteRequest Delete(string customer, string roleId)

Parameters

customer string

Immutable ID of the Google Workspace account.

roleId string

Immutable ID of the role.

Returns

RolesResource.DeleteRequest

Get(string, string)

Retrieves a role.

public virtual RolesResource.GetRequest Get(string customer, string roleId)

Parameters

customer string

Immutable ID of the Google Workspace account.

roleId string

Immutable ID of the role.

Returns

RolesResource.GetRequest

Insert(Role, string)

Creates a role.

public virtual RolesResource.InsertRequest Insert(Role body, string customer)

Parameters

body Role

The body of the request.

customer string

Immutable ID of the Google Workspace account.

Returns

RolesResource.InsertRequest

List(string)

Retrieves a paginated list of all the roles in a domain.

public virtual RolesResource.ListRequest List(string customer)

Parameters

customer string

Immutable ID of the Google Workspace account.

Returns

RolesResource.ListRequest

Patch(Role, string, string)

Patch role via Apiary Patch Orchestration

public virtual RolesResource.PatchRequest Patch(Role body, string customer, string roleId)

Parameters

body Role

The body of the request.

customer string

Immutable ID of the Google Workspace account.

roleId string

Immutable ID of the role.

Returns

RolesResource.PatchRequest

Update(Role, string, string)

Updates a role.

public virtual RolesResource.UpdateRequest Update(Role body, string customer, string roleId)

Parameters

body Role

The body of the request.

customer string

Immutable ID of the Google Workspace account.

roleId string

Immutable ID of the role.

Returns

RolesResource.UpdateRequest