target.apidocs.com.google.api.services.directory.Directory.Roles.html Maven / Gradle / Ivy
Directory.Roles (Admin SDK API directory_v1-rev20220606-1.32.1)
com.google.api.services.directory
Class Directory.Roles
- java.lang.Object
-
- com.google.api.services.directory.Directory.Roles
-
-
Nested Class Summary
Nested Classes
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 Summary
Constructors
Constructor and Description
Roles()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
-
-
Method Detail
-
delete
public Directory.Roles.Delete delete(String customer,
String roleId)
throws IOException
Deletes a role.
Create a request for the method "roles.delete".
This request holds the parameters needed by the admin server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
customer
- Immutable ID of the Google Workspace account.
roleId
- Immutable ID of the role.
- Returns:
- the request
- Throws:
IOException
-
get
public Directory.Roles.Get get(String customer,
String roleId)
throws IOException
Retrieves a role.
Create a request for the method "roles.get".
This request holds the parameters needed by the admin server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
customer
- Immutable ID of the Google Workspace account.
roleId
- Immutable ID of the role.
- Returns:
- the request
- Throws:
IOException
-
insert
public Directory.Roles.Insert insert(String customer,
Role content)
throws IOException
Creates a role.
Create a request for the method "roles.insert".
This request holds the parameters needed by the admin server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
customer
- Immutable ID of the Google Workspace account.
content
- the Role
- Returns:
- the request
- Throws:
IOException
-
list
public Directory.Roles.List list(String customer)
throws IOException
Retrieves a paginated list of all the roles in a domain.
Create a request for the method "roles.list".
This request holds the parameters needed by the admin server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
customer
- Immutable ID of the Google Workspace account.
- Returns:
- the request
- Throws:
IOException
-
patch
public Directory.Roles.Patch patch(String customer,
String roleId,
Role content)
throws IOException
Patches a role.
Create a request for the method "roles.patch".
This request holds the parameters needed by the admin server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
customer
- Immutable ID of the Google Workspace account.
roleId
- Immutable ID of the role.
content
- the Role
- Returns:
- the request
- Throws:
IOException
-
update
public Directory.Roles.Update update(String customer,
String roleId,
Role content)
throws IOException
Updates a role.
Create a request for the method "roles.update".
This request holds the parameters needed by the admin server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
customer
- Immutable ID of the Google Workspace account.
roleId
- Immutable ID of the role.
content
- the Role
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2022 Google. All rights reserved.