Modifier and Type | Class and Description |
---|---|
class |
Directory.Roles.Delete |
class |
Directory.Roles.Get |
class |
Directory.Roles.Insert |
class |
Directory.Roles.List |
class |
Directory.Roles.Patch |
class |
Directory.Roles.Update |
Constructor and Description |
---|
Roles() |
Modifier and Type | Method and Description |
---|---|
Directory.Roles.Delete |
delete(String customer,
String roleId)
Deletes a role.
|
Directory.Roles.Get |
get(String customer,
String roleId)
Retrieves a role.
|
Directory.Roles.Insert |
insert(String customer,
Role content)
Creates a role.
|
Directory.Roles.List |
list(String customer)
Retrieves a paginated list of all the roles in a domain.
|
Directory.Roles.Patch |
patch(String customer,
String roleId,
Role content)
Patches a role.
|
Directory.Roles.Update |
update(String customer,
String roleId,
Role content)
Updates a role.
|
public Directory.Roles.Delete delete(String customer, String roleId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.customer
- Immutable ID of the Google Workspace account.roleId
- Immutable ID of the role.IOException
public Directory.Roles.Get get(String customer, String roleId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.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 `domain`. You can also use the
`my_customer` alias to represent your account's `customerId`. The `customerId` is also
returned as part of the [Users](/admin-sdk/directory/v1/reference/users) resource. You
must provide either the `customer` or the `domain` parameter.roleId
- Immutable ID of the role.IOException
public Directory.Roles.Insert insert(String customer, Role content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.customer
- Immutable ID of the Google Workspace account.content
- the Role
IOException
public Directory.Roles.List list(String customer) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.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 `domain`. You can also use the
`my_customer` alias to represent your account's `customerId`. The `customerId` is also
returned as part of the [Users](/admin-sdk/directory/v1/reference/users) resource. You
must provide either the `customer` or the `domain` parameter.IOException
public Directory.Roles.Patch patch(String customer, String roleId, Role content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.customer
- Immutable ID of the Google Workspace account.roleId
- Immutable ID of the role.content
- the Role
IOException
public Directory.Roles.Update update(String customer, String roleId, Role content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.customer
- Immutable ID of the Google Workspace account.roleId
- Immutable ID of the role.content
- the Role
IOException
Copyright © 2011–2023 Google. All rights reserved.