Class RoleAssignmentsResource
The "roleAssignments" collection of methods.
Inherited Members
Namespace: Google.Apis.Admin.Directory.directory_v1
Assembly: Google.Apis.Admin.Directory.directory_v1.dll
Syntax
public class RoleAssignmentsResource
Constructors
RoleAssignmentsResource(IClientService)
Constructs a new resource.
Declaration
public RoleAssignmentsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string, string)
Deletes a role assignment.
Declaration
public virtual RoleAssignmentsResource.DeleteRequest Delete(string customer, string roleAssignmentId)
Parameters
Type | Name | Description |
---|---|---|
string | customer | Immutable ID of the Google Workspace account. |
string | roleAssignmentId | Immutable ID of the role assignment. |
Returns
Type | Description |
---|---|
RoleAssignmentsResource.DeleteRequest |
Get(string, string)
Retrieves a role assignment.
Declaration
public virtual RoleAssignmentsResource.GetRequest Get(string customer, string roleAssignmentId)
Parameters
Type | Name | Description |
---|---|---|
string | customer | The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all
groups for a customer, use this field instead of |
string | roleAssignmentId | Immutable ID of the role assignment. |
Returns
Type | Description |
---|---|
RoleAssignmentsResource.GetRequest |
Insert(RoleAssignment, string)
Creates a role assignment.
Declaration
public virtual RoleAssignmentsResource.InsertRequest Insert(RoleAssignment body, string customer)
Parameters
Type | Name | Description |
---|---|---|
RoleAssignment | body | The body of the request. |
string | customer | Immutable ID of the Google Workspace account. |
Returns
Type | Description |
---|---|
RoleAssignmentsResource.InsertRequest |
List(string)
Retrieves a paginated list of all roleAssignments.
Declaration
public virtual RoleAssignmentsResource.ListRequest List(string customer)
Parameters
Type | Name | Description |
---|---|---|
string | customer | The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all
groups for a customer, use this field instead of |
Returns
Type | Description |
---|---|
RoleAssignmentsResource.ListRequest |