Application
Application resource for LoRaWAN application management.
SyncApplications
SyncApplications(client: SyncClient)
Bases: BaseResource['SyncClient']
Applications resource for OAuth application management.
Methods:
-
create–Create a new application.
-
delete–Delete an application.
-
get–Retrieve an application by its ID.
-
get_all–List all applications.
-
patch–Partially update an application.
-
refresh_token–Refresh the application's token.
-
update–Update an application (full replacement).
create
create(
data: ApplicationCreate,
) -> ApplicationCreateResponse
Create a new application.
Parameters:
-
(dataApplicationCreate) –The application creation data.
Returns:
-
str(ApplicationCreateResponse) –The ID of the newly created application.
delete
delete(application_id: str) -> None
Delete an application.
Parameters:
-
(application_idstr) –The unique identifier of the application to delete.
Returns:
-
None–None
get
get(application_id: str) -> ApplicationInstance
Retrieve an application by its ID.
Parameters:
-
(application_idstr) –The unique identifier of the application.
Returns:
-
ApplicationInstance(ApplicationInstance) –The application instance matching the given ID.
get_all
get_all() -> list[ApplicationInstance]
List all applications.
Returns:
-
list[ApplicationInstance]–list[ApplicationInstance]: List of all application instances.
patch
patch(application_id: str, data: ApplicationPatch) -> bool
Partially update an application.
Parameters:
-
(application_idstr) –The unique identifier of the application.
-
(dataApplicationPatch) –The partial application data to update.
Returns:
-
bool(bool) –True if the patch was successful, False otherwise.
refresh_token
refresh_token(application_id: str) -> str
update
update(
application_id: str, data: ApplicationUpdate
) -> bool
Update an application (full replacement).
Parameters:
-
(application_idstr) –The unique identifier of the application.
-
(dataApplicationUpdate) –The complete application data for replacement.
Returns:
-
bool(bool) –True if the update was successful, False otherwise.
AsyncApplications
AsyncApplications(client: AsyncClient)
Bases: BaseResource['AsyncClient']
Async applications resource for OAuth application management.
Methods:
-
create–Create a new application.
-
delete–Delete an application.
-
get–Retrieve an application by its ID.
-
get_all–List all applications.
-
patch–Partially update an application.
-
refresh_token–Refresh the application's token.
-
update–Update an application (full replacement).
create
async
create(
data: ApplicationCreate,
) -> ApplicationCreateResponse
Create a new application.
Parameters:
-
(dataApplicationCreate) –The application creation data.
Returns:
-
str(ApplicationCreateResponse) –The ID of the newly created application.
delete
async
delete(application_id: str) -> None
Delete an application.
Parameters:
-
(application_idstr) –The unique identifier of the application to delete.
Returns:
-
None–None
get
async
get(application_id: str) -> ApplicationInstance
Retrieve an application by its ID.
Parameters:
-
(application_idstr) –The unique identifier of the application.
Returns:
-
ApplicationInstance(ApplicationInstance) –The application instance matching the given ID.
get_all
async
get_all() -> list[ApplicationInstance]
List all applications.
Returns:
-
list[ApplicationInstance]–list[ApplicationInstance]: List of all application instances.
patch
async
patch(application_id: str, data: ApplicationPatch) -> bool
Partially update an application.
Parameters:
-
(application_idstr) –The unique identifier of the application.
-
(dataApplicationPatch) –The partial application data to update.
Returns:
-
bool(bool) –True if the patch was successful.
refresh_token
async
refresh_token(application_id: str) -> str
update
async
update(
application_id: str, data: ApplicationUpdate
) -> bool
Update an application (full replacement).
Parameters:
-
(application_idstr) –The unique identifier of the application.
-
(dataApplicationUpdate) –The complete application data for replacement.
Returns:
-
bool(bool) –True if the update was successful.
Request and response types: Application models.