Class AsyncDevicesClient


  • public class AsyncDevicesClient
    extends java.lang.Object
    • Constructor Detail

      • AsyncDevicesClient

        public AsyncDevicesClient​(ClientOptions clientOptions)
    • Method Detail

      • withRawResponse

        public AsyncRawDevicesClient withRawResponse()
        Get responses with HTTP metadata like headers
      • registerToOrgV1

        public java.util.concurrent.CompletableFuture<java.lang.String> registerToOrgV1​(DeviceClientCreate1 request)
        Registers a tracking device to the caller's organization. If the device is already registered to a different organization, returns 409 Conflict. | auth: api_key | (DeviceClientCreate1) -> (PydanticObjectId)
      • registerToOrgV1

        public java.util.concurrent.CompletableFuture<java.lang.String> registerToOrgV1​(DeviceClientCreate1 request,
                                                                                        RequestOptions requestOptions)
        Registers a tracking device to the caller's organization. If the device is already registered to a different organization, returns 409 Conflict. | auth: api_key | (DeviceClientCreate1) -> (PydanticObjectId)
      • updateV1

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> updateV1​(DeviceClientUpdate1 request)
        Updates a device's type, comments, and/or off_chrt_reference_id. Use __set_to_None flags to explicitly clear Optional fields. | (DeviceClientUpdate1) -> (bool)
      • updateV1

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> updateV1​(DeviceClientUpdate1 request,
                                                                                  RequestOptions requestOptions)
        Updates a device's type, comments, and/or off_chrt_reference_id. Use __set_to_None flags to explicitly clear Optional fields. | (DeviceClientUpdate1) -> (bool)
      • archiveV1

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> archiveV1​(DevicesArchiveV1Request request)
        Archives a device by setting archived=True. Device must not have an active session — terminate it first. | () -> (bool)
      • archiveV1

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> archiveV1​(DevicesArchiveV1Request request,
                                                                                   RequestOptions requestOptions)
        Archives a device by setting archived=True. Device must not have an active session — terminate it first. | () -> (bool)
      • pauseV1

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> pauseV1​(DevicesPauseV1Request request)
        Pauses a device and opens a new pause time window. | () -> (bool)
      • pauseV1

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> pauseV1​(DevicesPauseV1Request request,
                                                                                 RequestOptions requestOptions)
        Pauses a device and opens a new pause time window. | () -> (bool)
      • unpauseV1

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> unpauseV1​(DevicesUnpauseV1Request request)
        Unpauses a device. Closes the open pause time window. | () -> (bool)
      • unpauseV1

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> unpauseV1​(DevicesUnpauseV1Request request,
                                                                                   RequestOptions requestOptions)
        Unpauses a device. Closes the open pause time window. | () -> (bool)
      • updateSharedOrgsV1

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> updateSharedOrgsV1​(DevicesUpdateSharedOrgsReq1 request)
        Adds and/or removes org_ids from a device's shared_with_org_ids list. Removal overrides addition. | (DevicesUpdateSharedOrgsReq1) -> (bool)
      • updateSharedOrgsV1

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> updateSharedOrgsV1​(DevicesUpdateSharedOrgsReq1 request,
                                                                                            RequestOptions requestOptions)
        Adds and/or removes org_ids from a device's shared_with_org_ids list. Removal overrides addition. | (DevicesUpdateSharedOrgsReq1) -> (bool)
      • getV1

        public java.util.concurrent.CompletableFuture<DeviceExpandedRes> getV1​(DevicesGetV1Request request)
        Retrieves a single device by its ID with expanded sessions and cargos. Access restricted to the caller's organization or shared organizations. | authz: min_org_role=operator | () -> (DeviceExpandedRes)
      • getV1

        public java.util.concurrent.CompletableFuture<DeviceExpandedRes> getV1​(DevicesGetV1Request request,
                                                                               RequestOptions requestOptions)
        Retrieves a single device by its ID with expanded sessions and cargos. Access restricted to the caller's organization or shared organizations. | authz: min_org_role=operator | () -> (DeviceExpandedRes)
      • listV1

        public java.util.concurrent.CompletableFuture<DeviceListRes> listV1()
        Lists devices with filtering, sorting, and pagination. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (DeviceListRes)
      • listV1

        public java.util.concurrent.CompletableFuture<DeviceListRes> listV1​(DevicesListV1Request request)
        Lists devices with filtering, sorting, and pagination. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (DeviceListRes)
      • listV1

        public java.util.concurrent.CompletableFuture<DeviceListRes> listV1​(DevicesListV1Request request,
                                                                            RequestOptions requestOptions)
        Lists devices with filtering, sorting, and pagination. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (DeviceListRes)
      • typeaheadV1

        public java.util.concurrent.CompletableFuture<java.util.List<TrackingTypeaheadResult>> typeaheadV1​(DevicesTypeaheadV1Request request)
        Returns distinct device_mac_address and off_chrt_reference_id values matching the query via case-insensitive regex, searching devices. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (list[TrackingTypeaheadResult])
      • typeaheadV1

        public java.util.concurrent.CompletableFuture<java.util.List<TrackingTypeaheadResult>> typeaheadV1​(DevicesTypeaheadV1Request request,
                                                                                                           RequestOptions requestOptions)
        Returns distinct device_mac_address and off_chrt_reference_id values matching the query via case-insensitive regex, searching devices. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (list[TrackingTypeaheadResult])