@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-07-14T23:40:43.026Z[Etc/UTC]") public class DeviceApi extends Object
Constructor and Description |
---|
DeviceApi() |
DeviceApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
void |
activateDevice(String deviceId)
Activate a Device
Activates a Device by setting its status to ACTIVE by `deviceId`.
|
void |
activateDevice(String deviceId,
Map<String,String> additionalHeaders)
Activate a Device
Activates a Device by setting its status to ACTIVE by `deviceId`.
|
void |
deactivateDevice(String deviceId)
Deactivate a Device
Deactivates a Device by setting its status to DEACTIVATED by `deviceId`.
|
void |
deactivateDevice(String deviceId,
Map<String,String> additionalHeaders)
Deactivate a Device
Deactivates a Device by setting its status to DEACTIVATED by `deviceId`.
|
void |
deleteDevice(String deviceId)
Delete a Device
Deletes (permanently) a device by `deviceId` if it has a status of `DEACTIVATED`.
|
void |
deleteDevice(String deviceId,
Map<String,String> additionalHeaders)
Delete a Device
Deletes (permanently) a device by `deviceId` if it has a status of `DEACTIVATED`.
|
ApiClient |
getApiClient() |
Device |
getDevice(String deviceId)
Retrieve a Device
Retrieves a device by `deviceId`
|
Device |
getDevice(String deviceId,
Map<String,String> additionalHeaders)
Retrieve a Device
Retrieves a device by `deviceId`
|
protected static com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
List<Device> |
listDevices(String after,
Integer limit,
String search,
String expand)
List all Devices
Lists all devices with pagination support.
|
List<Device> |
listDevices(String after,
Integer limit,
String search,
String expand,
Map<String,String> additionalHeaders)
List all Devices
Lists all devices with pagination support.
|
List<DeviceUser> |
listDeviceUsers(String deviceId)
List all Users for a Device
Lists all Users for a Device by `deviceId`
|
List<DeviceUser> |
listDeviceUsers(String deviceId,
Map<String,String> additionalHeaders)
List all Users for a Device
Lists all Users for a Device by `deviceId`
|
void |
setApiClient(ApiClient apiClient) |
void |
suspendDevice(String deviceId)
Suspend a Device
Suspends a Device by setting its status to ACTIVE.
|
void |
suspendDevice(String deviceId,
Map<String,String> additionalHeaders)
Suspend a Device
Suspends a Device by setting its status to ACTIVE.
|
void |
unsuspendDevice(String deviceId)
Unsuspend a Device
Unsuspends a Device by returning its `status` to ACTIVE.
|
void |
unsuspendDevice(String deviceId,
Map<String,String> additionalHeaders)
Unsuspend a Device
Unsuspends a Device by returning its `status` to ACTIVE.
|
public DeviceApi()
public DeviceApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public void activateDevice(String deviceId) throws ApiException
deviceId
- `id` of the device (required)ApiException
- if fails to make API callpublic void activateDevice(String deviceId, Map<String,String> additionalHeaders) throws ApiException
deviceId
- `id` of the device (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void deactivateDevice(String deviceId) throws ApiException
deviceId
- `id` of the device (required)ApiException
- if fails to make API callpublic void deactivateDevice(String deviceId, Map<String,String> additionalHeaders) throws ApiException
deviceId
- `id` of the device (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void deleteDevice(String deviceId) throws ApiException
deviceId
- `id` of the device (required)ApiException
- if fails to make API callpublic void deleteDevice(String deviceId, Map<String,String> additionalHeaders) throws ApiException
deviceId
- `id` of the device (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic Device getDevice(String deviceId) throws ApiException
deviceId
- `id` of the device (required)ApiException
- if fails to make API callpublic Device getDevice(String deviceId, Map<String,String> additionalHeaders) throws ApiException
deviceId
- `id` of the device (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic List<DeviceUser> listDeviceUsers(String deviceId) throws ApiException
deviceId
- `id` of the device (required)ApiException
- if fails to make API callpublic List<DeviceUser> listDeviceUsers(String deviceId, Map<String,String> additionalHeaders) throws ApiException
deviceId
- `id` of the device (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic List<Device> listDevices(String after, Integer limit, String search, String expand) throws ApiException
after
- The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](/#pagination) for more information. (optional)limit
- A limit on the number of objects to return (recommend `20`) (optional, default to 200)search
- A SCIM filter expression that filters the results. Searches include all Device `profile` properties and the Device `id`, `status`, and `lastUpdated` properties. (optional)expand
- Lists associated users for the device in `_embedded` element (optional)ApiException
- if fails to make API callpublic List<Device> listDevices(String after, Integer limit, String search, String expand, Map<String,String> additionalHeaders) throws ApiException
after
- The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](/#pagination) for more information. (optional)limit
- A limit on the number of objects to return (recommend `20`) (optional, default to 200)search
- A SCIM filter expression that filters the results. Searches include all Device `profile` properties and the Device `id`, `status`, and `lastUpdated` properties. (optional)expand
- Lists associated users for the device in `_embedded` element (optional)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void suspendDevice(String deviceId) throws ApiException
deviceId
- `id` of the device (required)ApiException
- if fails to make API callpublic void suspendDevice(String deviceId, Map<String,String> additionalHeaders) throws ApiException
deviceId
- `id` of the device (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void unsuspendDevice(String deviceId) throws ApiException
deviceId
- `id` of the device (required)ApiException
- if fails to make API callpublic void unsuspendDevice(String deviceId, Map<String,String> additionalHeaders) throws ApiException
deviceId
- `id` of the device (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callprotected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
Copyright © 2017–2023 Okta. All rights reserved.