Show / Hide Table of Contents

Class RolesResource

The "roles" collection of methods.

Inheritance
System.Object
RolesResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Admin.Directory.directory_v1
Assembly: Google.Apis.Admin.Directory.directory_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

Delete(String, String)

Deletes a role.

Declaration
public virtual RolesResource.DeleteRequest Delete(string customer, string roleId)
Parameters
Type Name Description
System.String customer

Immutable ID of the G Suite account.

System.String roleId

Immutable ID of the role.

Returns
Type Description
RolesResource.DeleteRequest

Get(String, String)

Retrieves a role.

Declaration
public virtual RolesResource.GetRequest Get(string customer, string roleId)
Parameters
Type Name Description
System.String customer

Immutable ID of the G Suite account.

System.String roleId

Immutable ID of the role.

Returns
Type Description
RolesResource.GetRequest

Insert(Role, String)

Creates a role.

Declaration
public virtual RolesResource.InsertRequest Insert(Role body, string customer)
Parameters
Type Name Description
Role body

The body of the request.

System.String customer

Immutable ID of the G Suite account.

Returns
Type Description
RolesResource.InsertRequest

List(String)

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

Declaration
public virtual RolesResource.ListRequest List(string customer)
Parameters
Type Name Description
System.String customer

Immutable ID of the G Suite account.

Returns
Type Description
RolesResource.ListRequest

Patch(Role, String, String)

Patch role via Apiary Patch Orchestration

Declaration
public virtual RolesResource.PatchRequest Patch(Role body, string customer, string roleId)
Parameters
Type Name Description
Role body

The body of the request.

System.String customer

Immutable ID of the G Suite account.

System.String roleId

Immutable ID of the role.

Returns
Type Description
RolesResource.PatchRequest

Update(Role, String, String)

Updates a role.

Declaration
public virtual RolesResource.UpdateRequest Update(Role body, string customer, string roleId)
Parameters
Type Name Description
Role body

The body of the request.

System.String customer

Immutable ID of the G Suite account.

System.String roleId

Immutable ID of the role.

Returns
Type Description
RolesResource.UpdateRequest
Back to top